A Pauli Hamiltonian, expressed as a real-weighted sum of pauli products, and which can hence represent any Hermitian operator. More...
#include <QuEST.h>
Data Fields | |
int | numQubits |
The number of qubits informing the Hilbert dimension of the Hamiltonian. 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 real coefficient of each Pauli product. This is an array of length PauliHamil.numSumTerms;. More... | |
Detailed Description
A Pauli Hamiltonian, expressed as a real-weighted sum of pauli products, and which can hence represent any Hermitian operator.
Field Documentation
◆ numQubits
int PauliHamil::numQubits |
The number of qubits informing the Hilbert dimension of the Hamiltonian.
Definition at line 287 of file QuEST.h.
Referenced by agnostic_initDiagonalOpFromPauliHamil(), applyExponentiatedPauliHamil(), createDiagonalOpFromPauliHamilFile(), createPauliHamil(), initDiagonalOpFromPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomDiagPauliHamil(), setRandomPauliSum(), TEST_CASE(), toQMatrix(), validateDiagPauliHamil(), validateDiagPauliHamilFromFile(), validateMatchingQuregPauliHamilDims(), and validatePauliHamil().
◆ numSumTerms
int PauliHamil::numSumTerms |
The number of terms in the weighted sum, or the number of Pauli products.
Definition at line 285 of file QuEST.h.
Referenced by agnostic_initDiagonalOpFromPauliHamil(), applyExponentiatedPauliHamil(), applyPauliHamil(), calcExpecPauliHamil(), createPauliHamil(), initDiagonalOpFromPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomDiagPauliHamil(), setRandomPauliSum(), TEST_CASE(), toQMatrix(), validateDiagPauliHamil(), validateDiagPauliHamilFromFile(), and validatePauliHamil().
◆ pauliCodes
enum pauliOpType* PauliHamil::pauliCodes |
The Pauli operators acting on each qubit, flattened over every operator.
This is a flat array of length PauliHamil.numSumTerms * PauliHamil.numQubits.
Definition at line 281 of file QuEST.h.
Referenced by agnostic_initDiagonalOpFromPauliHamil(), applyExponentiatedPauliHamil(), applyPauliHamil(), calcExpecPauliHamil(), createPauliHamil(), createPauliHamilFromFile(), destroyPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomDiagPauliHamil(), setRandomPauliSum(), TEST_CASE(), toQMatrix(), validateDiagPauliHamil(), validateDiagPauliHamilFromFile(), and validatePauliHamil().
◆ termCoeffs
qreal* PauliHamil::termCoeffs |
The real coefficient of each Pauli product. This is an array of length PauliHamil.numSumTerms;.
Definition at line 283 of file QuEST.h.
Referenced by agnostic_initDiagonalOpFromPauliHamil(), applyExponentiatedPauliHamil(), applyPauliHamil(), calcExpecPauliHamil(), createPauliHamil(), createPauliHamilFromFile(), destroyPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomDiagPauliHamil(), setRandomPauliSum(), TEST_CASE(), and toQMatrix().
The documentation for this struct was generated from the following file: