loom.interpreter.utilities

Copyright 2024 Entropica Labs Pte Ltd

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

loom.interpreter.utilities.Cbit

A Cbit denotes the location of a classical bit by a tuple of a string and an integer. str: Name/id of classical register, int: measurement index inside this register

alias of tuple[str, int] | Literal[1, 0]

class loom.interpreter.utilities.CompositeOperationSession(*args, **kwargs)[source]

Bases: object

Class representing a composite operation session.

Attributes:

start_timeslice_indexint

The index of the timeslice where the composite operation session starts.

same_timeslicebool

A flag indicating whether all operations in the composite operation are to be executed in the same timeslice as the previous timeslice.

circuit_namestr

The name assigned to the composite circuit.

uuidstr

A unique identifier for the composite operation session.

circuit_name: str
same_timeslice: bool
start_timeslice_index: int
uuid: str = FieldInfo(annotation=str, required=False, default_factory=<lambda>, validate_default=True, init=False)