To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 6e0d7023 authored by mgassner's avatar mgassner
Browse files

minor changes

parent bfab63a1
...@@ -24,7 +24,7 @@ def test_xxz(number_spins, param_range, periodic=False): ...@@ -24,7 +24,7 @@ def test_xxz(number_spins, param_range, periodic=False):
model = spin_model(model_name=model_name, number_spins=number_spins, periodic=periodic, model = spin_model(model_name=model_name, number_spins=number_spins, periodic=periodic,
param=param, hamming_weight=hamming_weight) param=param, hamming_weight=hamming_weight)
model.compute_ew_and_ev() model.compute_ew_and_ev()
print('EIGENSTATE at h/J = ', param, 'is: ', model.eigenstates[:,0]) #print('EIGENSTATE at h/J = ', param, 'is: ', model.eigenstates[:,0])
basis_states = model.basis.states basis_states = model.basis.states
gs = model.eigenstates[:,0] gs = model.eigenstates[:,0]
#print('Number Spins: ', model.basis.number_spins) #print('Number Spins: ', model.basis.number_spins)
...@@ -42,8 +42,8 @@ def test_xxz(number_spins, param_range, periodic=False): ...@@ -42,8 +42,8 @@ def test_xxz(number_spins, param_range, periodic=False):
plt.ylabel('Bipartite Entanglement Entropy') plt.ylabel('Bipartite Entanglement Entropy')
plt.title('Model:' + model_name + str(number_spins) + str(periodic)) plt.title('Model:' + model_name + str(number_spins) + str(periodic))
plt.grid(True) plt.grid(True)
timestr = time.strftime("%Y%m%d-%H%M%S")
plt.savefig('output/' + 'entropytest.jpg') plt.savefig('output/' + timestr + 'entropytest.jpg')
def test_area_law(number_spins, periodic, param_range): def test_area_law(number_spins, periodic, param_range):
......
Markdown is supported
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