Repository navigation
Not published to crates.io (decision 2026-11-08: tags only, no registry release for now).
Downstreams that pin a git revision should use this tag.
v0.3.0
Breaking Rust API changes
Fixed-rank randomized factorization (#1108) and the partitioned TreeTN error
enum are breaking pre-1.0 Rust API changes designated for the next minor
release. The following changes break exhaustive matches, complete struct
literals, or named public types:
-
tensor4all-partitionedtreetn:PartitionedTreeTNErrorgained the
RefinementTooLarge { atoms, limit }variant (#1143) and is now
#[non_exhaustive]. Both land in this release, so an exhaustive match breaks
once: add a wildcard arm, and later variants stay additive. -
tensor4all-core:FactorizeAlg::RSVDand
FactorizeError::UnsupportedTruncationPolicyare new enum variants.
FactorizeOptionsaddsrandomizedandrsvd_seed. Update exhaustive
matches and use the options constructors or..Default::default()in
struct literals. -
tensor4all-treetn:ContractionOptionsandFitOptionsaddrandomized
andrsvd_seed.FitUpdatergains a lifetime parameter for the borrowed
execution strategy and RNG. Update named types and complete struct literals. -
tensor4all-simplett: remove the unimplementedFactorizeMethod::RSVD
variant and its unusedrsvd_p/rsvd_qoptions. New randomized consumers
use the core and TreeTN APIs. -
tensor4all-capi: remove the unused RustFrom<FactorizeAlg>conversion
to the C enum. The C ABI and C enum values are unchanged. -
tensor4all-tensorbackend:ScalarValue(the dynamic scalar value) and
ScalarTensorElement(its construction trait) are now public here and are the
only definitions;tensor4all-coredropped its private copies and uses these.
BackendScalarandAnyScalarremain the two wrappers. The new public surface
is additive; the removed core items werepub(crate), so no external caller
loses a path.
Fixed
abs()of ac32scalar is now formed inf64(hypotafter widening the
parts) instead of computing the modulus inf32and widening the result, so
BackendScalar::absandAnyScalar::absagree bit-for-bit. Values change only
by the last bits of the formerf32norm.abs()of an integer scalar widens before taking the absolute value, so
i32::MINandi64::MINno longer overflow (debug panic / negative result in
release).
Added
- Dense fixed-rank RSVD, Gaussian range finding, caller-owned RNG entries,
and RSVD selection in TreeTN Fit and Zipup. Supported scalar types are
f64andComplex64;f32andComplex32are unsupported.
Public-API renames and removals since v0.2.0
The sections above record release impact; this one is the porting list. It names
the public Rust API and C API items that existed at v0.2.0 and no longer exist
at this tag, grouped by crate. Each entry cites the commit that made the change
(12 hex digits) and the pull request. Additions are not listed here — read the
rustdoc for those. Nothing is published to crates.io; depend on the tag as
described in README.md.
Crate-level changes
tensor4all-tcicorewas dissolved intotensor4all-core—5396d0d25bbd,
#639, #642. The public modulescached_function,indexset,matrixaca,
matrixlu,matrixluci(withcache_key,error,index_int,scalar,
traits), the typesCachedFunction,IndexSet,MultiIndex,LocalIndex,
MatrixACA,MatrixLUCI,MatrixLuciFactors,RrLU,RrLUOptions, the
traitsAbstractMatrixCI,CacheKey,IndexInt,Scalar, and the error
enumsCacheKeyErrorandMatrixCIErrormoved totensor4all-core; their
inherent methods moved with them. The crate itself no longer exists. Two
other removals landed in the crate before it was dissolved:rrlu_inplace—
7d263fadb7ef, #595;PivotKernelOptions::max_rankand
RrLUOptions::max_rank—9a77ac651643, #599.tensor4all-partitionedttwas replaced by the newtensor4all-partitionedtreetn
crate —8ee92420e528, #915 D3, #1005.PartitionedTT,SubDomainTT,
Projector,PatchingOptions(fieldsmax_bond_dim,patch_order,rtol),
PartitionedTTErrorwith its seven variants,Result, and their inherent
methods are gone. Before that removal:data_mut,get_mut,values_mut—
2b11f7fe564a, #649;SubDomainTT::siteinds—7d263fadb7ef, #595;
PartitionedTTError::TensorTrainError—928c567b922e, #589.
tensor4all-core
7d263fadb7ef, #595 —replaceindsrenamed toreplace_indicesand
replaceinds_in_placetoreplace_indices_mut; removedas_slice_f64and
as_slice_c64(use the genericto_vec::<f64>()/to_vec::<Complex64>()).a93f582c202f, #612 —TensorDynLenrenamed toIdxTensor, the module
tensordynlentoidx_tensor, and the constructordiag_tensor_dyn_lento
diag_idx_tensor. Theindicesfield is a separate change, below.6e0d55800018, #1024 — theindicesfield ofIdxTensor(public at
v0.2.0) becamepub(crate); read it throughIdxTensor::indices().9a77ac651643, #599 —SvdOptions::max_rankandFactorizeOptions::max_rank
renamed tomax_bond_dim;with_max_rankrenamed towith_max_bond_dim.2c972983e594, #616, #643 —index_ops::hasinds
See CHANGELOG.md in the tree for the complete list.