Skip to content

Commit

Permalink
Update parity ld memory sweep plot
Browse files Browse the repository at this point in the history
  • Loading branch information
camall3n committed Aug 7, 2024
1 parent 9d6fcb3 commit 8d5589e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/knife_edge/test_parity_ld_with_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ def plot_loghist(x, bins):
plt.hist(x, bins=logbins)
plt.xscale('log')

#%%
plt.subplots(figsize=(7,2.5))
plot_loghist(lds, 100)
plt.title('Parity Check with Random Memory')
plt.xlabel(r'$\lambda$-discrepancy ($\Lambda$)')
plt.ylabel('Number of memory functions')
plt.tight_layout()
plt.savefig('parity-check-memory.png')
plt.show()

0 comments on commit 8d5589e

Please sign in to comment.