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 are provided:

run run_sweep

These methods do not return or give access to the full wave function.

To get access to the wave function during a simulation, including being able to set the wave function, the simulate methods are provided:

simulate simulate_sweep simulate_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(program, options, …) Returns an iterator of XmonStepResults for each moment simulated.
simulate_sweep(program, …) Simulates the entire supplied Circuit.