CNOTUnitObjective
class qiskit.synthesis.unitary.aqc.CNOTUnitObjective(num_qubits, cnots)
Bases: ApproximatingObjective, ABC
A base class for a problem definition based on CNOT unit. This class may have different subclasses for objective and gradient computations.
Parameters
- num_qubits (int) – number of qubits.
- cnots (np.ndarray) – a CNOT structure to be used in the optimization procedure.
Attributes
num_cnots
Returns: A number of CNOT units to be used by the approximate circuit.
num_thetas
Returns: Number of parameters (angles) of rotation gates in this circuit.
target_matrix
Returns: a matrix being approximated
이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.