qiskit/test
Matthew Treinish a24470fc0b
Add identity removal pass to presets (#13363)
* 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
2024-11-06 22:27:33 +00:00
..
benchmarks Remove benchmarks for deprecated (or soon to be) features (#13064) 2024-09-03 13:46:48 +00:00
python Add identity removal pass to presets (#13363) 2024-11-06 22:27:33 +00:00
qpy_compat Move QPY tests to GitHub Actions and increase inter-symengine tests (#13273) 2024-10-29 21:36:45 +00:00
randomized Clean two_qubit_decompose code (#13093) 2024-09-13 14:35:03 +00:00
utils Deprecate the condition attribute and related functionality (#13223) 2024-10-31 13:58:26 +00:00
visual Deprecate the condition attribute and related functionality (#13223) 2024-10-31 13:58:26 +00:00
__init__.py Remove `qiskit.test` (#10998) 2024-01-31 14:11:41 +00:00