DefaultCNOTUnitObjective
class qiskit.synthesis.unitary.aqc.DefaultCNOTUnitObjective(num_qubits, cnots)
Bases: CNOTUnitObjective
A naive implementation of the objective function based on CNOT units.
Parameters
- num_qubits (int) – number of qubits.
- cnots (np.ndarray) – a CNOT structure to be used in the optimization procedure.
Methods
gradient
gradient(param_values)
Computes a gradient with respect to parameters given a vector of parameter values.
Parameters
param_values (ndarray) – a vector of parameter values for the optimization problem.
Returns
an array of gradient values.
Return type
objective
War diese Seite hilfreich?
Melden Sie auf GitHub einen Fehler, einen Tippfehler oder fordern Sie Inhalte an.