qiskit.ignis.verification.CNOTDihedral.from_circuit¶
-
CNOTDihedral.
from_circuit
(circuit)[source]¶ Initialize from a QuantumCircuit or Instruction.
- Parameters
circuit (QuantumCircuit or Instruction) – instruction to initialize.
- Returns
the CNOTDihedral object for the circuit.
- Return type
- Raises
QiskitError – if the input instruction is not CNOTDihedral or contains classical register instruction.