Hacker News new | ask | show | jobs
by Escapado 1100 days ago
About 5 years ago I wrote my master thesis on quantum computing, specifically on the construction of quantum circuits. As these circuits are generally unitary matrices an interesting question is: Given a set of gates that operate on one qbit or two qubits (controlled gates) and a target unitary matrix (e.g. fourier transform or the hamiltonian of a physical system of interest such as an Ising model), can we find an optimal/minimal arrangement of those gates to approximate or exactly match the target matrix.

Back then I modelled the quantum circuit as a set of unitaries (by parametrizing them through their generator), that operate on one or two qubits, set a limit to the amount of steps and the amount of controlled gates and then threw different optimization algorithms at it. I got the best performance using simple dense neural networks. What's cool is that I could generate a training set really quickly since I could just randomly build tensor products of unitary matricies to create billions of unitaries of up to 7 qubits in minimal time and then just see how close I can get given a fixed length for the quantum circuit and a fixed number of control gates.

I really liked this approach and it was fun to work on. However it was ultimately limited as the size of the matrices scales exponentially with the number of qubits.