32 void Wloop(
const multi1d<LatticeColorMatrix>&
u,
33 multi2d<Double>& plane_plaq_11,
34 multi2d<Double>& plane_plaq_12,
35 multi2d<Double>& plane_plaq_13,
36 multi2d<Double>& plane_plaq_14 )
40 plane_plaq_11.resize(
Nd,
Nd);
41 plane_plaq_12.resize(
Nd,
Nd);
42 plane_plaq_13.resize(
Nd,
Nd);
43 plane_plaq_14.resize(
Nd,
Nd);
57 plane_plaq_11[
mu][
nu] =
sum(real(trace(staple_0 * adj(
u[
nu]))));
60 LatticeColorMatrix staple_1 =
u[
mu]*shift(staple_0 ,
FORWARD,
mu) * tmp0 ;
61 plane_plaq_12[
mu][
nu] =
sum(real(trace(staple_1 * adj(
u[
nu]))));
64 LatticeColorMatrix staple_2 =
u[
mu]*shift(staple_1 ,
FORWARD,
mu) * tmp0 ;
65 plane_plaq_13[
mu][
nu] =
sum(real(trace(staple_2 * adj(
u[
nu]))));
68 LatticeColorMatrix staple_3 =
u[
mu]*shift(staple_2 ,
FORWARD,
mu) * tmp0 ;
69 plane_plaq_14[
mu][
nu] =
sum(real(trace(staple_3 * adj(
u[
nu]))));
78 plane_plaq_11[
mu][
nu] /=
Double(Layout::vol()*Nc);
79 plane_plaq_11[
nu][
mu] = plane_plaq_11[
mu][
nu];
81 plane_plaq_12[
mu][
nu] /=
Double(Layout::vol()*Nc);
82 plane_plaq_12[
nu][
mu] = plane_plaq_12[
mu][
nu];
84 plane_plaq_13[
mu][
nu] /=
Double(Layout::vol()*Nc);
85 plane_plaq_13[
nu][
mu] = plane_plaq_13[
mu][
nu];
87 plane_plaq_14[
mu][
nu] /=
Double(Layout::vol()*Nc);
88 plane_plaq_14[
nu][
mu] = plane_plaq_14[
mu][
nu];
123 ans +=
sum(real(trace(staple_0 * adj(staple_1) )));
127 LatticeColorMatrix staple_2 = adj(tmp0)*shift(
u[
nu],
BACKWARD,
mu) *
130 ans +=
sum(real(trace(staple_2 * adj(staple_1) )));
137 ans +=
sum(real(trace(staple_2 * adj(staple_1) )));
138 ans +=
sum(real(trace(staple_0 * adj(staple_1) )));
141 ans /=
Double(Layout::vol()*Nc);
162 int mu1,
int mu2,
int mu3,
168 LatticeColorMatrix tmp0 = shift(
u[mu3],
FORWARD,
mu1) ;
169 LatticeColorMatrix third = shift(tmp0,
FORWARD,
mu2) ;
171 LatticeColorMatrix tmp1 = shift(
u[
mu1],
FORWARD,mu3) ;
172 LatticeColorMatrix fourth = shift(tmp1,
FORWARD,
mu2) ;
174 LatticeColorMatrix fifth = shift(
u[
mu2],
FORWARD,mu3) ;
179 ans /=
Double(Layout::vol()*Nc);
266 void Wloop(
const multi1d<LatticeColorMatrix>&
u,
267 multi2d<Double>& plane_plaq_22,
268 multi2d<Double>& plane_plaq_23)
272 plane_plaq_22.resize(
Nd,
Nd);
273 plane_plaq_23.resize(
Nd,
Nd);
289 LatticeColorMatrix staple_0 =
u[
mu]*tmp1*
tmp2*adj(tmp4) ;
290 LatticeColorMatrix staple_1 =
u[
mu]*shift(staple_0,
FORWARD,
mu)*adj(tmp4) ;
294 plane_plaq_22[
mu][
nu] =
sum(real(trace(staple_1 * adj(
u[
nu] * tmp5) )) );
299 LatticeColorMatrix tmp4_ = shift(tmp4,
FORWARD,
nu) ;
300 staple_0 =
u[
mu] * tmp1*
tmp2* tmp2_ * adj(tmp4_) ;
301 staple_1 =
u[
mu] * shift(staple_0,
FORWARD,
mu) * adj(tmp4_) ;
303 LatticeColorMatrix tmp5_ = shift(tmp5,
FORWARD,
nu) ;
305 plane_plaq_23[
mu][
nu] =
sum(real(trace(staple_1 * adj(
u[
nu] * tmp5 * tmp5_) )) );
314 plane_plaq_22[
mu][
nu] /=
Double(Layout::vol()*Nc);
315 plane_plaq_22[
nu][
mu] = plane_plaq_22[
mu][
nu];
317 plane_plaq_23[
mu][
nu] /=
Double(Layout::vol()*Nc);
318 plane_plaq_23[
nu][
mu] = plane_plaq_23[
mu][
nu];
337 void Wloop(
const multi1d<LatticeColorMatrix>&
u,
346 Wloop(
u,plane_plaq_11,plane_plaq_12,plane_plaq_13,plane_plaq_14);
349 w_11 = s_11 = t_11 =
zero;
350 w_12 = s_12 = t_12 =
zero;
351 w_13 = s_13 = t_13 =
zero;
352 w_14 = s_14 = t_14 =
zero;
422 void Wloop(
const multi1d<LatticeColorMatrix>&
u,
429 Wloop(
u,plane_plaq_11,plane_plaq_12);
432 w_11 = s_11 = t_11 =
zero;
433 w_12 = s_12 = t_12 =
zero;
488 const multi1d<LatticeColorMatrix>&
u)
492 Double w_11, s_11, t_11 ; multi2d<Double> plane_plaq_11;
493 Double w_12, s_12, t_12 ; multi2d<Double> plane_plaq_12;
494 Double w_13, s_13, t_13 ; multi2d<Double> plane_plaq_13;
495 Double w_14, s_14, t_14 ; multi2d<Double> plane_plaq_14;
497 Double w_22, s_22, t_22 ; multi2d<Double> plane_plaq_22;
498 Double w_23, s_23, t_23 ; multi2d<Double> plane_plaq_23;
504 w_11, s_11, t_11, plane_plaq_11,
505 w_12, s_12, t_12, plane_plaq_12,
506 w_13, s_13, t_13, plane_plaq_13,
507 w_14, s_14, t_14, plane_plaq_14);
511 double time_in_sec_a = swatch_a.getTimeInSeconds();
512 QDPIO::cout <<
"Time for 11,12,13, and 14 Wilson loops " << time_in_sec_a <<
" sec\n" ;
519 w_22, s_22, t_22, plane_plaq_22,
520 w_23, s_23, t_23, plane_plaq_23) ;
523 double time_in_sec_b = swatch_b.getTimeInSeconds();
524 QDPIO::cout <<
"Time for 22 and 23 Wilson loops " << time_in_sec_b <<
" sec\n" ;
531 double time_in_sec_c = swatch_c.getTimeInSeconds();
532 QDPIO::cout <<
"Time for bent 1x2 Wilson loops " << time_in_sec_c <<
" sec\n" ;
540 double time_in_sec_d = swatch_d.getTimeInSeconds();
541 QDPIO::cout <<
"Time for really bent Wilson loops " << time_in_sec_d <<
" sec\n" ;
545 push(xml, xml_group);
550 push(xml,
"Wilson_loop_11");
551 write(xml,
"all_av", w_11);
552 write(xml,
"space_av", s_11);
553 write(xml,
"time_av", t_11);
555 write(xml,
"plane_01_plaq", plane_plaq_11[0][1]);
556 write(xml,
"plane_02_plaq", plane_plaq_11[0][2]);
557 write(xml,
"plane_12_plaq", plane_plaq_11[1][2]);
558 write(xml,
"plane_03_plaq", plane_plaq_11[0][3]);
559 write(xml,
"plane_13_plaq", plane_plaq_11[1][3]);
560 write(xml,
"plane_23_plaq", plane_plaq_11[2][3]);
566 push(xml,
"Wilson_loop_12");
567 write(xml,
"all_av", w_12);
568 write(xml,
"space_av", s_12);
569 write(xml,
"time_av", t_12);
571 write(xml,
"plane_01_plaq", plane_plaq_12[0][1]);
572 write(xml,
"plane_02_plaq", plane_plaq_12[0][2]);
573 write(xml,
"plane_12_plaq", plane_plaq_12[1][2]);
574 write(xml,
"plane_03_plaq", plane_plaq_12[0][3]);
575 write(xml,
"plane_13_plaq", plane_plaq_12[1][3]);
576 write(xml,
"plane_23_plaq", plane_plaq_12[2][3]);
582 push(xml,
"Wilson_loop_13");
583 write(xml,
"all_av", w_13);
584 write(xml,
"space_av", s_13);
585 write(xml,
"time_av", t_13);
587 write(xml,
"plane_01_plaq", plane_plaq_13[0][1]);
588 write(xml,
"plane_02_plaq", plane_plaq_13[0][2]);
589 write(xml,
"plane_12_plaq", plane_plaq_13[1][2]);
590 write(xml,
"plane_03_plaq", plane_plaq_13[0][3]);
591 write(xml,
"plane_13_plaq", plane_plaq_13[1][3]);
592 write(xml,
"plane_23_plaq", plane_plaq_13[2][3]);
598 push(xml,
"Wilson_loop_14");
599 write(xml,
"all_av", w_14);
600 write(xml,
"space_av", s_14);
601 write(xml,
"time_av", t_14);
603 write(xml,
"plane_01_plaq", plane_plaq_14[0][1]);
604 write(xml,
"plane_02_plaq", plane_plaq_14[0][2]);
605 write(xml,
"plane_12_plaq", plane_plaq_14[1][2]);
606 write(xml,
"plane_03_plaq", plane_plaq_14[0][3]);
607 write(xml,
"plane_13_plaq", plane_plaq_14[1][3]);
608 write(xml,
"plane_23_plaq", plane_plaq_14[2][3]);
614 push(xml,
"Wilson_loop_22");
615 write(xml,
"all_av", w_22);
616 write(xml,
"space_av", s_22);
617 write(xml,
"time_av", t_22);
619 write(xml,
"plane_01_plaq", plane_plaq_22[0][1]);
620 write(xml,
"plane_02_plaq", plane_plaq_22[0][2]);
621 write(xml,
"plane_12_plaq", plane_plaq_22[1][2]);
622 write(xml,
"plane_03_plaq", plane_plaq_22[0][3]);
623 write(xml,
"plane_13_plaq", plane_plaq_22[1][3]);
624 write(xml,
"plane_23_plaq", plane_plaq_22[2][3]);
632 push(xml,
"Wilson_loop_23");
633 write(xml,
"all_av", w_23);
634 write(xml,
"space_av", s_23);
635 write(xml,
"time_av", t_23);
637 write(xml,
"plane_01_plaq", plane_plaq_23[0][1]);
638 write(xml,
"plane_02_plaq", plane_plaq_23[0][2]);
639 write(xml,
"plane_12_plaq", plane_plaq_23[1][2]);
640 write(xml,
"plane_03_plaq", plane_plaq_23[0][3]);
641 write(xml,
"plane_13_plaq", plane_plaq_23[1][3]);
642 write(xml,
"plane_23_plaq", plane_plaq_23[2][3]);
648 push(xml,
"Wilson_loop_bent_rectangle");
649 write(xml,
"all_av", w_bent1x2);
655 push(xml,
"Wilson_loop_really_bent");
656 write(xml,
"all_av", w_really_bent);
Primary include file for CHROMA library code.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void Wloop(const multi1d< LatticeColorMatrix > &u, multi2d< Double > &plane_plaq_11, multi2d< Double > &plane_plaq_12, multi2d< Double > &plane_plaq_13, multi2d< Double > &plane_plaq_14)
Return the value of the 11, 12, 13, 14 Wilson loops.
void Wloop_really_bent(const multi1d< LatticeColorMatrix > &u, int mu1, int mu2, int mu3, Double &ans)
Return the value of the really bent Wilson loops of length 6.
void Wloop_bent(const multi1d< LatticeColorMatrix > &u, int mu, int nu, int eta, Double &ans)
Return the value of the bent 12 Wilson loops.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
FloatingPoint< double > Double
Calculate the global normalized sum of the Polyakov loop.