Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.4 KB

README.md

File metadata and controls

19 lines (16 loc) · 1.4 KB

Rust implementation of quantum circuits optimization algorithms presented in the following papers:

Usage

Install rust and run cargo +nightly run -r [OPTIONS] file.qc where file.qc is any .qc file. If your machine supports AVX2, it can be enabled with RUSTFLAGS="-C target-cpu=native" cargo run -r [OPTIONS] file.qc.

[OPTIONS] are (case-insensitive and in no order):

  • BBMerge runs the BBMerge algorithm
  • FastTMerge runs the FastTMerge algorithm
  • InternalHOpt runs the InternalHOpt algorithm
  • TOHPE runs the TOHPE algorithm
  • FastTODD runs the FastTODD algorithm

If no options are provided, then the FastTMerge, InternalHOpt and FastTODD algorithms will be applied. The gadgetization of internal Hadamard gates will be done whenever the TOHPE or FastTODD algorithms are applied. The optimized circuit will be written in the .qc format in the folder circuits/outputs/.