quri_parts.stim.simulator module#

quri_parts.stim.simulator.evaluate_state_to_vector(state: GeneralCircuitQuantumState | QuantumStateVector) QuantumStateVector#

Convert GeneralCircuitQuantumState or QuantumStateVector to QuantumStateVector that only contains the state vector.

quri_parts.stim.simulator.run_circuit(circuit: NonParametricQuantumCircuit, init_state: ndarray[Any, dtype[complex128]]) ndarray[Any, dtype[complex128]]#

Act a NonParametricQuantumCircuit onto a state vector and returns a new state vector.

Note that in Stim, the output vector gets canonicalized in the way that the first non-zero component of the output vector is positive.