{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/predicting-many-properties-of-a-quantum","title":"Predicting Many Properties of a Quantum System from Very Few Measurements","arxiv_id":"2002.08953","date":"2020-02-18","proceeding":null,"authors":["Hsin-Yuan Huang","Richard Kueng","John Preskill"],"abstract":"Predicting properties of complex, large-scale quantum systems is essential for developing quantum technologies. We present an efficient method for constructing an approximate classical description of a quantum state using very few measurements of the state. This description, called a classical shadow, can be used to predict many different properties: order $\\log M$ measurements suffice to accurately predict $M$ different functions of the state with high success probability. The number of measurements is independent of the system size, and saturates information-theoretic lower bounds. Moreover, target properties to predict can be selected after the measurements are completed. We support our theoretical findings with extensive numerical experiments. We apply classical shadows to predict quantum fidelities, entanglement entropies, two-point correlation functions, expectation values of local observables, and the energy variance of many-body local Hamiltonians. The numerical results highlight the advantages of classical shadows relative to previously known methods.","url_abs":"https://arxiv.org/abs/2002.08953v2","url_pdf":"https://arxiv.org/pdf/2002.08953v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"predicting-many-properties-of-a-quantum","repo_url":"https://github.com/momohuang/predicting-quantum-properties","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"unanswered"}},{"paper_slug":"predicting-many-properties-of-a-quantum","repo_url":"https://github.com/hsinyuan-huang/predicting-quantum-properties","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"predicting-many-properties-of-a-quantum","repo_url":"https://github.com/zhao-andrew/fermionic-classical-shadows","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"predicting-many-properties-of-a-quantum","repo_url":"https://github.com/zhao-andrew/symmetry-adjusted-classical-shadows","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2002.08953","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2002.08953"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/momohuang/predicting-quantum-properties","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hsinyuan-huang/predicting-quantum-properties","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zhao-andrew/symmetry-adjusted-classical-shadows","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zhao-andrew/fermionic-classical-shadows","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_fixture":1,"ran_honours":2,"ran_draft_wrong":2,"unverified":18},"by_repo_kind":{"listed":{"samples":23,"ran":5,"repositories":3}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":1,"samples":[{"code_sha256_prefix":"fbfd8eb97eaa30d5","entry":"bit_string_subsystem_parity_sign","repo":"zhao-andrew/symmetry-adjusted-classical-shadows","repo_kind":"listed","path":"pauli_shadows/prediction/pauli_shadows_prediction.py","file_url":"https://github.com/zhao-andrew/symmetry-adjusted-classical-shadows/blob/HEAD/pauli_shadows/prediction/pauli_shadows_prediction.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fbfd8eb97eaa30d5"}},{"code_sha256_prefix":"875247b4a84c29f2","entry":"compute_expectation_values_from_majorana_observables","repo":"zhao-andrew/symmetry-adjusted-classical-shadows","repo_kind":"listed","path":"fermion_shadows/prediction/fermion_shadows_prediction.py","file_url":"https://github.com/zhao-andrew/symmetry-adjusted-classical-shadows/blob/HEAD/fermion_shadows/prediction/fermion_shadows_prediction.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"875247b4a84c29f2"}},{"code_sha256_prefix":"37d36d975506d90e","entry":"estimate_exp","repo":"hsinyuan-huang/predicting-quantum-properties","repo_kind":"listed","path":"prediction_shadow.py","file_url":"https://github.com/hsinyuan-huang/predicting-quantum-properties/blob/HEAD/prediction_shadow.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"37d36d975506d90e"}},{"code_sha256_prefix":"b46cead01e4c3eeb","entry":"majorana_shadow_estimates_full_system","repo":"zhao-andrew/symmetry-adjusted-classical-shadows","repo_kind":"listed","path":"fermion_shadows/prediction/fermion_shadows_prediction.py","file_url":"https://github.com/zhao-andrew/symmetry-adjusted-classical-shadows/blob/HEAD/fermion_shadows/prediction/fermion_shadows_prediction.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b46cead01e4c3eeb"}},{"code_sha256_prefix":"e2d533e3125ba7e3","entry":"majorana_shadow_estimates_spin_adapted","repo":"zhao-andrew/symmetry-adjusted-classical-shadows","repo_kind":"listed","path":"fermion_shadows/prediction/fermion_shadows_prediction.py","file_url":"https://github.com/zhao-andrew/symmetry-adjusted-classical-shadows/blob/HEAD/fermion_shadows/prediction/fermion_shadows_prediction.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e2d533e3125ba7e3"}},{"code_sha256_prefix":"292868af1e2105b8","entry":"NoiseEstFermi","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/prediction/fermion_shadows_calibration.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/prediction/fermion_shadows_calibration.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"292868af1e2105b8"}},{"code_sha256_prefix":"d9e32bda86c20cda","entry":"NoiseEstPauli","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"pauli_shadows/prediction/pauli_shadows_calibration.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/pauli_shadows/prediction/pauli_shadows_calibration.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d9e32bda86c20cda"}},{"code_sha256_prefix":"ebc2dc6279f0e463","entry":"NoiseEstPauliSym","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"pauli_shadows/prediction/pauli_shadows_calibration.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/pauli_shadows/prediction/pauli_shadows_calibration.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ebc2dc6279f0e463"}},{"code_sha256_prefix":"4d2f0aeac3084935","entry":"RShadow","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"pauli_shadows/prediction/pauli_shadows_calibration.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/pauli_shadows/prediction/pauli_shadows_calibration.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4d2f0aeac3084935"}},{"code_sha256_prefix":"0526dcc17656f154","entry":"RShadowFermi","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/prediction/fermion_shadows_calibration.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/prediction/fermion_shadows_calibration.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0526dcc17656f154"}},{"code_sha256_prefix":"3e1830fa78e9ceea","entry":"block_qr_decomposition","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/simulation/optimal_matchgate_circuit.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/simulation/optimal_matchgate_circuit.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3e1830fa78e9ceea"}},{"code_sha256_prefix":"298acd2d35ecc125","entry":"fock_cov_matrix","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/simulation/free_fermion_simulator.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/simulation/free_fermion_simulator.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"298acd2d35ecc125"}},{"code_sha256_prefix":"58c775cc3414d051","entry":"gaussian_cov_matrix","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/simulation/free_fermion_simulator.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/simulation/free_fermion_simulator.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"58c775cc3414d051"}},{"code_sha256_prefix":"01a627bc3d11afaa","entry":"interpret_pauli_string","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"pauli_shadows/qubit_rdm_tools.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/pauli_shadows/qubit_rdm_tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"01a627bc3d11afaa"}},{"code_sha256_prefix":"b1cbb197f85c6c07","entry":"interpret_pauli_term","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"pauli_shadows/qubit_rdm_tools.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/pauli_shadows/qubit_rdm_tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b1cbb197f85c6c07"}},{"code_sha256_prefix":"03ad936fd761f65d","entry":"one_body_majorana_expectations","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/simulation/free_fermion_simulator.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/simulation/free_fermion_simulator.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"03ad936fd761f65d"}},{"code_sha256_prefix":"382683fc57504f5c","entry":"particle_number_conserved_quantity_for_majoranas","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/prediction/fermion_shadows_error_mitigation.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/prediction/fermion_shadows_error_mitigation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"382683fc57504f5c"}},{"code_sha256_prefix":"6b32014df27a5549","entry":"pauli_string_subsystem_info","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"pauli_shadows/qubit_rdm_tools.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/pauli_shadows/qubit_rdm_tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6b32014df27a5549"}},{"code_sha256_prefix":"7a5754c984b2b9e6","entry":"permutation_parity","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/simulation/fermion_shadows_cirq_simulation.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/simulation/fermion_shadows_cirq_simulation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7a5754c984b2b9e6"}},{"code_sha256_prefix":"ee76420ee7343327","entry":"rdm_majorana_ops","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/fermion_rdm_tools.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/fermion_rdm_tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ee76420ee7343327"}},{"code_sha256_prefix":"3f84c2de753d2385","entry":"rdm_shadow_estimates","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/simulation/sample_gaussian_state_shadows.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/simulation/sample_gaussian_state_shadows.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3f84c2de753d2385"}},{"code_sha256_prefix":"d869fa699f2aeb62","entry":"rdm_shadow_estimates_spin_adapted","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/simulation/sample_gaussian_state_shadows.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/simulation/sample_gaussian_state_shadows.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d869fa699f2aeb62"}},{"code_sha256_prefix":"5bc4b9104c4fc31f","entry":"real_givens_matrix","repo":"zhao-andrew/fermionic-classical-shadows","repo_kind":"listed","path":"fermion_shadows/simulation/optimal_matchgate_circuit.py","file_url":"https://github.com/zhao-andrew/fermionic-classical-shadows/blob/HEAD/fermion_shadows/simulation/optimal_matchgate_circuit.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5bc4b9104c4fc31f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}