SpinCircuitSolver.get_initial_state

SpinCircuitSolver.get_initial_state(circuit)[source]

Return the initial state as a sparse column vector.

Parameters:

circuit (QuantumCircuit) – A circuit that tells us the dimension of the initial state to return.

Returns:

A sparse column vector of the initial state.

Return type:

initial state