pub struct MpsConfig {
pub n_qubits: usize,
pub max_bond_dim: usize,
pub svd_cutoff: f32,
}Expand description
Configuration for an MatrixProductState simulation.
Fields§
§n_qubits: usizeNumber of qubits (sites) in the chain.
max_bond_dim: usizeMaximum retained bond dimension χ after a truncated SVD.
svd_cutoff: f32Singular values strictly below this threshold are dropped.
Implementations§
Trait Implementations§
impl Copy for MpsConfig
impl StructuralPartialEq for MpsConfig
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