qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec.qtypes

This module contains all the data types used in the qspec package.

Type aliases:
int_likeNDArray[integer] | integer | int

An integer or an array of integers.

float_likeNDArray[floating] | floating | float

A float or an array of floats.

complex_likeNDArray[complexfloating] | complexfloating | complex

A complex number or an array of complex numbers.

scalarint | integer | float | floating | quant | NDArray[integer | floating]

A real number, including quantum numbers and 0-dimensional arrays.

complexscalarnumber | scalar | complex | NDArray[number | complexfloating]

A real or complex number, including 0-dimensional arrays.

ndarray[T: generic]NDArray[T]

A numpy array with elements of type T.

array_likeArrayLike

Any object that can be converted to a numpy array, e.g. scalars, lists or arrays.

object_1dndarray | Sequence[object]

A 1-dimensional array or sequence of objects.

object_ndSequence[object_nd] | object_1d

An arbitrarily nested array or sequence of objects.

scalar_1dndarray[integer | floating] | Sequence[scalar]

A 1-dimensional array or sequence of real numbers.

scalar_ndSequence[scalar_nd] | scalar_1d

An arbitrarily nested array or sequence of real numbers.

complexscalar_1dndarray[integer | floating | complexfloating] | Sequence[complexscalar]

A 1-dimensional array or sequence of real or complex numbers.

complexscalar_ndSequence[complexscalar_nd] | complexscalar_1d

An arbitrarily nested array or sequence of real or complex numbers.

bool_1dndarray[bool_] | Sequence[bool_]

A 1-dimensional array or sequence of booleans.

bool_ndSequence[bool_nd] | bool_1d

An arbitrarily nested array or sequence of booleans.

str_1dndarray[str_] | Sequence[str_]

A 1-dimensional array or sequence of strings.

str_ndSequence[str_nd] | str_1d

An arbitrarily nested array or sequence of strings.

sympy_exprAny

A sympy expression.

sympy_scalarsympy_expr | scalar

A sympy expression or a real number.

sympy_complexscalarsympy_expr | complexscalar

A sympy expression or a real or complex number.

fix_typestr | bool | scalar | list

The fix state of a model parameter, see qspec.models.Model.set_fix.

fix_type_1dndarray | tuple[fix_type, ...] | list[fix_type]

A list of fix states of model parameters.