mirror of https://github.com/Qiskit/qiskit.git
![]() * Add `DAGCircuit.make_physical` This method replaces the qubits on the `DAGCircuit` with the "canonical" physical register. This does a similar job to running `TrivialLayout`, ancilla-allocation/expansion and `ApplyLayout`, and in fact this method can be used as one half of action of `ApplyLayout` in general. This commit is a stepping stone to having `ApplyLayout` in pure Rust space. The `TrivialLayout` pass could also, in a follow-up, be upgraded to be similar to `SabreLayout` and perform its layout action inline too. That can follow in a separate patch, however, since it has additional API considerations, as it would change the behaviour of the pass. * Reword description of method from 'cheap' * Use `num_qubits` in Rust-space `make_physical` * Update crates/circuit/src/dag_circuit.rs Co-authored-by: Matthew Treinish <mtreinish@kortar.org> --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org> |
||
---|---|---|
.. | ||
__init__.py | ||
test_collect_blocks.py | ||
test_compose.py | ||
test_dagcircuit.py | ||
test_dagdependency.py | ||
test_dagdependency_v2.py |