Chi-kwan Chan Used Codex to Simulate Black Hole Behavior
Astrophysicist Chi-kwan Chan used OpenAI's Codex to build complex computer simulations of black holes. The AI assistant sped up the development of code for modeling extreme physics. The simulations help scientists test Einstein's theory of relativity and understand how matter behaves in black holes.
AI-processed from OpenAI Blog; edited by Hamidun News
Astrophysicist Chi-kwan Chan of the University of Arizona used OpenAI's Codex language model to develop new computer simulations of black holes. The approach let him write complex scientific code faster and build powerful tools for studying extreme phenomena in the Universe.
When Conventional Code Falls Short
Modeling black holes is one of the hardest tasks in modern astrophysics. The calculations involve solving massive systems of Einstein's general relativity equations, processing huge volumes of data and optimizing it for supercomputers. Scientists usually write code in Fortran, C++ or Python, combining deep physics knowledge with programming skill, a rare and valuable mix.
Chan and his colleagues have faced the same problem for years: every new algorithm required weeks of debugging and optimization. The code had to be not only physically correct but also as efficient as possible on supercomputers. That meant rewriting the same types of functions again and again, eating up precious research time.
Codex as a Physicist's Intelligent Assistant
Codex is a large language model trained on a huge amount of code from GitHub. Its key feature is that it understands the context of a task not only technically but also physically. When Chan described in a code comment that he needed to solve a specific differential equation for the Kerr metric (the mathematical description of a rotating black hole), Codex generated the corresponding blocks of code, saving hours of manual writing and debugging.
What opened up for Chan:
- Fast prototyping of numerical algorithms from a physical description in natural language
- Generation of optimized code without having to remember every syntax detail and library function
- Faster debugging thanks to Codex's hints when type and logic errors appear
- The ability to focus on physics and science rather than on programming details
What Such Simulations Are For
Computer models of black holes are not just pretty visualizations for popular science. They are critical for fundamental research. With these simulations, scientists can test the predictions of general relativity in the most extreme conditions, where gravity is so strong that it warps the very fabric of time and space.
They are used to develop data-processing methods for observations with the Event Horizon Telescope, a unique instrument that took the first-ever photograph of a black hole, at the center of galaxy M87. They are also used to model black hole collisions and the gravitational waves they release, which ground-based observatories such as LIGO detect.
"Artificial intelligence lets us focus on the fundamental questions of science instead of spending months debugging code."
What This Means for Science
Tools like Codex are becoming an integral part of the modern astrophysicist's toolkit. AI speeds up not only code writing but the whole research cycle, from the initial hypothesis to testing on real data. This may lead to faster progress in fundamental physics, new discoveries about the structure of black holes and tests of theories of gravity that once seemed impossible to confirm experimentally.
- Dec 2, 2026OpenAI Opens Dots Agent to ChatGPT Plus Subscribers With 10,000+ Plugins
- Dec 2, 2026MyLLM moves Claude Code, Grok and GPT to a server: a laptop needs only one token
- Dec 2, 2026T-Decision-1 9B scores 71.6 points and beats a model six times its size
- Dec 2, 2026ETH Zurich's Sensor Behind the Cheek Reads Silent Commands: 91.5% Accuracy at Rest, 47.6% While Walking
Key Questions Answered
When Conventional Code Falls Short?
Modeling black holes is one of the hardest tasks in modern astrophysics. The calculations involve solving massive systems of Einstein's general relativity equations, processing huge volumes of data and optimizing it for supercomputers. Scientists usually write code in Fortran, C++ or Python, combining deep physics knowledge with programming skill, a rare and valuable mix. Chan and his colleagues have faced the same problem for years: every new algorithm required weeks of debugging and optimization.
What are the key details on Codex as a Physicist's Intelligent Assistant?
Codex is a large language model trained on a huge amount of code from GitHub. Its key feature is that it understands the context of a task not only technically but also physically. When Chan described in a code comment that he needed to solve a specific differential equation for the Kerr metric (the mathematical description of a rotating black hole), Codex generated the corresponding blocks of code, saving hours of manual writing and debugging.
What Such Simulations Are For?
Computer models of black holes are not just pretty visualizations for popular science. They are critical for fundamental research. With these simulations, scientists can test the predictions of general relativity in the most extreme conditions, where gravity is so strong that it warps the very fabric of time and space.
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
