pennylane
pennylane copied to clipboard
PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
Automatic update of stable requirement files to snapshot valid python environments. Because bots are not able to trigger CI on their own, please do so by pushing an empty commit...
# Context Currently, our sample-based measurement processes that inherit from `SampleMeasurement` implement a [process_samples](https://github.com/PennyLaneAI/pennylane/blob/a05ae286c5925e0c881099cea751193d368779fc/pennylane/measurements/measurements.py#L535) method. This method is capable of turning any samples (array of int64) into the required measurement...
**Context:** Under #4941 abstract method `process_counts` was added to `SampleMeasurement`. This method provides support to process counts dictionary produced by external systems. **Description of the Change:** * Implement `process_counts` in...
fix for https://github.com/PennyLaneAI/pennylane/issues/5245 [sc-57300]
**Context:** Implemented a new template for issue 4848 **Description of the Change:** Implements FABLE as a template to efficiently encodes the block matrix. **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** https://github.com/PennyLaneAI/pennylane/issues/4848
**Context:** Every time there's a new merge to lightning master, the version on the test PyPI repo gets bumped. This causes noisy commits like [this one](https://github.com/PennyLaneAI/pennylane/pull/5250/commits/0a537929f8224b5fdc8d5717324e8897270a4fd9) for test suites that...
I started this in #5203, but missed the case when it's only applied to a subset of the device wires. This handles that case now as well Fixes #5235
**Context:** null.qubit doesn't quite do everything as it should, so it needs an upgrade of sorts. **Description of the Change:** Port null.qubit to the new Device API. The diff for...
First block of the Amplitude amplification algorithm toolkit project Example: ```python @qml.prod def generator(wires): qml.Hadamard(wires=wires) U = generator(wires=0) dev = qml.device('default.qubit') @qml.qnode(dev) def circuit(): # Initialize to the state |1>...
Towards #4977. Opened a new PR, please review and let me know if I need to do anything else. [sc-52777]