CircuitOperation#

class iqm.pulse.builder.CircuitOperation(name, locus, args=<factory>, implementation=None)#

Bases: object

Specific quantum operation applied on a specific part of the QPU, e.g. in a quantum circuit.

Module: iqm.pulse.builder

Attributes

implementation

name of the implementation

name

name of the quantum operation

locus

names of the information-bearing QPU components (qubits, computational resonators...) the operation acts on

args

arguments for the operation

Methods

validate

Validate the operation against a table of operation definitions.

Parameters:
name: str#

name of the quantum operation

locus: tuple[str, ...]#

names of the information-bearing QPU components (qubits, computational resonators…) the operation acts on

args: dict[str, Any]#

arguments for the operation

implementation: str | None = None#

name of the implementation

validate(op_table)#

Validate the operation against a table of operation definitions.

Parameters:

op_table (dict[str, QuantumOp]) – table containing allowed quantum operations

Raises:

ValueError – operation is not valid

Return type:

None