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