qunits logo qunits logo

A performant, verbose and generic physical unit system.

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qunits.dimension

The qunits.dimension module contains the dimension definitions for the unit system. A dimension is a vector of the exponents of the seven SI base dimensions, see Dimension. The seven base dimensions are the unit vectors, in this order:

A special dimension is the Dimensionless dimension, which is the zero vector.

The following dimensions are predefined combinations of the base dimensions.

All other dimensions are created when they first appear in unit arithmetic, e.g. the dimension of u.cd / u.m**2, and get generated names such as LuminousIntensity__DIV__Area.

Type aliases:
DimensionVectuple[int, ...]

The exponents of the SI base dimensions time, length, mass, electric current, temperature, amount of substance and luminous intensity, in this order.