#[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 pauliOpTypeThe Pauli operators acting on each qubit, flattened over every operator. ! This is a flat array of length PauliHamil.numSumTerms * PauliHamil.numQubits.
termCoeffs: *mut f64The real coefficient of each Pauli product. This is an array of length PauliHamil.numSumTerms;
numSumTerms: c_intThe number of terms in the weighted sum, or the number of Pauli products.
numQubits: c_intThe number of qubits informing the Hilbert dimension of the Hamiltonian.
Trait Implementations§
Source§impl Clone for PauliHamil
impl Clone for PauliHamil
Source§fn clone(&self) -> PauliHamil
fn clone(&self) -> PauliHamil
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 PauliHamil
impl Debug for PauliHamil
impl Copy for PauliHamil
Auto Trait Implementations§
impl Freeze for PauliHamil
impl RefUnwindSafe for PauliHamil
impl !Send for PauliHamil
impl !Sync for PauliHamil
impl Unpin for PauliHamil
impl UnwindSafe for PauliHamil
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