CNOTDihedral¶
-
class
CNOTDihedral
(data, validate=True)[source]¶ Bases:
qiskit.quantum_info.operators.base_operator.BaseOperator
CNOT-dihedral Object Class. The CNOT-dihedral group on num_qubits qubits is generated by the gates CNOT, T and X.
References
Shelly Garion and Andrew W. Cross, On the structure of the CNOT-Dihedral group, arXiv:2006.12042 [quant-ph]
Andrew W. Cross, Easwar Magesan, Lev S. Bishop, John A. Smolin and Jay M. Gambetta, Scalable randomised benchmarking of non-Clifford gates, npj Quantum Inf 2, 16012 (2016).
Initialize a CNOTDihedral operator object.
Methods
Return the conjugate transpose of the CNOTDihedral element
Apply a CNOT gate to this element.
Return the composed operator.
Return the conjugate of the CNOTDihedral element.
Make a deep copy of current operator.
Return the right multiplied operator self * other.
Return the tensor product operator: other tensor self.
Apply X to this element.
Initialize from a QuantumCircuit or Instruction.
Return tuple of input dimension for specified subsystems.
Return True if input is a CNOTDihedral element.
Return tuple of output dimension for specified subsystems.
Apply an k-th power of T to this element.
Return the compose of a operator with itself n times.
Return a shallow copy with reshaped input and output subsystem dimensions.
Return the tensor product operator: self tensor other.
Return a QuantumCircuit implementing the CNOT-Dihedral element.
Return a Gate instruction implementing the CNOTDihedral object.
Convert operator to Numpy matrix.
Convert to an Operator object.
Return the transpose of the CNOT-Dihedral element.
Attributes
-
dim
¶ Return tuple (input_shape, output_shape).
-
key
¶ Return a string representation of a CNOT-dihedral object.
-
num_qubits
¶ Return the number of qubits if a N-qubit operator or None otherwise.
-
qargs
¶ Return the qargs for the operator.
-
settings
¶ Return operator settings.