qiskit/test/python
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
..
circuit Binary arithmetic gates (#13354) 2024-11-06 22:18:16 +00:00
classical_function_compiler Fix the possibly-used-before-assignment in pylint (#12542) 2024-06-13 10:47:34 +00:00
compiler Add identity removal pass to presets (#13363) 2024-11-06 22:27:33 +00:00
converters Deprecate the condition attribute and related functionality (#13223) 2024-10-31 13:58:26 +00:00
dagcircuit Deprecate the condition attribute and related functionality (#13223) 2024-10-31 13:58:26 +00:00
mock Remove deprecated IBMQ dependent functionality (#11513) 2024-01-11 12:39:27 +00:00
passmanager Fix `PropertySet` re-use in `BasePassManager.run` (#11787) 2024-02-22 17:17:17 +00:00
primitives Add meas_level, meas_return, and noise_model options to BackendSamplerV2 (#13357) 2024-11-05 10:58:25 +00:00
providers Deprecate the condition attribute and related functionality (#13223) 2024-10-31 13:58:26 +00:00
pulse Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
qasm Remove Sabre's manual insertion-order iteration and unnecessary sorts (#9560) 2023-02-15 00:08:30 +00:00
qasm2 Deprecate the condition attribute and related functionality (#13223) 2024-10-31 13:58:26 +00:00
qasm3 Deprecate the condition attribute and related functionality (#13223) 2024-10-31 13:58:26 +00:00
qobj Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
qpy Add Qiskit native QPY ParameterExpression serialization (#13356) 2024-11-06 18:01:13 +00:00
quantum_info Add iterator-access methods to `SparseObservable` (#13370) 2024-11-05 17:18:02 +00:00
result Deprecate `qiskit.result.mitigation` (#13351) 2024-10-30 16:44:27 +00:00
scheduler Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
synthesis Remove duplicated weyl_coordinates python function (#13193) 2024-10-15 14:25:05 +00:00
transpiler Oxidize the ConsolidateBlocks pass (#13368) 2024-11-06 17:32:31 +00:00
utils Add official support for Python 3.13 (#13309) 2024-10-25 17:01:33 -04:00
visualization Deprecate the condition attribute and related functionality (#13223) 2024-10-31 13:58:26 +00:00
__init__.py Remove coding: utf-8 per PEP 3120 (#4914) 2020-08-12 08:29:16 -04:00
legacy_cmaps.py Deprecate fake backends based on BackendV1 (#12660) 2024-07-29 10:09:40 +00:00
test_user_config.py Remove consider-using-f-string lint rule and updates (#12423) 2024-06-19 07:05:56 +00:00
test_util.py Spellcheck Done [Unitary Hack 2024] (#12501) 2024-06-19 15:50:03 +00:00