CHROMA
tdiractodr.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Basis rotation matrix from Dirac to Degrand-Rossi (and reverse)
3  */
4 
5 #include "util/ferm/tdiractodr.h"
6 
7 namespace Chroma
8 {
9 
10  //! The Dirac to Degrand-Rossi spin transformation matrix
11  /*!
12  * \ingroup ferm
13  *
14  * Return the similarity transformation matrix from
15  * Euclidean Dirac to Euclidean Degrand-Rossi basis
16  *
17  * \returns The U in Gamma_{Degrand-Rossi} = U Gamma_Dirac U^dag
18  */
19 
20  SpinMatrixD TDiracToDRMat()
21  {
22  /*
23  * The magic basis transf is found from
24  *
25  * NOTE: DR = Degrand-Rossi - the spin basis of QDP
26  * NOTE: TDiract = "twisted" Dirac, in which sign of spatial cpts reversed
27  * psi_DR = U psi_TDirac
28  * psibar_DR Gamma_DR psi_DR = psibar_Dirac Gamma_TDirac psi_Dirac
29  *
30  * implies
31  * Gamma_DR = U Gamma_TDirac U^dag
32  *
33  * and the magic formula is
34  *
35  * U = (1/sqrt(2)) | i*sigma_2 i*sigma_2 |
36  * | i*sigma_2 -i*sigma_2 |
37  *
38  * = (1/sqrt(2)) | 0 1 0 1 |
39  * | -1 0 -1 0 |
40  * | 0 1 0 -1 |
41  * | -1 0 1 0 |
42  *
43  * U^dag = -U = U^transpose
44  */
45  /*
46  * NOTE: I do not see some really short combination of
47  * QDP Gamma matrices that can make this beasty,
48  * so I'll just hardwire it...
49  */
50  SpinMatrixD U = zero;
51  RealD foo = RealD(1) / sqrt(RealD(2));
52  ComplexD one = cmplx( foo,RealD(0));
53  ComplexD mone = cmplx(-foo,RealD(0));
54 
55  pokeSpin(U, one, 0, 1);
56  pokeSpin(U, one, 0, 3);
57  pokeSpin(U, mone, 1, 0);
58  pokeSpin(U, mone, 1, 2);
59  pokeSpin(U, one, 2, 1);
60  pokeSpin(U, mone, 2, 3);
61  pokeSpin(U, mone, 3, 0);
62  pokeSpin(U, one, 3, 2);
63 
64  return U;
65  }
66 
67 } // end namespace Chroma
SpinMatrixD TDiracToDRMat()
The Dirac to Degrand-Rossi spin transformation matrix.
Definition: tdiractodr.cc:20
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Double one
Definition: invbicg.cc:105
Double zero
Definition: invbicg.cc:106
multi1d< LatticeColorMatrix > U
Basis rotation matrix from Dirac to Degrand-Rossi (and reverse)