Quantu compiler based on Virtual-Z gates technique
This software is licensed under the MIT License. See LICENSE.txt for full disclaimer.
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 .
The compiler is command-line-based. It can be called by:
python VZcomp\compiler.py path_to_qasm\qasm_file_exclude_extension
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.
- Structured code.
- code in terms of SU2 rotations.
- code in terms of euler angles.
- code in terms of XY rotations.
- Between steps 3 and 4, a flag should allow to only use pi/2 gates. KNOWN TO WORK
- 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.