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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.