ABC (opens in a new tab)
Quantum Operation Interface Class. For objects that can be added to a
QuantumCircuit. These objects include
Measure, and operators such as
Clifford. The main purpose is to add an
Operation to a
QuantumCircuit without synthesizing it before the transpilation.
Add a Clifford and a Toffoli gate to a QuantumCircuit.
from qiskit import QuantumCircuit from qiskit.quantum_info import Clifford, random_clifford qc = QuantumCircuit(3) cliff = random_clifford(2) qc.append(cliff, [0, 1]) qc.ccx(0, 1, 2) qc.draw('mpl')
Unique string identifier for operation type.
Number of classical bits.
Number of qubits.