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.
Referenced by createDiagonalOpFromPauliHamilFile(), createPauliHamil(), initDiagonalOpFromPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomDiagPauliHamil(), setRandomPauliSum(), TEST_CASE(), and toQMatrix().
◆ numSumTerms
int PauliHamil::numSumTerms |
The number of terms in the weighted sum, or the number of Pauli products.
Referenced by applyPauliHamil(), calcExpecPauliHamil(), createPauliHamil(), initDiagonalOpFromPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomDiagPauliHamil(), setRandomPauliSum(), TEST_CASE(), and toQMatrix().
◆ 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.
Referenced by applyPauliHamil(), calcExpecPauliHamil(), createPauliHamil(), createPauliHamilFromFile(), destroyPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomDiagPauliHamil(), setRandomPauliSum(), TEST_CASE(), and toQMatrix().
◆ termCoeffs
qreal* PauliHamil::termCoeffs |
The real coefficient of each Pauli product. This is an array of length PauliHamil.numSumTerms;.
Referenced by applyPauliHamil(), calcExpecPauliHamil(), createPauliHamil(), createPauliHamilFromFile(), destroyPauliHamil(), initPauliHamil(), reportPauliHamil(), setRandomDiagPauliHamil(), setRandomPauliSum(), TEST_CASE(), and toQMatrix().
The documentation for this struct was generated from the following file: