ariadnetor 0.0.1

Tensor network library in Rust
Documentation

ariadnetor: tensor network library in Rust.

ariadnetor is the umbrella tensor library; it re-exports types and functions from the layers listed below into its own namespace. Each layer depends only on the layers listed earlier:

  • [ariadnetor_core] — backend-agnostic abstractions (Scalar, ComputeBackend, EinsumExpr). The MemoryOrder layout type is intentionally not re-exported: the umbrella's public API hides memory layout from end users.
  • [ariadnetor_native] — NativeBackend: faer (+ optional hptt-rs transpose).
  • [ariadnetor_tensor] — user-facing Tensor, DenseTensor, BlockSparseTensor, Sector, QNIndex.
  • [ariadnetor_linalg] — backend-agnostic linear algebra over &Tensor (contract, svd, qr, eigh, expm, …).

ariadnetor_mps and ariadnetor_algorithms are separate consumer crates that depend on the leaf crates directly rather than on this umbrella; they are not re-exported here.

Example

use ariadnetor::DenseTensor;

let a = DenseTensor::<f64>::zeros(vec![2, 3]);
let b = DenseTensor::<f64>::zeros(vec![3, 2]);

assert_eq!(a.shape(), &[2, 3]);
assert_eq!(b.shape(), &[3, 2]);