mirror of https://github.com/Qiskit/qiskit-aer.git
![]() * Adjust QuantumError.to_dict() to handle lack of Instruction.condition In Qiskit 2.0 the Instruction.condition attribute will be removed following it's deprecation in 1.3.0. This attribute has been superseded by the IfElseOp which covers the use case but offers more functionality. The removal is pending in Qiskit/qiskit#13506 and the use of qiskit-aer in Qiskit's tests is blocking progress on that PR. This commit makes the usage of .condition optional to maintain compatibility with Qiskit<2.0 but also work in >=2.0 with the attribute removed. * Handle condition for AerJump as a custom attribute With the removal of .condition from the base instruction data model the .c_if() method was also removed. To handle the conditional jump that AerJump was used for a custom attribute .condition is added to the instruction. This enables retaining the functionality, but doesn't rely on the base data model to provide the attribute or method. |
||
---|---|---|
.. | ||
control_flow_instructions | ||
save_instructions | ||
set_instructions | ||
__init__.py | ||
default_qubits.py | ||
instructions_table.csv |