PyQASM 0.1.0
Release 0.1.0 (Dec 10, 2024)
Summary
Added
- Added support for
gphase,toffoli,not,c3sxandc4xgates (#86) - Added a
remove_includesmethod toQasmModuleto remove include statements from the generated QASM code (#100). Usage example -
In [1]: from pyqasm import loads
In [2]: module = loads(
...: """OPENQASM 3.0;
...: include "stdgates.inc";
...: include "random.qasm";
...:
...: qubit[2] q;
...: h q;
...: """)
In [3]: module.remove_includes()
Out[3]: <pyqasm.modules.qasm3.Qasm3Module at 0x10442b190>
In [4]: from pyqasm import dumps
In [5]: dumps(module).splitlines()
Out[5]: ['OPENQASM 3.0;', 'qubit[2] q;', 'h q;']Improved / Modified
- Refactored the initialization of
QasmModuleto remove default include statements. Only user supplied include statements are now added to the generated QASM code (#86) - Update the
pre-release.ymlworkflow to multi-platform builds. Added the pre-release version bump to thepre_build.shscript. (#99)
Deprecated
Removed
Fixed
- Fixed bugs in implementations of
gpi2andprxgates (#86)
Dependencies
Full Changelog: