pub struct Term {
pub coeff: f64,
pub factors: Vec<Factor>,
}Expand description
One product term of an operator: a real scalar coeff times an ordered
product of Factors, applied right-to-left to the ket.
Fields§
§coeff: f64Real scalar coefficient.
factors: Vec<Factor>Ordered factors (operators act right-to-left, i.e. the last factor acts on the ket first).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Term
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnsafeUnpin for Term
impl UnwindSafe for Term
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