Skip to content
/ VZcomp Public

Quantu compiler based on Virtual-Z gates technique

License

Notifications You must be signed in to change notification settings

elrama-/VZcomp

Repository files navigation

VZcomp Build Status Codacy Badge Coverage Status

Quantu compiler based on Virtual-Z gates technique

This software is licensed under the MIT License. See LICENSE.txt for full disclaimer.

Installation

Since the code is still under development, installation is done in developer mode. To do so, clone this repository and (in its root) run:

pip install -e .

Usage

The compiler is command-line-based. It can be called by:

python VZcomp\compiler.py path_to_qasm\qasm_file_exclude_extension

About the compiler

This compiler is based on the phase-update+euler-decomposition technique described in https://arxiv.org/abs/1612.00858.

The compilation flow is composed of 4 steps: 0. Raw code.

  1. Structured code.
  2. code in terms of SU2 rotations.
  3. code in terms of euler angles.
  4. code in terms of XY rotations.

Improvements to go:

  1. Between steps 3 and 4, a flag should allow to only use pi/2 gates. KNOWN TO WORK
  2. Between steps 3 and 4, we could use another euler angles step to ONLY use x' or y' angles(see PR for this). NOT SURE WHETHER IT WORKS.

About

Quantu compiler based on Virtual-Z gates technique

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages