Hi, these are my solutions to the QHack 2021 quantum machine learning hackathon.
Everything is coded in Xanadu's PennyLane quantum programming package.
The original repo with all the hackathon details can be found at /XanaduAI/QHack2021.
Site: QHack.ai
Date: February 2021
Here is a screenshot of my completed hackathon scoreboard entry.
I ranked 51st in terms of cumulative completion time for the problem sets.
The QML_Challenges
folder contains all the problem statements and solutions.
Each problem set is in its own sub-folder with the name <topic>_<score>_template
.
In each problem set, there is a .pdf
problem statement and a .py
solution.
There are also given test input .in
and answers .ans
with can be invoked in terminal via
>> python <problem name>_template.py < 1.in
- PennyLane Language
simple_circuits_20
- 1-qubit Circuitssimple_circuits_30
- 1-qubit Circuitssimple_circuits_50
- 2-qubit Circuits
- Quantum Gradient (of Variational Parameters)
quantum_gradients_100
- Parameter-shift Rulequantum_gradients_200
- Hessian Matrixquantum_gradients_500
- Natural Gradient
- Training/Optimisation (of Variational Circuits)
circuit_training_100
- PennyLane's Optimiserscircuit_training_200
- Maximal Independent Setcircuit_training_500
- Variational Classifier
- Variational Quantum Eigensolver