Skip to content

Rust implementation of quantum circuit optimization algorithms

Notifications You must be signed in to change notification settings

tlaakkonen/quantum_circuit_optimization

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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/.

About

Rust implementation of quantum circuit optimization algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%