Add support for qml.Hamiltonian
with lightning.qubit
for diff_method='adjoint'
#216
Labels
enhancement
New feature or request
Issue description
Description of the issue:
When running the following simple code block, it throws the
NotImplementedError
. There is no issue if I change to other simulators such asdefault.qubit
, or replace the observable to simple observables such asqml.PauliX(0)
.Expected behavior: It returns the expectation value of the Hamiltonian.
Actual behavior: It throws
NotImplementedError
.Reproduces how often: Every time
System information:
Name: PennyLane
Version: 0.20.0
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.
Home-page: https://github.com/XanaduAI/pennylane
Author:
Author-email:
License: Apache License 2.0
Location: /usr/local/lib/python3.7/site-packages
Requires: appdirs, autograd, autoray, cachetools, networkx, numpy, pennylane-lightning, scipy, semantic-version, toml
Required-by: amazon-braket-pennylane-plugin, PennyLane-Lightning, PennyLane-Qchem
Platform info: Linux-4.14.256-197.484.amzn2.x86_64-x86_64-with-debian-buster-sid
Python version: 3.7.10
Numpy version: 1.19.2
Scipy version: 1.5.2
Installed devices:
The text was updated successfully, but these errors were encountered: