Release 0.2.3 (Sep 27, 2024)
Summary
➕ New Features
- Add support for pauli measurement operators in
cirq
converter (#144) - Add support for
sizeof
operator inopenqasm
converter (#146) - Add complete support for
array
type in subroutines (#151)
🌟 Improvements
- Re-factor the
BasicQasmVisitor
and improve modularity (#142) - Add static type checking with
mypy
(#150 ) - Improve measurement statement parsing logic and add support for range definition and discrete set (#150)
- Expanded support for parameters used in gate body expressions. Initially, if a statement inside a gate body used its parameters in arbitrary expressions, the expression was not evaluated correctly as the identifiers were not replaced. (#157). Example -
// previous
gate my_gate(a, b) q {
rx(a) q;
ry(b) q;
// this was not supported
rz(5 * a) q;
}
// current
gate my_gate(a, b) q {
rz(a) q;
// expressions supported now
rx(a * 3.2) q;
ry(a / b + pi) q;
}
📜 Documentation
- Housekeeping updates for release (#135)
- Update
CHANGELOG.md
to add new template (#137) - Update
CONTRIBUTING.md
to mention changelog updates (#140)
🐛 Bug Fixes
- Fix function block issues where qubit references were not getting populated correctly. Users can now use
for
,switch
and other constructs inside functions. (#141)
⬇️ Dependency Updates
- Update sphinx-autodoc-typehints requirement from <2.3,>=1.24 to >=1.24,<2.4 (#152)
- Update sphinx-autodoc-typehints requirement from <2.4,>=1.24 to >=1.24,<2.5 (#153)
PRs Merged
- housekeeping updates by @ryanhill1 in #135
- Update CHANGELOG.md by @TheGupta2012 in #137
- Update CHANGELOG.md by @TheGupta2012 in #139
- Update
CONTRIBUTING.md
by @TheGupta2012 in #140 - Fix
for
with subroutines by @TheGupta2012 in #141 - Add measurement basis change support for
cirq_qir
by @TheGupta2012 in #144 - Refactoring the
Qasm3Visitor
by @TheGupta2012 in #142 - Add implementation for
sizeof
in openqasm by @TheGupta2012 in #146 - Add
mypy
static types toqbraid-qir
by @TheGupta2012 in #150 array
support for QASM3 subroutines by @TheGupta2012 in #151- Update sphinx-autodoc-typehints requirement from <2.3,>=1.24 to >=1.24,<2.4 by @dependabot in #152
- Update README.md by @TheGupta2012 in #154
- Update sphinx-autodoc-typehints requirement from <2.4,>=1.24 to >=1.24,<2.5 by @dependabot in #153
- Add support for param update in gate param expr by @TheGupta2012 in #157
- Update
CHANGELOG.md
by @TheGupta2012 in #158 - Add semantic checker for qasm3 by @TheGupta2012 in #155
- update checker and bump version by @ryanhill1 in #161
Full Changelog: v0.2.2...v0.2.3