Browse Source

Add gnuplot script.

master
Andrius Štikonas 4 years ago
parent
commit
49674dbde8
2 changed files with 13 additions and 5 deletions
  1. 7
    0
      plot.gnuplot
  2. 6
    5
      scrambling.cpp

+ 7
- 0
plot.gnuplot View File

@@ -0,0 +1,7 @@
1
+#!/usr/bin/env gnuplot
2
+set terminal pdf enhanced
3
+
4
+set output "mutualinformation.pdf"
5
+set xlabel "t"
6
+set ylabel "Mutual information"
7
+plot "mutualinformation" using 1:2 title "" with lines lw 3, 0 title ""

+ 6
- 5
scrambling.cpp View File

@@ -31,16 +31,16 @@ int main()
31 31
 	double tPlus = 0;  // time on the left boundary
32 32
 	double tMinus = 0; // time on the right boundary
33 33
 	alpha = 0.4; // encodes the conformal dimention of local operator h_Psi
34
-	double y = 3; // endpoint of interval A
35
-	double L = 15; // length of interval A
34
+	double y = 1; // endpoint of interval A
35
+	double L = 5; // length of interval A
36 36
 	double epsilon = 0.01; // smearing parameter
37 37
 	beta = 10; // inverse temperature
38
-// 	double tOmega = /*5.4418*/; // thermal state is perturbed by operator inserted at time -tOmega
38
+	double tOmega = 4; // thermal state is perturbed by operator inserted at time -tOmega
39 39
 	double c = 600; // central charge. Must be large in our approximation
40 40
 	// End of parameters
41 41
 	for(unsigned int i = 0; i < 1000; ++i)
42 42
 	{
43
-		double tOmega = i*2*L/1000;
43
+		tOmega = i*2*L/1000;
44 44
 
45 45
 		// Operator insertion points: Left boundary
46 46
 		std::complex<double> x1 (0, -epsilon), x4 (0, epsilon), x1bar, x4bar;
@@ -79,7 +79,8 @@ int main()
79 79
 		double S_thermal = 2*c/3 * log(sinh(M_PI*L/beta)/cosh(M_PI/beta*(tMinus-tPlus)));
80 80
 		double I = S_A + S_B - S_union + S_thermal;
81 81
 		std::cout << tOmega << "\t" << I << std::endl;
82
-}
82
+	}
83
+
83 84
 	return 0;
84 85
 }
85 86
 

Loading…
Cancel
Save