|View source on GitHub|
Types for devices, device-specific qubits, and noise models.
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 TiltedSquareLattice: A grid lattice rotated 45-degrees.
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