Skip to content

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(p…

Notifications You must be signed in to change notification settings

kessler-frost/qc-translate-qosf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quantum Circuit Translator for QOSF Mentorship Program Task 3

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.

About the Project

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.

About

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(p…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published