Module: cirq.google

Modules

api module: Helpers for converting to/from api data formats.

arg_func_langs module

common_serializers module: Common Serializers that can be used by APIs.

devices module

engine module: Client for running on Google's Quantum Engine.

gate_sets module: Gate sets supported by Google's apis.

line module

op_deserializer module

op_serializer module

ops module

optimizers module: Package for optimizers and gate compilers related to Google-specific devices.

serializable_gate_set module: Support for serializing and deserializing cirq.google.api.v2 protos.

Classes

class AnnealSequenceSearchStrategy: Linearized sequence search using simulated annealing method.

class Calibration: A convenience wrapper for calibrations that acts like a dictionary.

class ConvertToSqrtIswapGates: Attempts to convert gates into ISWAP**-0.5 gates.

class ConvertToSycamoreGates: Attempts to convert non-native gates into SycamoreGates.

class ConvertToXmonGates: Attempts to convert strange gates into XmonGates.

class DeserializingArg: Specification of the arguments to deserialize an argument to a gate.

class Engine: Runs programs via the Quantum Engine API.

class EngineJob: A job created via the Quantum Engine API.

class EngineProcessor: A processor available via the Quantum Engine API.

class EngineProgram: A program created via the Quantum Engine API.

class EngineTimeSlot: A python wrapping of a Quantum Engine timeslot.

class GateOpDeserializer: Describes how to deserialize a proto to a given Gate type.

class GateOpSerializer: Describes how to serialize a GateOperation for a given Gate type.

class GateTabulation: A 2-qubit gate compiler based on precomputing/tabulating gate products.

class GreedySequenceSearchStrategy: Greedy search method for linear sequence of qubits on a chip.

class LinePlacementStrategy: Choice and options for the line placement calculation method.

class PhysicalZTag: Class to add as a tag onto an Operation to denote a Physical Z operation.

class ProtoVersion: Protocol buffer version to use for requests to the quantum engine.

class QuantumEngineSampler: A sampler that samples from processors managed by the Quantum Engine.

class SerializableDevice: Device object generated from a device specification proto.

class SerializableGateSet: A class for serializing and deserializing programs and operations.

class SerializingArg: Specification of the arguments for a Gate and its serialization.

class SycamoreGate: The Sycamore gate is a two-qubit gate equivalent to FSimGate(π/2, π/6).

class XmonDevice: A device with qubits placed in a grid. Neighboring qubits can interact.

Functions

SYC(...): The Sycamore gate is a two-qubit gate equivalent to FSimGate(π/2, π/6).

engine_from_environment(...): THIS FUNCTION IS DEPRECATED.

get_engine(...): Get an Engine instance assuming some sensible defaults.

get_engine_calibration(...): Returns calibration metrics for a given processor.

get_engine_device(...): Returns a Device object for a given processor.

get_engine_sampler(...): Get an EngineSampler assuming some sensible defaults.

line_on_device(...): Searches for linear sequence of qubits on device.

optimized_for_sycamore(...): Optimizes a circuit for Google devices.

optimized_for_xmon(...)

Bristlecone 72 xmon qubit device.

Qubit grid:

                                             (0, 5)────(0, 6)
                                             │         │
                                             │         │
                                    (1, 4)───(1, 5)────(1, 6)────(1, 7)
                                    │        │         │         │
                                    │        │         │         │
                           (2, 3)───(2, 4)───(2, 5)────(2, 6)────(2, 7)───(2, 8)
                           │        │        │         │         │        │
                           │        │        │         │         │        │
                  (3, 2)───(3, 3)───(3, 4)───(3, 5)────(3, 6)────(3, 7)───(3, 8)───(3, 9)
                  │        │        │        │         │         │        │        │
                  │        │        │        │         │         │        │        │
         (4, 1)───(4, 2)───(4, 3)───(4, 4)───(4, 5)────(4, 6)────(4, 7)───(4, 8)───(4, 9)───(4, 10)
         │        │        │        │        │         │         │        │        │        │
         │        │        │        │        │         │         │        │        │        │
(5, 0)───(5, 1)───(5, 2)───(5, 3)───(5, 4)───(5, 5)────(5, 6)────(5, 7)───(5, 8)───(5, 9)───(5, 10)───(5, 11)
         │        │        │        │        │         │         │        │        │        │
         │        │        │        │        │         │         │        │        │        │
         (6, 1)───(6, 2)───(6, 3)───(6, 4)───(6, 5)────(6, 6)────(6, 7)───(6, 8)───(6, 9)───(6, 10)
                  │        │        │        │         │         │        │        │
                  │        │        │        │         │         │        │        │
                  (7, 2)───(7, 3)───(7, 4)───(7, 5)────(7, 6)────(7, 7)───(7, 8)───(7, 9)
                           │        │        │         │         │        │
                           │        │        │         │         │        │
                           (8, 3)───(8, 4)───(8, 5)────(8, 6)────(8, 7)───(8, 8)
                                    │        │         │         │
                                    │        │         │         │
                                    (9, 4)───(9, 5)────(9, 6)────(9, 7)
                                             │         │
                                             │         │
                                             (10, 5)───(10, 6)

FSIM_GATESET Gate set that combines sqrt(iswap) and syc as one fsim id.
Foxtail 72 xmon qubit device.

Qubit grid:

(0, 0)───(0, 1)───(0, 2)───(0, 3)───(0, 4)───(0, 5)───(0, 6)───(0, 7)───(0, 8)───(0, 9)───(0, 10)
│        │        │        │        │        │        │        │        │        │        │
│        │        │        │        │        │        │        │        │        │        │
(1, 0)───(1, 1)───(1, 2)───(1, 3)───(1, 4)───(1, 5)───(1, 6)───(1, 7)───(1, 8)───(1, 9)───(1, 10)

NAMED_GATESETS A convenience mapping from gateset names to gatesets
SQRT_ISWAP_GATESET Gate set with sqrt(iswap) as the core 2 qubit interaction.
SYC_GATESET Gate set with fsim(pi/2, pi/6) as the core 2 qubit interaction.
Sycamore cirq.google.SerializableDevice
Sycamore23 cirq.google.SerializableDevice
XMON Gate set for XMON devices.