qiskit-aer/qiskit_aer/library/set_instructions
Julien Gacon e6aaf03060
Remove usage of ``qiskit.extensions`` (#2023)
The module has been pending deprecation since Qiskit 0.45.
It is deprecated for 0.46 and removed in 1.0.

This removal concerns the import location of ``UnitaryGate`` and the
usage of the ``ExtensionError``. The first is easily fixed, whereas for
the latter I tried using ``ValueError`` or ``TypeError``, which seemed
to cover the error meanings. Technically, this is a breaking change and
we could introduce an intermediary class that inherits from the deprecated
``ExtensionError`` and the new choice of error. However, since we will
soon be changing to 1.0 and we also skipped this in Qiskit Terra (as we
thought it highly unlikely that users are actually relying on this error
type) it might be fine to just change the error type.
2024-01-09 13:22:23 +09:00
..
__init__.py Move Aer to its own package (#1526) 2022-08-31 10:33:59 +09:00
set_density_matrix.py Remove usage of ``qiskit.extensions`` (#2023) 2024-01-09 13:22:23 +09:00
set_matrix_product_state.py Remove usage of ``qiskit.extensions`` (#2023) 2024-01-09 13:22:23 +09:00
set_stabilizer.py Remove usage of ``qiskit.extensions`` (#2023) 2024-01-09 13:22:23 +09:00
set_statevector.py Remove usage of ``qiskit.extensions`` (#2023) 2024-01-09 13:22:23 +09:00
set_superop.py Remove usage of ``qiskit.extensions`` (#2023) 2024-01-09 13:22:23 +09:00
set_unitary.py Remove usage of ``qiskit.extensions`` (#2023) 2024-01-09 13:22:23 +09:00