PetscErrorCode QuantumNumbers::GlobalIdxToQN ( const PetscInt &  GlobIdx,
PetscReal &  QNValue 
) const

Maps the global index of a basis state to its quantum number.

Exceptions
PETSC_ERR_ARG_WRONGSTATEObject not initialized. Call Initialize() first.
PETSC_ERR_ARG_OUTOFRANGEGiven GlobIdx is out of bounds [0, num_states).
Parameters
GlobIdxGlobal index
QNValueValue of the quantum number

Definition at line 158 of file QuantumNumbers.cpp.

Referenced by OpBlockToGlobalRangeStart().

This site was generated by Sphinx using Doxygen with a customized theme from doxygen-bootstrapped.