cirq.SimulatesIntermediateWaveFunction¶
-
class
cirq.SimulatesIntermediateWaveFunction[source]¶ A SimulatesFinalWaveFunction that simulates a circuit by moments.
Whereas a general SimulatesFinalWaveFunction may return the entire wavefunction at the end of a circuit, a SimulatesIntermediateWaveFunction cansimulate stepping through the moments of a circuit.Implementors of this interface should implement the _simulator_iteratormethod.-
__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. -