Pyqir

Latest version: v0.10.2

Safety actively analyzes 638720 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.5.0a1

What's Changed
> LLVM 13 is now the default target.
* Added mypy github action to check type annotations and mypy stub files by WingCode in https://github.com/qir-alliance/pyqir/pull/127
* Evaluator: Raise if bitcode contains unknown external functions. by georgios-ts in https://github.com/qir-alliance/pyqir/pull/128
* Regenerate mock parser using ANTLR-4.10 by georgios-ts in https://github.com/qir-alliance/pyqir/pull/129
* Set LLVM 13 as the default by idavis in https://github.com/qir-alliance/pyqir/pull/131
* Fix type hinting errors by LaurentAjdnik in https://github.com/qir-alliance/pyqir/pull/133
* Create CODEOWNERS by samarsha in https://github.com/qir-alliance/pyqir/pull/134
* Parser should throw appropriate exception when loading invalid bitcode by idavis in https://github.com/qir-alliance/pyqir/pull/137
New Contributors
* WingCode made their first contribution in https://github.com/qir-alliance/pyqir/pull/127
* georgios-ts made their first contribution in https://github.com/qir-alliance/pyqir/pull/129

**Full Changelog**: https://github.com/qir-alliance/pyqir/compare/v0.4.2a1...v0.5.0a1

0.4.2a1

New Contributors

* nilslice made their first contribution in https://github.com/qir-alliance/pyqir/pull/119

**Full Changelog**: https://github.com/qir-alliance/pyqir/compare/v0.4.1a1...v0.4.2a1

0.4.1a1

**Full Changelog**: https://github.com/qir-alliance/pyqir/compare/v0.4.0a1...v0.4.1a1

0.4.0a1

Breaking Changes

PR [106](https://github.com/qir-alliance/pyqir/pull/106) changes the default way `Result`s are emitted in emitted QIR.

The previous approach used `call %Result* __quantum__qis__m__body(%Qubit* null)` for measurement saving to a `Result` variable. Along with this, branching used `__quantum__rt__result_equal(%Result*, %Result*)` along with `__quantum__rt__result_get_zero` and `__quantum__rt__result_get_one`
to perform branching.

The new default usage in `0.4.0a1` uses static `Result` identifiers instead of dynamic `Result` values. With that, measurement now uses `"call void __quantum__qis__mz__body(%Qubit*, %Result*)` which accepts the static `Result` identifier. As a result, the `pyqir-evaluator` can now see which `Result` is being written to. Branching has also changed to use `call i1 __quantum__qir__read_result(%Result*)` which returns the boolean value of the `Result`.

For the `pyqir-generator`, the use of static and dynamic `Qubit` and `Result` can now be
configured via two new methods on the `SimpleModule` class:

- `use_static_qubit_alloc(bool)`
- `use_static_result_alloc(bool)`

**Full Changelog**: https://github.com/qir-alliance/pyqir/compare/v0.3.2a1...v0.4.0a1

0.3.2a1

What's Changed

This package replaces all existing wheel distributions due to packaging issues in earlier prereleases.

* Add licensing checks and notice file by idavis in https://github.com/qir-alliance/pyqir/pull/94
* Updating version to 0.3.2a1 by idavis in https://github.com/qir-alliance/pyqir/pull/95
* Lock wheel package dependencies by idavis in https://github.com/qir-alliance/pyqir/pull/96


**Full Changelog**: https://github.com/qir-alliance/pyqir/compare/v0.3.1a1...v0.3.2a1

0.3.1a1

What's Changed
* Correct a few more typos and update docs by LaurentAjdnik in https://github.com/qir-alliance/pyqir/pull/86
* Support external functions in generator by samarsha in https://github.com/qir-alliance/pyqir/pull/76
* Improve error handling for invalid external function calls by samarsha in https://github.com/qir-alliance/pyqir/pull/89
* Update PyPI package metadata by idavis in https://github.com/qir-alliance/pyqir/pull/87
* Create pyqir metapackage for PyPI by idavis in https://github.com/qir-alliance/pyqir/pull/90
* Fix issue template paths by idavis in https://github.com/qir-alliance/pyqir/pull/91
* Prepare for 0.3.1 release by idavis in https://github.com/qir-alliance/pyqir/pull/93


**Full Changelog**: https://github.com/qir-alliance/pyqir/compare/v0.3.0a1...v0.3.1a1

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.