P(k)

Muhammad Qurban

Using machine learning to solve physics' complex, recurring problems, faster.

I work on machine learning methods for cosmological inference, with a focus on photometric redshift estimation, calibrated uncertainty under distribution shift, and fast emulators for expensive theory codes. My background is in physics, with several years of software engineering, including professional roles in industry, that shape how I build and test scientific code.

  • Photometric Redshift Estimation
  • Calibrated Uncertainty
  • Fast Theory Emulators
01

Featured: emutrust

Cosmologists infer the properties of the universe by comparing data with predictions from slow physics codes, such as the Boltzmann solver CAMB, hundreds of thousands of times. A neural-network emulator can replace the slow code and make this thousands of times faster, but it is never exactly right, and treating it as exact makes the error bars too small. emutrust is an open-source Python library that builds emulators, measures how wrong they are on runs they have never seen, and carries that error into the inference, so the results stay honest.

55% → 71%
Honest error bars on CAMB

How often the 68% interval contained the true cosmological parameters at survey-level precision (0.2% noise per data point): with the emulator treated as exact, and with emutrust. Honest error bars give about 68%.

~1,500×
Faster than CAMB

0.3–0.5 ms per likelihood evaluation, including the emulator's error, against 0.58 s per CAMB call. A full MCMC run takes about a minute instead of about 31 hours.

0.05%
Mean emulator error

On 300 CAMB matter power spectra the emulator never saw during training, across five ΛCDM parameters.

Bar chart: at 2% noise both methods give about 75% coverage; at 0.2% noise, treating the emulator as exact gives 55% and emutrust gives 71%, against an ideal of 68%.
Figure. Coverage test on CAMB: 30 simulated observations per noise level, with known true parameters. With noisy data the emulator's tiny error does not matter; with precise data, ignoring it makes the error bars overconfident, and emutrust restores them.
quickstartpython
from emutrust import Emulator, GaussianLikelihood, run_model, validate

training = run_model(my_model, space.sample(300), space)
emu = Emulator.fit(training)
report = validate(emu, validation)        # how wrong is the emulator?
like = GaussianLikelihood(emu, data, noise, emulator_error=report)
02

Selected Projects

Four projects spanning classification, surrogate modelling, simulation, and calibrated probabilistic inference. The common thread is building models whose failure modes are understood, not just their headline metrics. Code and further detail for each are being published to GitHub on an ongoing basis.

01
Computer Vision · Astronomy · PyTorch

Galaxy Morphology Classification on Galaxy10 DECaLS

A convolutional network validated on synthetic data, then trained on 11,506 real Galaxy10 DECaLS images, reaching 92.2% validation accuracy on Elliptical vs. Spiral classification.

02
Surrogate Modelling · Cosmology · Deep Learning

A Neural Emulator for CAMB

Emulating matter power spectra from the Boltzmann solver CAMB, returning results in ~0.17 ms against ~3.6 s for a full call, within 0.035% mean fractional error.

03
Statistical Mechanics · Monte Carlo · Simulation

2D Ising Model Simulation

An interactive Monte Carlo simulation of the 2D Ising model, recovering the critical temperature via Metropolis sampling.

04
Photometric Redshifts · LightGBM · Uncertainty Quantification

Photometric Redshift Estimation for LSST + Roman

A LightGBM redshift estimator with per-object p(z) uncertainty, evaluated across four LSST/Roman survey scenarios, meeting the sigma_RMSE accuracy requirement at 10-year depth with outlier rates under 3.1% throughout.

03

Competitive Programming

Solving algorithmic problems correctly under a strict time limit is a reasonably direct proxy for the implementation speed and fluency that computational research also demands.

Top 47
Advent of Code: Global Rank

A daily programming-puzzle contest run every December: 25 puzzles, one per day, with a global leaderboard scored by solving speed. Points are awarded each day to only the fastest solvers worldwide, so a season-long rank of 47th reflects consistency across all 25 days, not a single good one.

Competitor
Meta Hacker Cup 2025

Meta's annual algorithmic programming championship: multiple elimination rounds of increasingly difficult problems, open to competitors worldwide, in the same tradition as Google Code Jam and the ICPC.

#139
Calico (UC Berkeley): Global Rank

A three-hour, team-based algorithmic contest hosted by UC Berkeley. Competed as a three-person team ("PyTigris"); placing 139th worldwide earned a Bronze finish.

04

Teaching

Section Leader, Stanford

2024

Selected as a volunteer Section Leader for a Stanford-run introductory Python course taught through the Karel-the-Robot exercises. Mentored a small group of students week to week, reviewing their code, debugging their exercises with them, and explaining core programming concepts directly rather than just grading the output.

View Proof ↗

Instructor, Web Development Bootcamp

2024

Designed and delivered a coding bootcamp to 100+ underprivileged students, teaching programming from first principles (HTML, CSS, JavaScript) through to applied, portfolio-ready projects. Guided students in turning static designs into fully functional, customized applications using modern development practices, and introduced RESTful APIs, modular design, and automation techniques for building scalable solutions.

View Proof ↗