<jupyter_start><jupyter_text>Exact diagonalization<jupyter_code>from scipy.sparse.linalg import eigsh
eig_vals, eig_vecs = eigsh(op.to_linear_operator().toarray(), k=4)
print("eigenvalues with scipy sparse:", eig_vals)<jupyter_output>eigenvalues with scipy sparse: [1. 1. 1. 1.]
{'fraction_non_alphanumeric': 0.12589928057553956, 'fraction_numerical': 0.017985611510791366, 'mean_word_length': 8.3, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '305625', 'license': 'MIT', 'n_tokens_mistral': 122, 'n_tokens_neox': 115, 'n_words': 21, 'path': 'tutorials/basics/netket-tutorial.ipynb', 'repo_name': 'chrisculver/SUSY_QuantumComputing', 'size': '278'}