German
Sprachen
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.circuits.StateVectorCircuit

class StateVectorCircuit(state_vector)[Quellcode]

Arbitrary State-Vector Circuit.

Constructor.

Parameter

state_vector (numpy.ndarray) – vector representation of the desired quantum state

Verursacht

AquaError – invalid input

__init__(state_vector)[Quellcode]

Constructor.

Parameter

state_vector (numpy.ndarray) – vector representation of the desired quantum state

Verursacht

AquaError – invalid input

Methods

__init__(state_vector)

Constructor.

construct_circuit([circuit, register])

Construct the circuit representing the desired state vector.

construct_circuit(circuit=None, register=None)[Quellcode]

Construct the circuit representing the desired state vector.

Parameter
  • circuit (QuantumCircuit) – The optional circuit to extend from.

  • register (Union(QuantumRegister , list[Qubit])) – The optional qubits to construct the circuit with.

Rückgabe

quantum circuit

Rückgabetyp

QuantumCircuit

Verursacht

AquaError – invalid input