qiskit-aer/test
Elena Peña Tapia f77dbd3863
Update BaseEstimator import to support qiskit 2.0 (#2327)
* Use versioned base class for BaseEstimatorV1 instead of deprecated unversioned alias

* Vendor removed V1 utils

* Fix black

* Replace bit with qubit

* Remove assemble test, as assemble was deprecated in 1.4 and removed in 2.0

* Treat header as dict

* Handle header conditionally

* c_if is removed in 2.0, keep functionality for compatibility with 1.4 but remove use in tests

* Fix access to header in tests

* Remove use of instruction_durations in transpile

* Attempt at fixing custom gate mapping. Not sure if gate = None is accepted as a gate definition

* IfElseOp is not supported by statevector simulator. Reverted uni tests to c_if and added a conditional skip depending on qiskit version

* Remove wrong import

* Fix failed target construction

* Only run tests with c_if with qiskit<2

* Address leftover custom basis gates in transpiler

* Attempt at addressing .duration removal

* Add unittest import missing in previous commit

* Use new target arg in tests for relaxation noise pass

* Fix lint

* Don't use target with backend props

* Attempt at fixing relaxation pass

* use hashable type

* Fix issue with pickle/dill (temporary skip of fractional gates)

* Add missing c_if skip

* Skip transpilation to avoid qiskit bug in test

* Skipping transpilation affects results

* Update truncation test. This test was relying on the transpiler blowing up the circuit to an arbitrary coupling map, which is something independent of the enable_truncation flag. The test now skips transpilation and exclusively tests the truncation (with enable_truncation=True, the test returns 2 instead of 4 qubits)

* Apply suggestion to use shots None

* Get rid of shot noise

* Improve truncation test

* Assert number of active qubits
2025-03-13 10:27:39 +01:00
..
benchmark Update BaseEstimator import to support qiskit 2.0 (#2327) 2025-03-13 10:27:39 +01:00
runtime
terra Update BaseEstimator import to support qiskit 2.0 (#2327) 2025-03-13 10:27:39 +01:00
__init__.py
asv.linux.conf.json
asv.linux.cuda.conf.json