Release 0.1.0 (Dec 10, 2024)
Summary
Added
- Added support for
gphase
,toffoli
,not
,c3sx
andc4x
gates (#86) - Added a
remove_includes
method toQasmModule
to 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
QasmModule
to remove default include statements. Only user supplied include statements are now added to the generated QASM code (#86) - Update the
pre-release.yml
workflow to multi-platform builds. Added the pre-release version bump to thepre_build.sh
script. (#99)
Deprecated
Removed
Fixed
- Fixed bugs in implementations of
gpi2
andprx
gates (#86)
Dependencies
Full Changelog: