Struct quest_sys::PauliHamil
source · [−]#[repr(C)]pub struct PauliHamil {
pub pauliCodes: *mut pauliOpType,
pub termCoeffs: *mut f64,
pub numSumTerms: c_int,
pub numQubits: c_int,
}Expand description
A Pauli Hamiltonian, expressed as a real-weighted sum of pauli products, and which can hence represent any Hermitian operator.
@ingroup type @author Tyson Jones
Fields
pauliCodes: *mut pauliOpType! The Pauli operators acting on each qubit, flattened over every operator. ! This is a flat array of length PauliHamil.numSumTerms * PauliHamil.numQubits.
termCoeffs: *mut f64! The real coefficient of each Pauli product. This is an array of length PauliHamil.numSumTerms;
numSumTerms: c_int! The number of terms in the weighted sum, or the number of Pauli products.
numQubits: c_int! The number of qubits informing the Hilbert dimension of the Hamiltonian.
Trait Implementations
sourceimpl Clone for PauliHamil
impl Clone for PauliHamil
sourcefn clone(&self) -> PauliHamil
fn clone(&self) -> PauliHamil
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PauliHamil
impl Debug for PauliHamil
impl Copy for PauliHamil
Auto Trait Implementations
impl RefUnwindSafe for PauliHamil
impl !Send for PauliHamil
impl !Sync for PauliHamil
impl Unpin for PauliHamil
impl UnwindSafe for PauliHamil
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more