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
- 반환 형식
- 예외
AquaError – invalid input