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