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

ApproximateCircuit

class qiskit.synthesis.unitary.aqc.ApproximateCircuit(num_qubits, name=None)

GitHub

Bases: QuantumCircuit, ABC

A base class that represents an approximate circuit.

Parameters

  • num_qubits (int) – number of qubits this circuit will span.
  • name (Optional[str]) – a name of the circuit.

Attributes

thetas

The property is not implemented and raises a NotImplementedError exception.

Returns

a vector of parameters of this circuit.

name

Tipo: str

A human-readable name for the circuit.

Example

from qiskit import QuantumCircuit

qc = QuantumCircuit(2, 2, name="my_circuit")
print(qc.name)
my_circuit

Methods

build

abstract build(thetas)

GitHub

Constructs this circuit out of the parameters(thetas). Parameter values must be set before

constructing the circuit.

Parameters

thetas (ndarray) – a vector of parameters to be set in this circuit.

Return type

None

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