Skip to content

loqs.core.instructions.instruction

Classes

Attributes

Name Type Value Doc
T TypeVar TypeVar('T', bound='Instruction')
P ParamSpec('P')
KwargDict TypeAlias dict[str, object] A type alias for kwarg dicts (str keys, object values).
DEFAULT_PRIORITIES ['label', 'instruction', 'patch_data', 'program', 'history[-1]'] Default parameter priority order.

Functions

default_map_qubits

default_map_qubits(qubit_mapping: Mapping[str | int, str | int], **kwargs)

A default map qubit function that does not change kwargs.