Skip to content

Commit

Permalink
import CircuitInstruction to fix Pylance complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Dec 18, 2024
1 parent 053ee32 commit 961c8ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qiskit/circuit/quantumcircuitdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
from collections.abc import MutableSequence

import qiskit._accelerate.circuit
from qiskit._accelerate.circuit import CircuitInstruction

from .exceptions import CircuitError
from .instruction import Instruction
from .operation import Operation


CircuitInstruction = qiskit._accelerate.circuit.CircuitInstruction


class QuantumCircuitData(MutableSequence):
"""A wrapper class for the purposes of validating modifications to
QuantumCircuit.data while maintaining the interface of a python list."""
Expand Down

0 comments on commit 961c8ad

Please sign in to comment.