Japanese
言語
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.circuits.StateVectorCircuit

class StateVectorCircuit(state_vector)[ソース]

Arbitrary State-Vector Circuit.

Constructor.

パラメータ

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

例外

AquaError – invalid input

__init__(state_vector)[ソース]

Constructor.

パラメータ

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

例外

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)[ソース]

Construct the circuit representing the desired state vector.

パラメータ
  • circuit (QuantumCircuit) – The optional circuit to extend from.

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

戻り値

quantum circuit

戻り値の型

QuantumCircuit

例外

AquaError – invalid input