48 CNOT(
int qbit_num_in,
int target_qbit_in,
int control_qbit_in);
Base class for the representation of one- and two-qubit operations.
CNOT(int qbit_num_in, int target_qbit_in, int control_qbit_in)
Constructor of the class.
Header file for a class for the representation of one- and two-qubit operations.
Matrix composite_cnot()
Calculate the matrix of a CNOT gate operation acting on the space of qbit_num qubits.
void reorder_qubits(std::vector< int > qbit_list)
Call to reorder the qubits in the matrix of the operation.
int qbit_num
number of qubits spanning the matrix of the operation
CNOT * clone()
Call to create a clone of the present class.
A class representing a CNOT operation.
void set_qbit_num(int qbit_num)
Call to set the number of qubits spanning the matrix of the operation.
Class to store data of complex arrays and its properties.
~CNOT()
Destructor of the class.
Matrix get_matrix()
Call to retrieve the operation matrix.