{"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/a-conceptual-introduction-to-hamiltonian","title":"A Conceptual Introduction to Hamiltonian Monte Carlo","arxiv_id":"1701.02434","date":"2017-01-10","proceeding":null,"authors":["Michael Betancourt"],"abstract":"Hamiltonian Monte Carlo has proven a remarkable empirical success, but only recently have we begun to develop a rigorous understanding of why it performs so well on difficult problems and how it is best applied in practice. Unfortunately, that understanding is confined within the mathematics of differential geometry which has limited its dissemination, especially to the applied communities for which it is particularly important. In this review I provide a comprehensive conceptual account of these theoretical foundations, focusing on developing a principled intuition behind the method and its optimal implementations rather of any exhaustive rigor. Whether a practitioner or a statistician, the dedicated reader will acquire a solid grasp of how Hamiltonian Monte Carlo works, when it succeeds, and, perhaps most importantly, when it fails.","url_abs":"http://arxiv.org/abs/1701.02434v1","url_pdf":"http://arxiv.org/pdf/1701.02434v1.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":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/ColCarroll/minimc","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/FIshikawa/ExpressiveMonteCarlo","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/JohannesBuchner/PinNUTS","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/Matematija/continuous-vmc","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/MokoSan/FSharpAdvent_2020","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/UnofficialJuliaMirror/DynamicHMC.jl-bbc10e6e-7c05-544b-b16e-64fede858acb","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/UnofficialJuliaMirrorSnapshots/DynamicHMC.jl-bbc10e6e-7c05-544b-b16e-64fede858acb","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/al-jshen/gmestan-examples","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/henrifnk/NoUTurn","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/tpapp/DynamicHMC.jl","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"a-conceptual-introduction-to-hamiltonian","repo_url":"https://github.com/soran-ghaderi/torchebm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"unanswered"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1701.02434","atlas_url":"https://app.syntology.ai/?focus=1701.02434","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1701.02434"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/al-jshen/gmestan-examples","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tpapp/DynamicHMC.jl","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/FIshikawa/ExpressiveMonteCarlo","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/henrifnk/NoUTurn","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ColCarroll/minimc","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Matematija/continuous-vmc","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/soran-ghaderi/torchebm","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/UnofficialJuliaMirrorSnapshots/DynamicHMC.jl-bbc10e6e-7c05-544b-b16e-64fede858acb","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/JohannesBuchner/PinNUTS","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MokoSan/FSharpAdvent_2020","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/UnofficialJuliaMirror/DynamicHMC.jl-bbc10e6e-7c05-544b-b16e-64fede858acb","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"unverified":8},"by_repo_kind":{"listed":{"samples":5,"ran":0,"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":3,"samples":[{"code_sha256_prefix":"4d864798cca4b23b","entry":"build_tree","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"4d864798cca4b23b"}},{"code_sha256_prefix":"27b463750b1dabc7","entry":"canonicalize_kernel_size","repo":"Matematija/continuous-vmc","repo_kind":"listed","path":"cvmc/ansatz.py","file_url":"https://github.com/Matematija/continuous-vmc/blob/HEAD/cvmc/ansatz.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":"27b463750b1dabc7"}},{"code_sha256_prefix":"7a99750281b4b88e","entry":"canonicalize_padding","repo":"Matematija/continuous-vmc","repo_kind":"listed","path":"cvmc/ansatz.py","file_url":"https://github.com/Matematija/continuous-vmc/blob/HEAD/cvmc/ansatz.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":"7a99750281b4b88e"}},{"code_sha256_prefix":"a8be8f07c1151082","entry":"canonicalize_rhs_fun","repo":"Matematija/continuous-vmc","repo_kind":"listed","path":"cvmc/integrate/solver.py","file_url":"https://github.com/Matematija/continuous-vmc/blob/HEAD/cvmc/integrate/solver.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":"a8be8f07c1151082"}},{"code_sha256_prefix":"fd5e7b83c2727f0e","entry":"eval_callback","repo":"Matematija/continuous-vmc","repo_kind":"listed","path":"cvmc/integrate/solver.py","file_url":"https://github.com/Matematija/continuous-vmc/blob/HEAD/cvmc/integrate/solver.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":"fd5e7b83c2727f0e"}},{"code_sha256_prefix":"f11822470adef70d","entry":"make_qgt_norm","repo":"Matematija/continuous-vmc","repo_kind":"listed","path":"cvmc/propagator.py","file_url":"https://github.com/Matematija/continuous-vmc/blob/HEAD/cvmc/propagator.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":"f11822470adef70d"}},{"code_sha256_prefix":"4f8a7d049558a7a8","entry":"pinnuts","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"4f8a7d049558a7a8"}},{"code_sha256_prefix":"86a695959d00fddb","entry":"tree_sample","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"86a695959d00fddb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}