Skip to content

Class TempLat::PauliVectorsAlgebra

ClassList > TempLat > PauliVectorsAlgebra

A class which implements the SU2 algebra at the single element level. More...

  • #include <paulivectorsalgebra.h>

Public Static Functions

Type Name
DEVICE_INLINE_FUNCTION void expmap_inplace (ResArray & res, const AlgArray & alg)
Computes the exponential map for a given SU(2) algebra element.
DEVICE_INLINE_FUNCTION void expmap_inplace (ResArray & res)
Computes the exponential map for a given SU(2) algebra element, working in-place on the result array.
DEVICE_INLINE_FUNCTION void multiply_inplace (Array & res, const Array & cL, const Array & cR)
Multiplies two SU(2) elements.

Detailed Description

Unit test: ctest -R test-paulivectorsalgebra

Public Static Functions Documentation

function expmap_inplace [1/2]

Computes the exponential map for a given SU(2) algebra element.

template<typename ResArray, typename AlgArray>
static inline DEVICE_INLINE_FUNCTION void TempLat::PauliVectorsAlgebra::expmap_inplace (
    ResArray & res,
    const AlgArray & alg
) 

Parameters:

  • res The result array, which is modified in place. Must be an array of size 4.
  • alg The algebra array. Must be an array of size 4.

function expmap_inplace [2/2]

Computes the exponential map for a given SU(2) algebra element, working in-place on the result array.

template<typename ResArray>
static inline DEVICE_INLINE_FUNCTION void TempLat::PauliVectorsAlgebra::expmap_inplace (
    ResArray & res
) 

Parameters:

  • res The result array, which is modified in place. Must be an array of size 4.
  • alg The algebra array. Must be an array of size 4.

function multiply_inplace

Multiplies two SU(2) elements.

template<typename Array>
static inline DEVICE_INLINE_FUNCTION void TempLat::PauliVectorsAlgebra::multiply_inplace (
    Array & res,
    const Array & cL,
    const Array & cR
) 

Parameters:

  • res The result of the multiplication, which is modified in place. Must be an array of size 4.
  • cL The left element of the multiplication. Must be an array of size 4.
  • cR The right element of the multiplication. Must be an array of size 4.


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/algebra/su2algebra/helpers/paulivectorsalgebra.h