Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't patch probs(wires=[]) to probs(all_wires) in LK (#762)
### Before submitting Please complete the following checklist when submitting a PR: - [ ] All new features must include a unit test. If you've fixed a bug or added code that should be tested, add a test to the [`tests`](../tests) directory! - [x] All new functions and code must be clearly commented and documented. If you do make documentation changes, make sure that the docs build and render correctly by running `make docs`. - [x] Ensure that the test suite passes, by running `make test`. - [ ] Add a new entry to the `.github/CHANGELOG.md` file, summarizing the change, and including a link back to the PR. - [x] Ensure that code is properly formatted by running `make format`. When all the above are checked, delete everything above the dashed line and fill in the pull request template. ------------------------------------------------------------------------------------------------------------ **Context:** PR #744 patches `probs(wires=[])` to calculate the probabilities of all wires in LightningKokkos. This PR fixes the issue to keep the consistency among all Lightning devices as well as the integration with Catalyst. **Description of the Change:** **Benefits:** Consistent behaviour among all devices for calculating `probs(wires=[]) = [1.0]`. **Possible Drawbacks:** **Related GitHub Issues:** --------- Co-authored-by: ringo-but-quantum <[email protected]>
- Loading branch information