mirror of https://github.com/Qiskit/qiskit.git
a24470fc0b
* Add identity removal pass to presets This commit adds the newly added RemoveIdentityEquivalent transpiler pass to the preset pass managers for optimization levels 2 and 3. The pass is added to the init and optimization stages. For the init stage the pass is run after 3 or more qubit decomposition. While the pass works fine with 3 qubit gates, the thinking behind this placement was it seems less likely for a multi qubit identity equivalent gate to be added while components of it's decomposition are more likely to be equivalent to an identity. For the optimization stage it is added to the optimization loop. One test needed to be updated because the additional pass changes the decomposition outcome in that test. Although the output circuit is different it is equivalent to the other decomposition and the original circuit. A unitary equivalence check is added to the test to verify that. * Fix lint |
||
---|---|---|
.. | ||
circuit | ||
classical_function_compiler | ||
compiler | ||
converters | ||
dagcircuit | ||
mock | ||
passmanager | ||
primitives | ||
providers | ||
pulse | ||
qasm | ||
qasm2 | ||
qasm3 | ||
qobj | ||
qpy | ||
quantum_info | ||
result | ||
scheduler | ||
synthesis | ||
transpiler | ||
utils | ||
visualization | ||
__init__.py | ||
legacy_cmaps.py | ||
test_user_config.py | ||
test_util.py |