cirq.SimulatesIntermediateWaveFunction

class cirq.SimulatesIntermediateWaveFunction[source]

A SimulatesFinalWaveFunction that simulates a circuit by moments.

Whereas a general SimulatesFinalWaveFunction may return the entire wave
function at the end of a circuit, a SimulatesIntermediateWaveFunction can
simulate stepping through the moments of a circuit.
Implementors of this interface should implement the _simulator_iterator
method.
__init__()

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

Methods

simulate(circuit, param_resolver, …) Simulates the entire supplied Circuit.
simulate_moment_steps(circuit, …) Returns an iterator of StepResults for each moment simulated.
simulate_sweep(program, …) Simulates the entire supplied Circuit.