pub struct MpsConfig {
pub max_bond_dim: usize,
pub truncation_threshold: f64,
}Expand description
Configuration for the MPS simulator.
Fields§
§max_bond_dim: usizeMaximum bond dimension. Higher values yield more accurate simulation at the cost of increased memory and computation time. Typical values: 64, 128, 256, 512, 1024.
truncation_threshold: f64Truncation threshold: singular values below this are discarded.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MpsConfig
impl RefUnwindSafe for MpsConfig
impl Send for MpsConfig
impl Sync for MpsConfig
impl Unpin for MpsConfig
impl UnsafeUnpin for MpsConfig
impl UnwindSafe for MpsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more