Skip to main content
IBM Quantum Platform
Esta página corresponde a una versión anterior de Qiskit SDK Ir a la última versión

FastCNOTUnitObjective

class qiskit.synthesis.unitary.aqc.FastCNOTUnitObjective(num_qubits, cnots)

GitHub

Bases: CNOTUnitObjective

Implementation of objective function and gradient calculator, which is similar to DefaultCNOTUnitObjective but several times faster.

Parameters

  • num_qubits (int) – number of qubits.
  • cnots (ndarray) – a CNOT structure to be used in the optimization procedure.

Methods

gradient

gradient(param_values)

GitHub

Computes the gradient of objective function. See description of the base class method.

Parameters

param_values (ndarray) –

Return type

ndarray

objective

objective(param_values)

GitHub

Computes the objective function and some intermediate data for the subsequent gradient computation. See description of the base class method.

Parameters

param_values (ndarray) –

Return type

float

¿Le ha resultado útil esta página?
Informe de un error, de una errata o solicite contenido en GitHub.