qiskit-aer/test/terra/noise
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
..
passes Update BaseEstimator import to support qiskit 2.0 (#2327) 2025-03-13 10:27:39 +01:00
__init__.py add code-formatting with black for python and with clang-format for c++ (#1630) 2023-03-13 20:19:06 +00:00
test_device_models.py Rust fix and more obsolete code fixes (#2325) 2025-03-04 18:08:50 +02:00
test_noise_inserter.py Update BaseEstimator import to support qiskit 2.0 (#2327) 2025-03-13 10:27:39 +01:00
test_noise_model.py Revert NoiseModel.from_dict (#2222) 2024-09-12 17:52:30 +09:00
test_noise_transformation.py Remove usage of ``qiskit.extensions`` (#2023) 2024-01-09 13:22:23 +09:00
test_pauli_error.py Add optimized `PauliError` quantum error operator class (#2156) 2024-06-06 15:36:16 +09:00
test_pauli_lindblad_error.py Pauli lindblad error (#2157) 2024-06-07 13:16:08 +09:00
test_quantum_error.py Remove usage of ``qiskit.extensions`` (#2023) 2024-01-09 13:22:23 +09:00
test_readout_error.py add code-formatting with black for python and with clang-format for c++ (#1630) 2023-03-13 20:19:06 +00:00
test_standard_errors.py add code-formatting with black for python and with clang-format for c++ (#1630) 2023-03-13 20:19:06 +00:00