Represents a weighted sum of pauli products. More...
#include <QuEST.h>
Data Fields | |
int | numQubits |
The number of qubits for which this Hamiltonian is defined. More... | |
int | numSumTerms |
The number of terms in the weighted sum, or the number of Pauli products. More... | |
enum pauliOpType * | pauliCodes |
The Pauli operators acting on each qubit, flattened over every operator. More... | |
qreal * | termCoeffs |
The coefficient of each Pauli product. This is a length numSumTerms array. More... | |
Detailed Description
Field Documentation
◆ numQubits
int PauliHamil::numQubits |
The number of qubits for which this Hamiltonian is defined.
Definition at line 168 of file QuEST.h.
Referenced by applyExponentiatedPauliHamil(), createPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomPauliSum(), TEST_CASE(), toQMatrix(), validateMatchingQuregPauliHamilDims(), and validatePauliHamil().
◆ numSumTerms
int PauliHamil::numSumTerms |
The number of terms in the weighted sum, or the number of Pauli products.
Definition at line 166 of file QuEST.h.
Referenced by applyExponentiatedPauliHamil(), applyPauliHamil(), calcExpecPauliHamil(), createPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomPauliSum(), TEST_CASE(), toQMatrix(), and validatePauliHamil().
◆ pauliCodes
enum pauliOpType* PauliHamil::pauliCodes |
The Pauli operators acting on each qubit, flattened over every operator.
This is a length numSumTerms*numQubits
array
Definition at line 162 of file QuEST.h.
Referenced by applyExponentiatedPauliHamil(), applyPauliHamil(), calcExpecPauliHamil(), createPauliHamil(), createPauliHamilFromFile(), destroyPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomPauliSum(), TEST_CASE(), toQMatrix(), and validatePauliHamil().
◆ termCoeffs
qreal* PauliHamil::termCoeffs |
The coefficient of each Pauli product. This is a length numSumTerms
array.
Definition at line 164 of file QuEST.h.
Referenced by applyExponentiatedPauliHamil(), applyPauliHamil(), calcExpecPauliHamil(), createPauliHamil(), createPauliHamilFromFile(), destroyPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomPauliSum(), TEST_CASE(), and toQMatrix().
The documentation for this struct was generated from the following file: