English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.circuits.StateVectorCircuit

class StateVectorCircuit(state_vector)[source]

Arbitrary State-Vector Circuit.

Constructor.

Parameters

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

Raises

AquaError – invalid input

__init__(state_vector)[source]

Constructor.

Parameters

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

Raises

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)[source]

Construct the circuit representing the desired state vector.

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

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

Returns

quantum circuit

Return type

QuantumCircuit

Raises

AquaError – invalid input