{"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/caustics-a-python-package-for-accelerated","title":"Caustics: A Python Package for Accelerated Strong Gravitational Lensing Simulations","arxiv_id":"2406.15542","date":"2024-06-21","proceeding":null,"authors":["Connor Stone","Alexandre Adam","Adam Coogan","M. J. Yantovski-Barth","Andreas Filipp","Landung Setiawan","Cordero Core","Ronan Legin","Charles Wilson","Gabriel Missael Barco","Yashar Hezaveh","Laurence Perreault-Levasseur"],"abstract":"Gravitational lensing is the deflection of light rays due to the gravity of intervening masses. This phenomenon is observed in a variety of scales and configurations, involving any non-uniform mass such as planets, stars, galaxies, clusters of galaxies, and even the large scale structure of the universe. Strong lensing occurs when the distortions are significant and multiple images of the background source are observed. The lens objects must align on the sky of order ~1 arcsecond for galaxy-galaxy lensing, or 10's of arcseonds for cluster-galaxy lensing. As the discovery of lens systems has grown to the low thousands, these systems have become pivotal for precision measurements and addressing critical questions in astrophysics. Notably, they facilitate the measurement of the Universe's expansion rate, dark matter, supernovae, quasars, and the first stars among other topics. With future surveys expected to discover hundreds of thousands of lensing systems, the modelling and simulation of such systems must occur at orders of magnitude larger scale then ever before. Here we present `caustics`, a Python package designed to handle the extensive computational demands of modeling such a vast number of lensing systems.","url_abs":"https://arxiv.org/abs/2406.15542v1","url_pdf":"https://arxiv.org/pdf/2406.15542v1.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":"caustics-a-python-package-for-accelerated","repo_url":"https://github.com/Ciela-Institute/caustics","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.15542","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.15542"}},"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/Ciela-Institute/caustics","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":4},"by_repo_kind":{"listed":{"samples":4,"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":0,"samples":[{"code_sha256_prefix":"77250fadfa763b25","entry":"e1e2_to_phi","repo":"Ciela-Institute/caustics","repo_kind":"listed","path":"src/caustics/angle_mixin.py","file_url":"https://github.com/Ciela-Institute/caustics/blob/HEAD/src/caustics/angle_mixin.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"77250fadfa763b25"}},{"code_sha256_prefix":"bef3b5770059f582","entry":"e1e2_to_q","repo":"Ciela-Institute/caustics","repo_kind":"listed","path":"src/caustics/angle_mixin.py","file_url":"https://github.com/Ciela-Institute/caustics/blob/HEAD/src/caustics/angle_mixin.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bef3b5770059f582"}},{"code_sha256_prefix":"a0dc0470674c267e","entry":"e1e2_to_qphi","repo":"Ciela-Institute/caustics","repo_kind":"listed","path":"src/caustics/angle_mixin.py","file_url":"https://github.com/Ciela-Institute/caustics/blob/HEAD/src/caustics/angle_mixin.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a0dc0470674c267e"}},{"code_sha256_prefix":"133646e0f4215df6","entry":"flip_axis_ratio","repo":"Ciela-Institute/caustics","repo_kind":"listed","path":"src/caustics/utils.py","file_url":"https://github.com/Ciela-Institute/caustics/blob/HEAD/src/caustics/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"133646e0f4215df6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}