Training My Very First Variational Quantum Neural Network
August 11, 2024
Earlier this year, I took a fairly advanced quantum computing class with someone who really knows the field. It was low-stakes and exploratory, which I honestly liked a lot. I walked away mostly feeling curious, which was probably the point.
Anyway, onto the fun part.
Below is a notebook where I train my first variational quantum neural network (QNN) on the classic two half-moons dataset. There’s nothing fancy or state-of-the-art going on here. I just wanted to get something working end-to-end and build some intuition for how variational circuits behave when you treat them like a learning model.