30 #define _USE_MATH_DEFINES 54 CROT(
int qbit_num_in,
int target_qbit_in,
int control_qbit_in,
crot_type subtype_in);
virtual Matrix_real extract_parameters(Matrix_real ¶meters)
Call to extract parameters from the parameter array corresponding to the circuit, in which the gate i...
virtual void apply_from_right(Matrix_real ¶meters, Matrix &input)
Call to apply the gate on the input array/matrix by input*CROT.
A class representing a CROT gate.
void apply_to_list(Matrix_real ¶meters_mtx, std::vector< Matrix > &input)
Call to apply the gate on the input array/matrix by U3*input.
Header file for a class representing a CNOT operation.
virtual void reorder_qubits(std::vector< int > qbit_list)
Call to reorder the qubits in the matrix of the gate.
Matrix calc_one_qubit_rotation_deriv_Phi(double ThetaOver2, double Phi)
Header file of complex array storage array with automatic and thread safe reference counting...
Matrix calc_one_qubit_rotation(double ThetaOver2, double Phi)
virtual void apply_to(Matrix_real ¶meters_mtx, Matrix &input, int parallel)
Call to apply the gate on the input array/matrix by CROT3*input.
Class to store data of complex arrays and its properties.
Base class for the representation of general gate operations.
Header file for a class representing a rotation gate around the Y axis.
virtual void set_qbit_num(int qbit_num_in)
Call to set the number of qubits spanning the matrix of the gate.
virtual CROT * clone()
Call to create a clone of the present class.
CROT()
Nullary constructor of the class.
virtual ~CROT()
Destructor of the class.
virtual std::vector< Matrix > apply_derivate_to(Matrix_real ¶meters_mtx, Matrix &input, int parallel)
Call to evaluate the derivate of the circuit on an inout with respect to all of the free parameters...
Class to store data of complex arrays and its properties.