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