{"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/arxiv-2602-16897","title":"Machine Learning Hamiltonians are Accurate Energy-Force Predictors","arxiv_id":"2602.16897","date":"2026-02-18","proceeding":"ICML","authors":["Seongsu Kim","Chanhui Lee","Yoonho Kim","Seongjun Yun","Honghui Kim","Nayoung Kim","Changyoung Park","Sehui Han","Sungbin Lim","Sungsoo Ahn"],"abstract":"Recently, machine learning Hamiltonian (MLH) models have gained traction as fast approximations of electronic structures such as orbitals and electron densities, while also enabling direct evaluation of energies and forces from their predictions. However, despite their physical grounding, existing Hamiltonian models are evaluated mainly by reconstruction metrics, leaving it unclear how well they perform as energy-force predictors. We address this gap with a benchmark that computes energies and forces directly from predicted Hamiltonians. Within this framework, we propose QHFlow2, a state-of-the-art Hamiltonian model with an SO(2)-equivariant backbone and a two-stage edge update. QHFlow2 achieves $40\\%$ lower Hamiltonian error than the previous best model with fewer parameters. Under direct evaluation on MD17/rMD17, it is the first Hamiltonian model to reach NequIP-level force accuracy while achieving up to $20\\times$ lower energy MAE. On QH9, QHFlow2 reduces energy error by up to $20\\times$ compared to MACE. Finally, we demonstrate that QHFlow2 exhibits consistent scaling behavior with respect to model capacity and data, and that improvements in Hamiltonian accuracy effectively translate into more accurate energy and force computations.","url_abs":"https://arxiv.org/abs/2602.16897","url_pdf":"https://arxiv.org/pdf/2602.16897","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2602.16897","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.16897"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/seongsukim-ml/QHFlow2","reach":null}],"summary":{"ran_violates":1,"unverified":11},"by_repo_kind":{"found_in_text":{"samples":12,"ran":1,"repositories":1}},"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":12,"samples":[{"code_sha256_prefix":"b0aeca26969b9a56","entry":"prod","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/utils.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/utils.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b0aeca26969b9a56"}},{"code_sha256_prefix":"40b1dae5750d6f87","entry":"atom_data_to_xyz","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/draw_util.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/draw_util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"40b1dae5750d6f87"}},{"code_sha256_prefix":"6fbcf55d371162d5","entry":"build_convention","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/orbital_conventions.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/orbital_conventions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"6fbcf55d371162d5"}},{"code_sha256_prefix":"b788c2fc3502d944","entry":"cal_orbital_and_energies","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/metric.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/metric.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b788c2fc3502d944"}},{"code_sha256_prefix":"ad2cce76da6aeb2f","entry":"cal_orbital_and_energies_variable_size","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/metric.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/metric.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"ad2cce76da6aeb2f"}},{"code_sha256_prefix":"6443333883b21b99","entry":"cal_orbital_and_energies_variable_size_grouped","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/metric.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/metric.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"6443333883b21b99"}},{"code_sha256_prefix":"267bb735f7835697","entry":"create_custom_convention","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/orbital_conventions.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/orbital_conventions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"267bb735f7835697"}},{"code_sha256_prefix":"b8f0078f497676b6","entry":"create_qh9_data_loaders","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/qh9_utils.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/qh9_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b8f0078f497676b6"}},{"code_sha256_prefix":"2a75dfd91b97d61a","entry":"detect_orbitals_from_pyscf","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/orbital_conventions.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/orbital_conventions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"2a75dfd91b97d61a"}},{"code_sha256_prefix":"3578032b17ad4c45","entry":"get_dataset_path","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/data_utils.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/data_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"3578032b17ad4c45"}},{"code_sha256_prefix":"037d3ef8dc427550","entry":"matrix_to_euler_angles","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/utils.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"037d3ef8dc427550"}},{"code_sha256_prefix":"5d98f20e768fc8ae","entry":"matshow","repo":"seongsukim-ml/QHFlow2","repo_kind":"found_in_text","path":"src/common/draw_util.py","file_url":"https://github.com/seongsukim-ml/QHFlow2/blob/HEAD/src/common/draw_util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"5d98f20e768fc8ae"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"physics.comp-ph","source":"arxiv_api"},"syntology_extracted_results":null}