class cirq.SimulatesIntermediateState[source]

A SimulatesFinalState that simulates a circuit by moments.

Whereas a general SimulatesFinalState may return the entire wave
function at the end of a circuit, a SimulatesIntermediateState can
simulate stepping through the moments of a circuit.
Implementors of this interface should implement the _simulator_iterator

Initialize self. See help(type(self)) for accurate signature.


simulate(program[, param_resolver, …])

Simulates the supplied Circuit.

simulate_moment_steps(circuit[, …])

Returns an iterator of StepResults for each moment simulated.

simulate_sweep(program, params[, …])

Simulates the supplied Circuit.