Matchcake

Latest version: v0.0.4b4

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

Scan your dependencies

Page 1 of 2

0.0.4beta4

What's Changed
* Dev by JeremieGince in https://github.com/MatchCake/MatchCake/pull/59


**Full Changelog**: https://github.com/MatchCake/MatchCake/compare/0.0.4-beta3...0.0.4-beta4

0.0.4beta3

This pull request includes several important changes across multiple files to improve the testing workflow, update dependencies, and enhance functionality in the `matchcake` project. Below are the most significant changes grouped by their themes:

Workflow Updates:
* [`.github/workflows/tests.yml`](diffhunk://diff-1db27d93186e46d3b441ece35801b244db8ee144ff1405ca27a163bfe878957fL8-R10): The workflow now triggers on pushes to both `main` and `dev` branches and on pull requests to any branch. Additionally, a virtual environment is created and activated, and dependencies are installed using `poetry` instead of `pip`. [[1]](diffhunk://diff-1db27d93186e46d3b441ece35801b244db8ee144ff1405ca27a163bfe878957fL8-R10) [[2]](diffhunk://diff-1db27d93186e46d3b441ece35801b244db8ee144ff1405ca27a163bfe878957fR28-R36) [[3]](diffhunk://diff-1db27d93186e46d3b441ece35801b244db8ee144ff1405ca27a163bfe878957fR51-R59)

Dependency Updates:
* [`pyproject.toml`](diffhunk://diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711L51-R69): Updated several dependencies to allow for a broader range of versions, ensuring compatibility with future releases.

New Functionality:
* [`src/matchcake/base/lookup_table.py`](diffhunk://diff-81a4a423a6488992df58db5981d7806922ed105605805c08b7ce40c1a9848ca8R514-R552): Added a new method `assert_binary` to validate binary states and updated `_setup_inputs` to include this validation. [[1]](diffhunk://diff-81a4a423a6488992df58db5981d7806922ed105605805c08b7ce40c1a9848ca8R514-R552) [[2]](diffhunk://diff-81a4a423a6488992df58db5981d7806922ed105605805c08b7ce40c1a9848ca8R575-R577)

Code Enhancements:
* [`src/matchcake/devices/nif_device.py`](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109R32): Refactored the device class to include properties for `global_sptm` and improved the `apply` methods to handle operations more efficiently. [[1]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109R32) [[2]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109R171-R174) [[3]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L211) [[4]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109R231-R232) [[5]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L260-R270) [[6]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109R346-R347) [[7]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109R357-R374) [[8]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L759-R791) [[9]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L775) [[10]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L792-R816) [[11]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L807-R847) [[12]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L899-R918) [[13]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L945-R965) [[14]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L961-R980)

Minor Changes:
* [`src/matchcake/circuits/random_generator.py`](diffhunk://diff-d3c7993c9ccb3eb372d513cdd1432e71776d3507770d23f3b051c83c72984478R102-R104): Added a `__repr__` method for better representation of the class instances.
* [`src/matchcake/devices/nif_device.py`](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109R32): Added missing imports and minor refactoring for better code readability. [[1]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109R32) [[2]](diffhunk://diff-d3d98a3f02c9d992f279a2e4a8ce9be54398925fd43d2bad3165214a35e1c109L211)

These changes collectively enhance the functionality, maintainability, and compatibility of the project.

What's Changed
* rm old dist by JeremieGince in https://github.com/MatchCake/MatchCake/pull/48
* Dev by JeremieGince in https://github.com/MatchCake/MatchCake/pull/52
* 53 remove direct GitHub dependency on torchpfaffian to fix pypi publishing by JeremieGince in https://github.com/MatchCake/MatchCake/pull/57
* 56 incorrect gradients when output is expectation value of sum of operators by JeremieGince in https://github.com/MatchCake/MatchCake/pull/58


**Full Changelog**: https://github.com/MatchCake/MatchCake/compare/0.0.4-beta2...0.0.4-beta3

0.0.4beta2

What's Changed
* 50 incorrect expectation values for certain pauli strings by JeremieGince in https://github.com/MatchCake/MatchCake/pull/51


**Full Changelog**: https://github.com/MatchCake/MatchCake/compare/0.0.4-beta1.1...0.0.4-beta2

0.0.4-beta1.1

0.0.4beta1

0.0.4beta0

Fixes

- Single particle transition matrix `__matmul__` operator.
- NIF device circuit matmul operations.
- Input casting for single particle transition matrix in `from_operations`.
- Broadcasting issue in `NIF.batch_transform` when batch size was `None` or`1` and another value.
- Probability normalization in the wrong dimension when using a batch of target states.

Additions

- Optimizer strategies in the `ml` subpackage.

Modifications

- Added the `fit` function in `TorchModel`.

0.0.3beta1

Update the pennylane version to 0.39.0 and the python version to 3.10.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.