FermionCircuitSolver.get_initial_state

FermionCircuitSolver.get_initial_state(circuit)[source]

Return the initial state of the quantum circuit as a sparse column vector.

Parameters:

circuit (QuantumCircuit) – The circuit for which to extract the initial_state.

Return type:

csc_matrix

Returns:

The initial state of the circuit as a sparse matrix.