Skip to content

qBraid-QIR 0.2.3

Latest
Compare
Choose a tag to compare
@TheGupta2012 TheGupta2012 released this 27 Sep 14:41
· 9 commits to main since this release
7f1e90c

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 in openqasm 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

Full Changelog: v0.2.2...v0.2.3