Qiskit / qiskit-aer

Aer is a high performance simulator for quantum circuits that includes noise models
https://qiskit.github.io/qiskit-aer/
Apache License 2.0
464 stars 354 forks source link

Fix legacy accesses of `CircuitInstruction` #2179

Open jakelishman opened 1 week ago

jakelishman commented 1 week ago

Summary

Using Terra's CircuitInstruction like a tuple is a legacy access pattern. The pattern of using named access attributes was introduced about two years ago, and the legacy format is about to be deprecated. This fixes up the last couple of uses.

Details and comments

Terra 1.2 will likely deprecate this.