Module: cirq.devices

Types for devices, device-specific qubits, and noise models.

Modules

device module

grid_qubit module

line_qubit module

named_topologies module

noise_model module

unconstrained_device module

Classes

class ConstantQubitNoiseModel: Applies noise to each qubit individually at the start of every moment.

class Device: Hardware constraints for validating circuits.

class GridQid: A qid on a 2d square lattice

class GridQubit: A qubit on a 2d square lattice.

class LineQid: A qid on a 1d lattice with nearest-neighbor connectivity.

class LineQubit: A qubit on a 1d lattice with nearest-neighbor connectivity.

class LineTopology: A 1D linear topology.

class NamedTopology: A topology (graph) with a name.

class NoiseModel: Replaces operations and moments with noisy counterparts.

class SymmetricalQidPair

class TiltedSquareLattice: A grid lattice rotated 45-degrees.

Functions

draw_gridlike(...): Draw a grid-like graph using Matplotlib.

draw_placements(...): Draw a visualization of placements from small_graph onto big_graph using Matplotlib.

get_placements(...): Get 'placements' mapping small_graph nodes onto those of big_graph.

Type Aliases

NOISE_MODEL_LIKE: A cirq.NoiseModel or a value that can be trivially converted into one.

NO_NOISE Instance of cirq.devices.noise_model._NoNoiseModel

The trivial noise model with no effects.

This is the noise model used when a NOISE_MODEL_LIKE noise parameter is set to None.

UNCONSTRAINED_DEVICE Instance of cirq.devices.unconstrained_device._UnconstrainedDevice

A device with no constraints on operations or qubits.