PennyLaneAI / pennylane-lightning

The PennyLane-Lightning plugin provides a fast state-vector simulator written in C++ for use with PennyLane
https://docs.pennylane.ai/projects/lightning
Apache License 2.0
89 stars 38 forks source link

Support the same set of observables in forward/backward path #305

Open chaeyeunpark opened 2 years ago

chaeyeunpark commented 2 years ago

Now we support expval of a sparse Hamiltonian (with Kokkos), but not for the adjoint differentiation method.

On the other hand, expval of a Hamiltonian involving Hermitian is not supported in the forward path (as default.qubit does not support it), but we support it in the adjoint differentiation method.

chaeyeunpark commented 2 years ago

We now support expval(ham) in the forward path using Lightning's custom C++ backend. Still need to add backward support of a sparse Hamiltonian.