Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Currently, the layering strategy `DisjointQubits` always inserts gates in the last layer. By instead inserting it one layer after the first layer (from the back of the circuit), in which it would intersect with the qubit set of a previous gate, we achieve a still valid layering with less layers. Visually speaking, we move each gate as far left as possible without intersecting other gates. The following visualizations illustrate the status-quo and the new solution proposed in this PR on the following circuit:  The numbers next to the gates indicate the gate order in the circuit. Currently, the following layering strategy is implemented (red dots indicate the state of `laystLayer` for each qubit after inserting the gate):  The proposed implementation:  ## Checklist: - [x] The pull request only contains commits that are related to it. - [x] I have added appropriate tests and documentation. - [x] I have made sure that all CI jobs on GitHub pass. - [x] The pull request introduces no new warnings and follows the project's style guidelines.
- Loading branch information