Skip to content

ChanghoonChung/test_staq

 
 

Repository files navigation

staq

Version 3.2.3 - 14 August 2023

GitHub actions


About

staq is a modern C++ library for the synthesis, transformation, optimization and compilation of quantum circuits. staq is written in standard C++17 and has very low external dependencies. It is usable either through the provided binary tools, or as a header-only library that can be included to provide direct support for parsing & manipulating circuits written in the OpenQASM circuit description language.

Inspired by Clang, staq is designed to manipulate OpenQASM syntax trees directly, rather than through an intermediate representation which makes retrieving the original source code impossible. In particular, OpenQASM circuits can be inspected and transformed (in most cases) without losing the original source structure. This makes staq ideally suited for source-to-source transformations, where only specific changes are desired. Likewise, this allows translations to other common circuit description languages and libraries to closely follow the OpenQASM source.

Check out the Wiki for more information about the library and included tools.

Copyright (c) 2013 - 2023 softwareQ Inc. All rights reserved.


License

staq is distributed under the MIT license. Please see the LICENSE file for more details.


Installation instructions

Please see the installation guide INSTALL.md and the comprehensive Wiki for further documentation and detailed examples.


Python 3 wrapper

pystaq is a Python 3 wrapper for staq. pystaq can be installed using pip

pip install git+https://github.com/softwareQinc/staq

For more details, please see pystaq/README.md.


Acknowledgements

Thanks to the excellent EPFL logic synthesis libraries which are used to perform logic synthesis in staq, and in particular Bruno Schmitt's tweedledum library, from which the OpenQASM parser was adapted.

About

Fork of staq repo for printing OpenQASM AST in pystaq

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.2%
  • Python 2.3%
  • C 1.6%
  • CMake 0.4%
  • Starlark 0.3%
  • OpenQASM 0.1%
  • Other 0.1%