Introduction

First things first, a quick public service announcement: I cannot, with clear conscience, urge the consumption of 1400+ mg of caffeine. No matter how dire the circumstances. Not even should you find yourselves matching stride with the team from MIT.

Now, with that caution aside, let’s chat!

IQuHACK is an annual quantum hackathon hosted by QRISE and MIT, held on the MIT campus. The event sees the participation of roughly ten companies, each proposing big picture challenges to the attendees. These challenges are kept under wraps until the hacking period commences. Beforehand, participants are asked to rank the challenges they favor most, and from there, they are sorted into teams. This process ensures that each company receives a fair share of teams eager to tackle their unique problem.

I had the privilege of attending this year’s IQuHACK, accompanied by three of my peers from the University of Wisconsin - Madison. Together, we brought a solid foundation in physics and computer science. Upon arriving, we met our fifth teammate, who hailed from Boston University.

The Hackathon

Our team was initially drawn to Quandela’s challenge by the prospect of working with Quantum Physics-Informed Neural Networks (QPINNs). However, when the challenge details were revealed, it became apparent that QPINNs would not be part of our task. Instead, we shifted our focus to Quantum Generative Adversarial Networks (QGANs), utilizing Quandela’s Perceval framework.

This marked new territory for us, as none of us had worked with Perceval before. With our knowledge of Qiskit and guidance from Quandela’s mentors, we quickly adapted to the new challenge. The clarity and accessibility of Perceval’s documentation helped us get off to a smooth start.

The practical phase of our project centered around setting up a Perceval circuit, essential to implementing our QGAN. This involved constructing a bi-ququartite circuit to facilitate the competition between the generator and discriminator, working towards a Nash equilibrium.


The photonic circuit
The photonic circuit we designed.

Our next step was to generate the initial quantum state, which required us to revisit and rethink the traditional concept of a qubit to better fit the quantum photonics context.

Training the QGAN introduced us to a range of challenges and learning opportunities. We experimented with three different optimization approaches: Secant Descent, the Vectorized Approach, and Finite-Difference Gradient Descent. Each method offered unique insights into optimizing quantum adversarial learning, though their effectiveness varied.


The team working hard at a whiteboard
Left to right: Dhanvi, Vinay, Saro, and Kshitij.

The Secant Descent method, a novel approach to optimization, achieved a fidelity of 32%. While innovative, it faced limitations due to randomness in parameter initialization.

The Vectorized Approach (shown below), focusing on optimizing the strategic interplay between the generator and discriminator, showed promise with a fidelity of 45%. However, it was sometimes thwarted by false minima. We thought up some interesting solutions to this issue.


A graph showing the quantum state fidelity
The quantum state fidelity graph for the Vectorized Approach.

Finally, The Finite-Difference Gradient Descent, our initial strategy, faced challenges with potential overfitting, as indicated by a dramatic drop to zero in the loss function during its second iteration, achieving a fidelity of 28%.

Results

As the 24-hour event neared its end, those of us working on Quandela’s Quantum ML challenge gathered in the common space. Around a great table, we exchanged thoughts on what had served us well and what had not. Some competitors shared their insights and methods for implementing the paper, fostering a spirit of collaboration even in the final hours.

With our implementation complete, we returned to the lecture hall where it had all begun. There, we sat and listened as Peter Shor, along with leaders from some of the world’s foremost quantum companies, spoke of their journeys and imparted invaluable wisdom about the quantum frontier.

Then came the moment for us to present. With our work finished, we took to the stage, eager to share our story, results, and the obstacles we had conquered along the way.


A panel with Peter Shor and other quantum leaders
Panel discussion with Peter Shor and other quantum leaders.

Reflection

This exploration of methodologies highlighted the complexity of quantum adversarial learning. While not every experiment met our expectations, the process offered valuable insights into the potential and future direction of QGANs in quantum computing.

Participating in the Quandela Challenge at IQuHACK was more than just a competition; it was an in-depth look at the cutting edge of quantum computing and machine learning. Our work with QGANs and the Perceval framework has opened new paths for research and innovation.

I want to extend a sincere thank you to Pierre, Sam, and the entire Quandela team for their support, and to our peers who helped us along the way.

As we look ahead, the possibilities in quantum computing remain vast and promising.