Skip to content

laboneq.workflow.typing

Common type hints for laboneq.workflows.

This module provides a set of common types for use within the laboneq.workflow package.

Type hints

  • Qubits

    Either a single qubit or a sequence of qubits.

  • SimpleDict

    Simple dictionaries are used for artifact metadata and serializer options, allowing these to themselves be serialized easily, especially to JSON.

    Simple dictionaries only allow Python strings as keys and their values may be simple numeric types, strings or None.

Qubits: TypeAlias = Union[QuantumElement, Sequence[QuantumElement]] module-attribute

SimpleDict: TypeAlias = dict[str, Union[str, int, float, complex, bool, None]] module-attribute