pub enum TrotterOrder {
First,
Second,
}Expand description
Trotter decomposition orders.
Variants§
First
First-order Trotter decomposition.
For H = Σⱼ Hⱼ, approximates exp(-iHt) ≈ Πⱼ exp(-iHⱼt). This is the simplest and fastest method but has O(t²) error per step.
Second
Second-order Trotter decomposition.
Uses the symmetric Suzuki formula for improved accuracy with O(t³) error per step. Requires twice as many exponential operations as first-order.
Trait Implementations§
Source§impl Clone for TrotterOrder
impl Clone for TrotterOrder
Source§fn clone(&self) -> TrotterOrder
fn clone(&self) -> TrotterOrder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrotterOrder
impl Debug for TrotterOrder
Source§impl PartialEq for TrotterOrder
impl PartialEq for TrotterOrder
impl Copy for TrotterOrder
impl Eq for TrotterOrder
impl StructuralPartialEq for TrotterOrder
Auto Trait Implementations§
impl Freeze for TrotterOrder
impl RefUnwindSafe for TrotterOrder
impl Send for TrotterOrder
impl Sync for TrotterOrder
impl Unpin for TrotterOrder
impl UnwindSafe for TrotterOrder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more