cosmiq.conventions#

The conventions every cosmiq object follows, written once.

Documents and results record CONVENTIONS.version, so a reader always knows what the bits and signs mean. The Conventions page explains each field.

Classes

class cosmiq.conventions.Conventions(version: str, hamiltonian: str, phase_sign: str, local_detuning_sign: str, bit_meaning: tuple[tuple[int, str], ...], atom_order: str, state_order: str, units: tuple[tuple[str, str], ...])#

Bases: object

version: str#

Bumped when a meaning below changes, which is always a breaking change. Adding a field that gives a new meaning, and changes none, keeps the version.

hamiltonian: str#

\(H/\hbar\) in rad/µs, as LaTeX.

phase_sign: str#
local_detuning_sign: str#
bit_meaning: tuple[tuple[int, str], ...]#
atom_order: str#
state_order: str#

How a state vector or probability vector is indexed.

units: tuple[tuple[str, str], ...]#

Values

cosmiq.conventions.CONVENTIONS#