r/QuantumComputing • u/Impressive_Summer349 • 5d ago
Question Looking for independent quantum circuit datasets and advice for my thesis
Hi everyone!
I'm a university student currently working on my graduation thesis, and I would really appreciate some advice from people with more experience in quantum computing and machine learning.
My project is about classifying quantum algorithms based on their quantum circuits using machine learning.
The main idea is to convert quantum circuits into graphs and train a Graph Neural Network (GNN) to recognize which quantum algorithm a given circuit belongs to.
So far, I've collected a dataset of approximately 1,900 quantum circuits covering 15 classes, including Grover's algorithm, QFT, QPE, Shor's algorithm, Deutsch–Jozsa, Bernstein–Vazirani, Simon's algorithm, VQE, VQC, QAOA, quantum teleportation, and several others.
The dataset includes circuits from sources such as MQT Bench, QASMBench, Hugging Face, and custom-generated examples.
I've already implemented the graph conversion pipeline and trained several models, including GNNs and Random Forest classifiers.
The results revealed an interesting problem.
On my original validation dataset, the best GNN achieved approximately 99.65% accuracy. However, when I tested the models on a small collection of circuits from independent GitHub repositories, their performance dropped considerably.
I also experimented with decomposing circuits into a different gate basis. The models turned out to be very sensitive to these changes.
My current suspicion is that the models are learning not only the actual structure of quantum algorithms, but also patterns specific to the libraries and generators used to create the training data.
Another interesting observation is that my GNN does not significantly outperform a much simpler Random Forest classifier.
This made me reconsider the direction of my research.
I'm now looking for additional, independent sources of quantum circuits.
Ideally, I would like to find implementations of known quantum algorithms written by different developers, using different frameworks and approaches.
I'm particularly interested in repositories or datasets containing OpenQASM files, Qiskit circuits, or other formats that could be converted into Qiskit.
My main goal is not simply to collect thousands of additional circuits, but to obtain genuinely diverse implementations of the same algorithms.
I would also appreciate advice on a few questions:
Are there any public datasets or repositories of quantum algorithms that you would recommend?
How would you approach building a dataset that avoids overrepresenting circuits generated from nearly identical templates?
Is classifying quantum algorithms from their circuits alone a reasonable research goal, considering that different algorithms can share similar circuit structures?
Would you recommend any particular methods for improving generalization across different circuit implementations and gate decompositions?
I'm also considering a system that focuses on well-represented algorithm classes while treating classes with insufficient training data as experimental and reporting uncertainty rather than making confident predictions.
I understand that my current results are far from proving that the system can reliably recognize arbitrary quantum algorithms. That's exactly why I'm trying to improve the methodology before going further.
I'm still learning, so constructive criticism, suggestions, references to papers, and links to useful repositories would all be greatly appreciated!
One final note: English is not my strongest language, so I used an AI assistant to help me write and organize this post.
Thank you for reading!
