28 #define _USE_MATH_DEFINES 54 CNOT(
int qbit_num_in,
int target_qbit_in,
int control_qbit_in);
Matrix calc_one_qubit_u3()
Set static values for matrix of the gates.
Header file for a class for the representation of general gate operations.
virtual void apply_to(Matrix &input, int parallel)
Call to apply the gate on the input array/matrix by CNOT*input.
virtual void reorder_qubits(std::vector< int > qbit_list)
Call to reorder the qubits in the matrix of the operation.
Header file of complex array storage array with automatic and thread safe reference counting...
virtual void apply_from_right(Matrix &input)
Call to apply the gate on the input array/matrix by input*CNOT.
virtual CNOT * clone()
Call to create a clone of the present class.
A class representing a CNOT operation.
virtual void set_qbit_num(int qbit_num)
Call to set the number of qubits spanning the matrix of the operation.
CNOT()
Nullary constructor of the class.
Class to store data of complex arrays and its properties.
Base class for the representation of general gate operations.
virtual ~CNOT()
Destructor of the class.
Matrix get_matrix()
Call to retrieve the operation matrix.
int qbit_num
number of qubits spanning the matrix of the operation