Crate qudit_core

Crate qudit_core 

Source
Expand description

Qudit-Core is the core package in the OpenQudit library.

Modules§

accel
Accelerated mathematical operations.
array
Implements the tensor struct and associated methods for the Openqudit library.
memory
Memory management types and helper functions for the Openqudit library.

Structs§

Ket
Represents a quantum state vector as a Ket.
LimitedSizeVec
A vector-like container with 32-bit length and capacity limits.
ParamInfo
Information about function parameters, including their indices and whether they are constant.
QuditPermutation
A permutation of qudits.
Radices
The number of basis states for each qudit (or dit) in a quantum system.
Radix
A validated radix (number base) value between 2 and 255 inclusive.
UnitaryMatrix
A unitary matrix over a qudit system.

Enums§

CompactVec
A space-efficient vector that stores small collections inline and transitions to heap allocation when needed.
ParamIndices
A data structure representing indices of parameters (e.g. for a function). There are optimized methods for consecutive and disjoint parameters.

Traits§

BitWidthConvertible
A trait for converting between different bit-width representations.
ClassicalSystem
A data structure consisting of or operating on a specified number of dits.
CompactStorage
A trait for types that can be stored compactly by attempting to fit them into smaller storage types.
ComplexScalar
A generic complex number within the OpenQudit library.
HasBounds
A bounded, parameterized object.
HasParams
A parameterized object.
HasPeriods
A periodic, parameterized object
HybridSystem
A data structure that consists of or operates on a hybrid quantum-classical system.
QuditSystem
A data structure consisting of or operating on a specified number of finite-dimensional qudits.
RealScalar
A generic real number within the OpenQudit library.

Functions§

calc_index_permutation
Calculate the index permutation from a qudit permutation for a given radices.

Type Aliases§

c32
Complex number types. Complex<f32>
c64
Complex<f64>
c128
Complex<f64>