pub struct PauliTerm {
pub coefficient: f64,
pub paulis: Vec<(usize, Pauli)>,
}Expand description
A single Pauli term in a Hamiltonian.
Fields§
§coefficient: f64Coefficient of this term
paulis: Vec<(usize, Pauli)>Pauli operators: (qubit_index, pauli_type)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PauliTerm
impl RefUnwindSafe for PauliTerm
impl Send for PauliTerm
impl Sync for PauliTerm
impl Unpin for PauliTerm
impl UnwindSafe for PauliTerm
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