Please use link mentioned below to view the notebook online as intended, instead of using GitHub's viewer.
Link to view the notebook rendered for evaluation :- task_3.ipynb (opens using nbviewer from Jupyter).
Alternatively, use task_3.html
to view the HTML variant or task_3.ipynb
for an interactive session after cloning the repo.
This is a quantum circuit compiler and optimizer which converts any given Cirq circuit made up of the basic gates: I, S, H, X, Y, Z, RX, RY, RZ, CNOT, CZ into a combination of our fundamental gates: RX, RZ, and CZ. It also optimizes to reduce the overhead generated after compilation, for example: --RX(pi/2)-RX(pi/2)--
will be converted to --RX(pi)--
.
Required libraries:
- I used Python 3.8, but Cirq supports >= 3.6
- Cirq, installation instructions can be found here.
This program was created as a result of completing a task (before deadline of 21st September 2020) for Quantum Open Source Foundation's Mentorship Program. Link to that can be found here.