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.
**Description of the Change:** Start working on the release notes before release candidate branch is created. **Release notes** * [x] Create sections * [x] Organize the order of entries *...
### Feature details When passing in the wires to `qml.SparseHamiltonian`, one could check that the shape of the sparse Hamiltonian corresponds to the number of wires passed in. ### Implementation...
Currently, `ControlledOperation` created by `ctrl` has some very basic decomposition behaviour. But it at least has more decomposition behaviour than the non-integrated `Controlled`. This PR makes `Controlled` reach feature-parity with...
**Context:** ```py pl_tensor = qml.numpy.array(0.3, requires_grad=True) torch_tensor = torch.tensor(0.3, requires_grad=True) qml.math.allclose(pl_tensor, torch_tensor) ``` Raises ```py RuntimeError: Can't call numpy() on Tensor that requires grad. Use tensor.detach().numpy() instead. ``` **Description of...
**Description of the Change:** - Copy of this PR: https://github.com/PennyLaneAI/pennylane/pull/2923 - Update the tests to be run before uploading PennyLane to pypi
This wrapper allows us to represent the exponential of an operator. It has an optional keyword argument that allows the specification of a scalar coefficient. This allows us to easily...
**Context:** This is the first PR in a series to support the classical shadow protocol in PennyLane. Currently it is possible for the user to implement the classical shadow protocol...
Attempting to define a new measurement `classical_shadow_expval` which allows to differentiate expectation values evaluated with classical shadows. **Context:** The problem with post-processing the classical shadows obtained from the `classical_shadow` measurement...
**Context:** There are very few simulators available today that offer qudit simulation. One notable example is [Google's Cirq](https://quantumai.google/cirq/qudits), which includes support for qudit operations. However, the simulator is far from...
**Context:** builds on top of https://github.com/PennyLaneAI/pennylane/pull/2820 Adding a `qml.ClassicalShadow` class that takes in `bitstrings` and `recipes` from the `qml.classical_shadow` measurement and can further process these results for * expectation values...