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 ba5efdef authored by mgassner's avatar mgassner
Browse files

minor changes

parent 6e0d7023
......@@ -48,7 +48,7 @@ def MI_vs_Entropy(model_name, number_spins, param_range):
model_name = model_name
number_spins = number_spins
periodic = True
periodic = False
params = np.linspace(param_range[0], param_range[1], int(param_range[2]))
sub_dim = 4
......@@ -80,7 +80,7 @@ def MI_vs_Entropy(model_name, number_spins, param_range):
'Periodic': periodic,
'Hamming_weight': hamming_weight,
'Sub_dim': sub_dim,
'Delta or h over J': params,
'Delta or h over J': params.tolist(),
'Entropies half chain': Entropies,
'Entropies 4 spin': Entropies4,
'Mutual Informations': MIs
......
......@@ -30,7 +30,7 @@ def test_xxz(number_spins, param_range, periodic=False):
#print('Number Spins: ', model.basis.number_spins)
#print('States', model.basis.states)
sub_dim = number_spins // 2
first_trace_spin = number_spins // 4
first_trace_spin = None #number_spins // 4
rhos = reduced_dm(sub_dim, number_spins, hamming_weight, gs, basis_states, first_trace_spin=first_trace_spin)
entropy = compute_entropy(rhos)
entropies.append(entropy)
......
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