Commit 005bd367 authored by mgassner's avatar mgassner
Browse files

minor changes

parent 8d978cb8
......@@ -24,7 +24,7 @@ def test_mutual_information():
spin_inversion = None
param = 1.0
if param < -1.0:
hamming_weight = None
hamming_weight = number_spins // 2
else:
hamming_weight = number_spins // 2
model = spin_model(model_name=model_name, number_spins=number_spins, periodic=periodic,
......
......@@ -42,7 +42,7 @@ def test_xxz(number_spins, periodic, param_range):
plt.legend()
plt.xlabel('Delta / J')
plt.ylabel('Bipartite Entanglement Entropy')
plt.title('Model:' + model_name + ' Number spins:' + str(number_spins))#, ' Periodic:' + str(periodic))
plt.title('Model:' + model_name + str(number_spins) + str(periodic))
plt.grid(True)
plt.savefig('output/' + 'entropytest.jpg')
......@@ -57,7 +57,7 @@ def test_area_law(number_spins, periodic, param_range):
sub_dims = [i for i in range(1,number_spins)]
for param in params:
if param < -1.0:
hamming = None
hamming = hamming_weight
else:
hamming = hamming_weight
bipartite_entropies = []
......@@ -98,7 +98,7 @@ def test_area_law(number_spins, periodic, param_range):
plt.legend()
plt.xlabel('x/L')
plt.ylabel('Bipartite Entanglement Entropy')
plt.title('Model:' + model_name + ' Number spins:' + str(number_spins))#, ' Periodic:' + str(periodic))
plt.title('Model:' + model_name + str(number_spins)+ str(periodic))
plt.grid(True)
plt.savefig('output/' + filename + '.jpg')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment