iqm.cpc.interface.compiler

iqm.cpc.interface.compiler#

Pydantic models used by the API.

Module Attributes

CircuitBatch

Type that represents a list of quantum circuits to be executed together in a single batch.

PRXSequence

A sequence of PRX gates.

ReadoutMapping

Type for matching measurement keys from the quantum circuit with acquisition labels in Station Control.

ReadoutMappingBatch

Type that represents tuple of readout mappings, one per each circuit in a circuit batch.

Classes

Circuit(name, instructions)

Quantum circuit to be executed.

CircuitBoundaryMode(value[, names, module, ...])

Circuit boundary mode for circuit compilation.

CircuitCompilationResult(playlist, ...)

Compiled circuit and associated settings returned by CPC to Cocos.

CircuitExecutionOptions(measurement_mode, ...)

Various discrete options for quantum circuit execution.

CircuitMetrics(components, ...[, gate_loci, ...])

Metrics describing a circuit and its compilation result.

DDMode(value[, names, module, qualname, ...])

Dynamical Decoupling (DD) mode for circuit execution.

DDStrategy([merge_contiguous_waits, ...])

Describes a particular dynamical decoupling strategy.

HeraldingMode(value[, names, module, ...])

Heralding mode for circuit execution.

MeasurementMode(value[, names, module, ...])

Measurement mode for circuit execution.

MoveGateFrameTrackingMode(value[, names, ...])

MOVE gate frame tracking mode for circuit compilation.

MoveGateValidationMode(value[, names, ...])

MOVE gate validation mode for circuit compilation.

Inheritance

digraph inheritance89c4d889c3 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "Circuit" [URL="iqm.cpc.interface.compiler.Circuit.html#iqm.cpc.interface.compiler.Circuit",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Quantum circuit to be executed."]; "CircuitBoundaryMode" [URL="iqm.cpc.interface.compiler.CircuitBoundaryMode.html#iqm.cpc.interface.compiler.CircuitBoundaryMode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Circuit boundary mode for circuit compilation."]; "StrEnum" -> "CircuitBoundaryMode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CircuitCompilationResult" [URL="iqm.cpc.interface.compiler.CircuitCompilationResult.html#iqm.cpc.interface.compiler.CircuitCompilationResult",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Compiled circuit and associated settings returned by CPC to Cocos."]; "CircuitExecutionOptions" [URL="iqm.cpc.interface.compiler.CircuitExecutionOptions.html#iqm.cpc.interface.compiler.CircuitExecutionOptions",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Various discrete options for quantum circuit execution."]; "CircuitMetrics" [URL="iqm.cpc.interface.compiler.CircuitMetrics.html#iqm.cpc.interface.compiler.CircuitMetrics",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Metrics describing a circuit and its compilation result."]; "DDMode" [URL="iqm.cpc.interface.compiler.DDMode.html#iqm.cpc.interface.compiler.DDMode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Dynamical Decoupling (DD) mode for circuit execution."]; "StrEnum" -> "DDMode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DDStrategy" [URL="iqm.cpc.interface.compiler.DDStrategy.html#iqm.cpc.interface.compiler.DDStrategy",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Describes a particular dynamical decoupling strategy."]; "Enum" [URL="https://docs.python.org/3.11/library/enum.html#enum.Enum",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Create a collection of name/value pairs."]; "HeraldingMode" [URL="iqm.cpc.interface.compiler.HeraldingMode.html#iqm.cpc.interface.compiler.HeraldingMode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Heralding mode for circuit execution."]; "StrEnum" -> "HeraldingMode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MeasurementMode" [URL="iqm.cpc.interface.compiler.MeasurementMode.html#iqm.cpc.interface.compiler.MeasurementMode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Measurement mode for circuit execution."]; "StrEnum" -> "MeasurementMode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MoveGateFrameTrackingMode" [URL="iqm.cpc.interface.compiler.MoveGateFrameTrackingMode.html#iqm.cpc.interface.compiler.MoveGateFrameTrackingMode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="MOVE gate frame tracking mode for circuit compilation."]; "StrEnum" -> "MoveGateFrameTrackingMode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MoveGateValidationMode" [URL="iqm.cpc.interface.compiler.MoveGateValidationMode.html#iqm.cpc.interface.compiler.MoveGateValidationMode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="MOVE gate validation mode for circuit compilation."]; "StrEnum" -> "MoveGateValidationMode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ReprEnum" [URL="https://docs.python.org/3.11/library/enum.html#enum.ReprEnum",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Only changes the repr(), leaving str() and format() to the mixed-in type."]; "Enum" -> "ReprEnum" [arrowsize=0.5,style="setlinewidth(0.5)"]; "StrEnum" [URL="https://docs.python.org/3.11/library/enum.html#enum.StrEnum",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Enum where members are also (and must be) strings"]; "ReprEnum" -> "StrEnum" [arrowsize=0.5,style="setlinewidth(0.5)"]; }