StateVectorCircuit
class StateVectorCircuit(state_vector)
Bases: object
Arbitrary State-Vector Circuit.
Constructor.
Parameters
state_vector (numpy.ndarray) – vector representation of the desired quantum state
Raises
AquaError – invalid input
Methods
construct_circuit
StateVectorCircuit.construct_circuit(circuit=None, register=None)
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
Raises
AquaError – invalid input
Was this page helpful?
Report a bug or request content on GitHub.