A base class for a problem definition based on CNOT unit. This class may have different subclasses for objective and gradient computations.
- num_qubits (int (opens in a new tab)) – number of qubits.
- cnots (np.ndarray) – a CNOT structure to be used in the optimization procedure.
Returns: A number of CNOT units to be used by the approximate circuit.
Returns: Number of parameters (angles) of rotation gates in this circuit.
Returns: a matrix being approximated