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.
### Expected behavior The `name` attribute of the measure operation found in the `tape.operations` list should be set correctly (e.g. `measure`). ### Actual behavior Instead the `name` attribute contains `Identity`....
### 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...
### Expected behavior qml.transforms.transpile does not add SWAP gates for MultiRZ operations between 2 qubits and just ignores it. This might be due to MultiRZ being able to act on...
PennyLane now has a `qml.equal` function that is useful for comparing the equality of `Operator`'s. We could extend this function to `MeasurementProcess` objects as well. ```pycon >>> qml.equal(qml.expval(qml.PauliX(0)), qml.expval(qml.PauliX(0)) )...
Change matrix expansion method, which improves performance. The current method does the following: - Computes the `kron` product of `Identity` operators together with the given `base_matrix`, following the wire order...
This PR introduces the new `qml.qscript.QuantumScript` class. This class in the non-queuing parts of `QuantumTape`. The `QuantumTape` can still be used as normal. This class can now be created like:...
**Context:** Part of the ongoing effort to support gradient methods with the new return types system. This PR focuses on supporting the adjoint differentiation method. **Description of the Change:** Add...
### 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...
This PR achieves works on the following: * `param_shift`: updates the processing function if there are operations due to which the fallback function has to be used; * Parameter-shift `processing_fn`:...
**Context:** Part of the effort to port all PennyLane functionality to the new return type system. **Description of the Change:** Some differences in the output shapes between the old and...