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.
**Context:** Part of the effort to port all PennyLane functionality to the new return type system. **Description of the Change:** Not much needs updating. The `LieAlgebraOptimizer` calls `qml.execute` on tapes...
**Context:** Add `qdata` module **Description of the Change:** **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:**
The `qml.Identity` class can now be instantiated with multiple wires: ```pycon >>> id_op = qml.Identity([0, 1]) >>> id_op.matrix() array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.],...
**Context:** **Description of the Change:** **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:**
[BUG] `QuantumTape.diagonalizing_gates` returns wrong result when observables include `Hamiltonian`
### Expected behavior The property `QuantumTape.diagonalizing_gates` always either returns the correct diagonalizing gates or raises an error (warning) if they are unknown. ### Actual behavior When measuring, say, the expectation...
Run all tests for the new return types system.
Currently, `qml.pow` and `qml.adjoint` both have a keyword argument `lazy=True` that indicates whether or not to perform some basic simplification steps: ``` >>> qml.adjoint(qml.PauliX(0), lazy=True) Adjoint(PauliX(wires=[0])) >>> qml.adjoint(qml.PauliX(0), lazy=False) PauliX(wires=[0])...
This adds a page to the developer documentation for pending deprecations. I'm still figuring out the format and adding things from old changelogs. Each entry should list: * when the...
Right now, `Barrier` and `WireCut` are located in `pennylane/ops/qubit/non_parametric_ops.py`, even though they are not unique to qubit ops. `Snapshot` is located in its own file in `pennylane/ops/snapshot.py`. I propose grouping...
- Add `overlapping_ops` property to the `Composite` class. - Improve performance of `eigvals`, `diagonalizing_gates` and `Prod.matrix` methods using the aforementioned property. - Move `eigvals` method to the `Composite` class. To...