void apply_to(Matrix_real ¶meters, Matrix &input, int parallel)
Call to apply the gate on the input array/matrix.
Base class for the representation of general gate operations.
virtual Matrix get_matrix()
Call to retrieve the operation matrix.
Header file for a class representing the X gate.
Composite()
Default constructor of the class.
Header file for a class representing the SX axis.
Header file for a class representing a CH operation.
Composite * clone()
Call to create a clone of the present class.
Header file for a class responsible for grouping gates into subcircuits. (Subcircuits can be nested) ...
virtual ~Composite()
Destructor of the class.
void apply_from_right(Matrix_real ¶meters, Matrix &input)
Call to apply the gate on the input array/matrix by input*Gate.
Header file for a class representing a CNOT operation.
Header file for a class representing a rotation gate around the Z axis.
virtual void set_qbit_num(int qbit_num_in)
Set the number of qubits spanning the matrix of the operation.
Header file for a class for the representation of general gate operations on the first qbit_num-1 qub...
Header file of complex array storage array with automatic and thread safe reference counting...
Header file for a class representing a CZ operation.
gate_type get_type()
Call to get the type of the operation.
Class to store data of complex arrays and its properties.
A class responsible for grouping two-qubit (CNOT,CZ,CH) and one-qubit gates into layers.
Header file for a class representing a U3 gate.
Header file for a class representing a rotation gate around the X axis.
Header file for a class representing a rotation gate around the Y axis.
int get_parameter_num()
Call to get the number of free parameters.
Header file for commonly used functions and wrappers to CBLAS functions.
Header file for a class for the representation of general gate operations on the first qbit_num-1 qub...
gate_type
Type definition of operation types (also generalized for decomposition classes derived from the class...
int get_qbit_num()
Call to get the number of qubits composing the unitary.
Matrix_real parameters
Parameters theta, phi, lambda of the U3 gate after the decomposition of the unitary is done...
virtual void reorder_qubits(std::vector< int > qbit_list)
Call to reorder the qubits in the matrix of the operation.
Class to store data of complex arrays and its properties.
Header file for a class representing a Sycamore gate.