cirq.google.XmonSimulator¶
-
class
cirq.google.XmonSimulator(options: cirq.google.sim.xmon_simulator.XmonOptions = None)[source]¶ XmonSimulator for Xmon class quantum circuits.
This simulator has different methods for different types of simulations.
For simulations that mimic the quantum hardware, the run methods aredefined in the SimulatesSamples interface:runrun_sweepThese methods do not return or give access to the full wave function.To get access to the wave function during a simulation, including beingable to set the wave function, the simulate methods are defined in theSimulatesFinalWaveFunction interface:simulatesimulate_sweepsimulate_moment_steps (for stepping through a circuit moment by moment)-
__init__(options: cirq.google.sim.xmon_simulator.XmonOptions = None) → None[source]¶ Construct a XmonSimulator.
Parameters: options – XmonOptions configuring the simulation.
Methods
run(circuit, param_resolver, repetitions)Runs the entire supplied Circuit, mimicking the quantum hardware. run_sweep(program, …)Runs the entire supplied Circuit, mimicking the quantum hardware. 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. -