Skip to main content

tensor4all_itensorlike/
lib.rs

1#![warn(missing_docs)]
2#![doc = include_str!("../README.md")]
3
4pub mod contract;
5pub mod error;
6pub mod linsolve;
7pub mod options;
8pub mod tensortrain;
9
10pub use contract::contract;
11pub use error::{Result, TensorTrainError};
12pub use linsolve::linsolve;
13pub use options::{
14    CanonicalForm, ContractMethod, ContractOptions, LinsolveOptions, TruncateOptions,
15};
16pub use tensortrain::TensorTrain;
17
18/// Type alias for Matrix Product State (MPS).
19///
20/// In ITensors.jl, MPS and MPO share the same underlying type.
21/// Here, both are aliases for [`TensorTrain`].
22pub type MPS = TensorTrain;
23
24/// Type alias for Matrix Product Operator (MPO).
25///
26/// In ITensors.jl, MPS and MPO share the same underlying type.
27/// Here, both are aliases for [`TensorTrain`].
28pub type MPO = TensorTrain;