About This Page
This is an accurate lens optics simulation; your mouse position (tap position on mobile) determines the focal length and camera distance in the setup. Mathematically, this was the hardest simulation to write out. This was largely because there isn’t an efficient way to do projection transforms for a physical lens without some shortcuts.
Not only does this program derive the characteristics of the lens from the focal length, but it also accounts for spherical aberrations, given the attributes of a non-ideal lens. Then, the most difficult part was efficiently computing the chromatic distortions near the edges of the lens, which was done by referencing a pre-processed hue LUT I’ve simulated in Python.
Project Quick Links
Gary: My Physics Simulation Assistant
Meet Gary, my lab assistant who works the night shift. Gary is a locally hosted, Qwen-based language model that I've trained on my own physics simulations, and his job is to run them for me. If a simulation throws an error at 4 AM, he decides whether to queue another one or wait until I can fix it. He manages the simulation queue and my servers' compute resources, decides what to run next, and reads out the results, so the big parameter sweeps for my research keep going while I sleep or go to class.

Here's the dashboard I use to keep an eye on him. Every figure is a simulation Gary has queued, run, and plotted (these ones are sweeps for the ytterbium MOT), along with the key numbers extracted from the results.
Distributed Compute System
Gary needs something to run all of those simulations on, so I built him a small distributed compute system out of two servers, one with me here in Toronto and one back home in San Francisco, all connected over Tailscale.
Since my two servers are good at different things, Gary also manages the resources across both of them, matching each job to whichever platform suits it best. It's been a great excuse to get much deeper into Linux server management, networking, and keeping things running across a continent when I'm not around to babysit them.
Ultraviolet Fluorescence and Raman Spectroscopy
I am working on the UofT Robotics Space Exploration team to build a suite of optical science tests that run on top of a rover. The goal is a robust, light, and cost-effective package that can detect common chemical signatures of microorganisms using fluorescence excited by 385 nm light.
This year's goal is to also build a Raman spectrometer in this same module, using a high-power 532 nm laser. By measuring the Raman spectrum of organic molecules, we can distinguish between different biosignatures of life in samples collected by the rover!

Here you can see us testing our spectrometer on the fluorescence of riboflavin. We were able to characterize the spectrum of its fluorescence from a sample of dirt, earning us one of the highest scores for optical design in the University Rover Challenge.
Atmospheric Simulation in C++
I wanted to build an atmospheric fluid simulation from the ground up and have it run in real time on my laptop. I made this model more as a proof of concept. I made it easier to use by letting you set starting conditions and update data through a Python subroutine, where nearly all of the calculations are handled in C++ for maximum computation speed. I plan to use it as a testbed engine for whatever atmospheric simulations seem interesting.
This program was inspired by my Thermodynamics class, which has turned into something much closer to a statistics class. When programming it, I started from the basic definition of microcanonical ensembles and then kept working until what you see now. I don’t code in C++ as often as I used to, so this was the perfect opportunity to develop my skills in writing efficient code. You can see below some of the quick test cases I’ve run with it.

Here you can see me running it on a cross section of a 640,000-cell 3D grid, measuring pressure, temperature, chemical potential, and density from a hotspot and a cold front. You can even see a fluctuation in pressure propagate through the simulation in the GIF. Note that this GIF is playing at real-time speed, achieving around 80,000 timesteps per second. (The pixelation in the picture is from the MP4-GIF compression.)

This is a graph generated by the Python subroutine I have running with the code. This was a quick demo of a hot and cold region meeting, showing the difference in the average pressure in both regions over time.
A GitHub repo is available for this project, though it is optimized solely for GNU g++ to make sure the graphics run smoothly on a separate thread.
Fourier Analysis of Stock Options Algorithm
Some of my previous research was in quantitative finance. This started as an endeavor to learn more about the stock & options markets, and quickly developed into a larger project with advice from both academics at UofT and industry experts.
The algorithm paired gradient optimization with Fourier signal analysis to predict volatility windows in short- to medium-term options contracts (7 - 50 days). It was a great crash course in time series analysis, and a lot of those signal processing skills have carried over into my physics work.

Here you can see the program estimating the highest-volatility window for one of the contracts it analyzed.
Quantum Computing Grover's Algorithm
--In the works--
This is a project I’ve been working on independently, running my code on IBM’s 100+ qubit quantum computers. Its goal is to implement Grover’s algorithm, which can search unstructured databases quadratically faster than any classical computer. This could be game-changing for applications like machine learning and high-performance computational modelling/simulation.
This project is still in the works, but I plan to update this page with my progress. It has been a fun experiment of applying my knowledge of quantum mechanics to practical work with the openly available IBM quantum processors.

Here you can see the circuit diagram for a basic implementation of Grover’s algorithm, which I am currently working on expanding to take full advantage of the new 100+ qubit quantum processors.
General Machine Learning Engine
My biggest venture into machine learning! All the backpropagation logic is handled in Python, with the matrix transforms running in a C file for optimized compute time. This was a big step for my experience in subroutines. It is a pretty basic program, but it gets at the core math and logic behind machine learning.

Here, you can see it working to find stable configurations of the three-body problem. If you would like to see a smaller version of it in action, check out my research page!
Cosmic Ray Detection
At the age of 13, I built a cloud chamber for detecting cosmic ray traces. I entered the Bay Area Randall Museum Science Fair, finishing fourth overall. I made a stacked thermoelectric heat pump system to cool a small area to −54 °C. I did all of the CAD, electrical soldering, and electrical system/power design myself. I later refined it, adding a variable electromagnet to alter trace paths.

Here you can see me testing the prototype on a test bench, which I made out of Legos for its cheap and quick customizability. The full build has since been donated to the Wente Scout Reservation to educate kids about radiation.
In The Works!
Live Atmospheric Model and Weather Simulations
If you really enjoyed my atmospheric simulation engine (see above), you’ll love this. I’ve been working on creating live weather simulations and predictions. It’s a big project, but I am using my simulation engine with data from Open-Meteo and RAP. Stay tuned because I’ll be giving updates on this soon!
Shor's Algorithm with Qiskit
This project has been more for my own learning purposes and is something that I've found genuine interest in. I set out with a goal to write my own implementation of Shor's algorithm using Qiskit by deriving it myself analytically (with a lot of help of course).
I’ve always been very interested in cybersecurity. Because of this, I’ve been trying to use this, along with Kali tools, to break (MY OWN) simple custom RSA encryption I have written on a Raspberry Pi. It’s been quite finicky (I didn’t quite realize how much I’d have to learn about Hamming error correction), but it’s been fun to actually physically apply some of my quantum computing code.
Training my own Large Language Model
This project is still a while away, but I am working to develop my current adaptive machine learning model into a tokenized LLM. Baby steps for now, but I will be posting updates here!