virtual void reorder_qubits(std::vector< int > qbit_list)
Call to reorder the qubits in the matrix of the operation.
Header file for a class for the representation of general gate operations.
Matrix_real parameters
Parameters after the decomposition of the ONitary is done.
virtual Matrix get_matrix()
Call to retrieve the operation matrix.
void apply_to(Matrix_real ¶meters, Matrix &input, int parallel)
Call to apply the gate on the input array/matrix.
ON()
Default constructor of the class.
virtual void set_qbit_num(int qbit_num_in)
Set the number of qubits spanning the matrix of the operation.
virtual ~ON()
Destructor of the class.
Header file of complex array storage array with automatic and thread safe reference counting...
gate_type get_type()
Call to get the type of the operation.
Matrix get_submatrix(Matrix_real ¶meters)
Call to retrieve the qbut_num-1 kernel of the operation.
Class to store data of complex arrays and its properties.
int get_parameter_num()
Call to get the number of free parameters.
Base class for the representation of general gate operations.
Header file for commonly used functions and wrappers to CBLAS functions.
ON * clone()
Call to create a clone of the present class.
void apply_from_right(Matrix_real ¶meters, Matrix &input)
Call to apply the gate on the input array/matrix by input*Gate.
gate_type
Type definition of operation types (also generalized for decomposition classes derived from the class...
Base class for the representation of general gate operations.
int get_qbit_num()
Call to get the number of qubits composing the ONitary.
void set_optimized_parameters(Matrix_real parameters_)
Call to set the final optimized parameters of the gate.
Class to store data of complex arrays and its properties.
Matrix_real get_optimized_parameters()
Call to get the final optimized parameters of the gate.