updates (#86)
- Minor update
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Minor update cmake.yml
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Removed triling whitespace in qasm files
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Updated pystaq
Changed .h to .hpp
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Added getter method for std_include in Program astnode. (#79)
Co-authored-by: matu67 matteotempo67@gmail.com Co-authored-by: James Lambert james.lambert@softwareq.ca
- Added getter method for std_include in Program astnode. (#80)
Co-authored-by: matu67 matteotempo67@gmail.com Co-authored-by: James Lambert james.lambert@softwareq.ca
updated (c) notice
Added CODE_OF_CONDUCT.md
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Update
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Updated fmt
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Fix MSVC Windows build
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Updated CHANGES
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Update
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Update
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
staq_json (#83)
init json.cpp
added pybindings
added pybindings
upd tool
staq_json fix read/write (#84)
fixed declared gates saving to json
staq_json accepts input from stdin now
Minor updates
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
- Updated Docker config
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com
Signed-off-by: Vlad Gheorghiu vsoftco@gmail.com Co-authored-by: matu67 matteotempo67@gmail.com Co-authored-by: James Lambert james.lambert@softwareq.ca Co-authored-by: Anton Borissov anton.borissov@softwareq.ca
staq
Version 3.5 - 8 March 2024
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 2.0 circuit description language.
Inspired by Clang, staq is designed to manipulate OpenQASM 2.0 syntax trees directly, rather than through an intermediate representation which makes retrieving the original source code impossible. In particular, OpenQASM 2.0 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 2.0 source.
Check out the Wiki for more information about the library and included tools.
Copyright (c) 2019 - 2025 softwareQ Inc. All rights reserved.
License
staq is distributed under the MIT license. Please see the
LICENSE.txtfile for more details.Installation instructions
Please see the installation guide
INSTALL.mdand 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
pipFor 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 2.0 parser was adapted.