qiskit.aqua.circuits.StateVectorCircuit¶
-
class
StateVectorCircuit
(state_vector)[código fonte]¶ Arbitrary State-Vector Circuit.
Constructor.
- Parâmetros
state_vector (numpy.ndarray) – vector representation of the desired quantum state
- Levanta
AquaError – invalid input
-
__init__
(state_vector)[código fonte]¶ Constructor.
- Parâmetros
state_vector (numpy.ndarray) – vector representation of the desired quantum state
- Levanta
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)[código fonte]¶ Construct the circuit representing the desired state vector.
- Parâmetros
circuit (QuantumCircuit) – The optional circuit to extend from.
register (Union(QuantumRegister , list[Qubit])) – The optional qubits to construct the circuit with.
- Retorna
quantum circuit
- Tipo de retorno
- Levanta
AquaError – invalid input