Recently, I went back to an unfinished problem in my PhD thesis.

For the past four years, my focus has been on software and applications for industry. That work has taught me a great deal about turning an interesting idea into something people can actually use. It has also meant that some of my own research questions have spent a long time on the shelf.

One of those questions had stayed with me. I had spent a lot of time trying to extend a method I worked with during my PhD, and I still wanted to know where it could lead. Coming back to it meant dusting off some familiar tools: the mathematics, the simulation methods, and the habit of following a question before knowing exactly what would come of it.

Codex helped me get started again.

The project, correlated HOPS, builds on the hierarchy of pure states (HOPS) method. It has grown into a paper, Correlations carried and controlled by coupled non-Markovian environments.

Behind it is a question I have always found fascinating: how does a quantum system behave when its surroundings can remember earlier interactions and carry their influence from one place to another?

The memory aspect is what physicists call non-Markovian dynamics. Many useful models assume that an environment forgets an interaction almost immediately. Here, it can retain that influence and feed it back later. My question added a spatial dimension: what happens when the environment can also carry that influence from one part of the system to another?

This has many real-world parallels, for example, electron transport in materials where the vibrations of the surrounding molecules create phonon modes (environment) which can exchange energy with the electrons (system). Not only can these phonon modes remember past interactions with local electrons, but they also typically travel throughout the material, affecting electrons at a different location at a later time. Capturing these processes was my main motivation. Quantum-optics experiments offer controllable settings for exploring aspects of this physics. This paper studies numerical models motivated by those settings.

I had worked on environmental memory before. What I wanted to add was transport through that environment. I had tried to include correlations between the different modes of the environment, but I could never get HOPS to work properly for that case. One of the sticking points was surprisingly small: generating the random fluctuations used in the calculation with the right relationships across both space and time. In the language of the method, these are the correlated coloured noise terms.

I gave Codex my thesis, pointed it towards the relevant sections, and asked it to help me revisit the problem. We worked through how to generate that noise correctly. A key numerical ingredient was a matrix square root: a way of turning independent random samples into fluctuations with the prescribed correlations. Alongside the time evolution that gives the noise its memory, this supplied the missing numerical piece. We could then check the extended equations against small examples and start building from there.

It is surprising how much can sit behind a small blocker. Once there was a way forward, I could start asking the questions that had been waiting behind it. What happens if the environment can carry an excitation further? What changes when different parts lose energy at different rates? Could we use that environment to influence the connections between otherwise separated quantum systems?

The ideas started coming quickly. Each calculation suggested another comparison. Each result gave me a reason to go back to the physics and think a little harder. A problem I had left unfinished was becoming an active research project, with directions I wanted to pursue beyond the original question.

I recognised that feeling. It was the enjoyment of having something to investigate: an explanation to test, an unexpected feature to understand, a next step I was keen to try. I had missed it.

Working with Codex helped me keep that momentum. I could spend more of my attention on what to ask next and how to interpret what we were seeing. The distance between having an idea and getting far enough to judge it felt much smaller. That made me more willing to follow an idea, including the ones that might turn out to go nowhere.

There was plenty of careful work along the way. Equations needed checking, simulations needed independent comparisons, and promising interpretations needed revisiting.

The research behind the story

HOPS simulates a quantum system using an ensemble of random wavefunction evolutions, with additional equations that keep track of the environment's memory. The extension in this project allows different parts of that environment to exchange excitations. Both the random fluctuations and the equations describing the environment's response have to reflect those connections.

The preprint explores this using quantum spins, each coupled to its own optical cavity, with photons able to move between cavities. The simulations show how this shared environment can generate correlations and entanglement between spins that do not interact directly. They also explore how measuring intermediate cavities and using that information to control nearby spins can influence correlations between distant endpoints. The broader question is how an environment's memory and internal dynamics can become tools for controlling a quantum system.

The paper's numerical data and companion Python and Julia packages are available in my correlated-hops repository. The packages include tools for generating correlated coloured noise and functions for evolving quantum systems coupled to communicating environments, with examples that readers can adapt to explore their own models.

That feels particularly satisfying: the noise generation that held me up for so long is now a tool someone else can pick up and use.

Taking that momentum forward

I hope to tell the full story of taking this project from concept through to publication once that journey is complete. There is a separate post to write about the practical details of working iteratively with AI, including the corrections and judgement that process requires. It took sustained iteration and careful checking. It is not as easy as social media would lead you to expect.

For now, I wanted to share what the experience has meant to me personally. It has brought back an enthusiasm for research that I am very glad to have found again.

I also bring four years of industry experience back to these questions. I think more about how a method becomes usable, how someone else could build on it, and what it would take to turn a promising result into a useful tool. Those questions now sit naturally alongside the physics.

That combination is something I want to keep developing in my role as Applications and Product Lead at Commutator Studios. I am excited about following the research, building the software, and finding the applications where the two can make a difference.

An unfinished question gave me a way back in. Clearing one obstacle opened up far more than I expected.