github PennyLaneAI/pennylane v0.14.1
Release 0.14.1

latest releases: v0.35.1, v0.35.0, v0.34.0.post1...
3 years ago

Bug fixes

  • Fixes a bug where inverse operations could not be differentiated using backpropagation on default.qubit. (#1072)

  • The QNode has a new keyword argument, max_expansion, that determines the maximum number of times the internal circuit should be expanded when executed on a device. In addition, the default number of max expansions has been increased from 2 to 10, allowing devices that require more than two operator decompositions to be supported. (#1074)

  • Fixes a bug where Hamiltonian objects created with non-list arguments raised an error for arithmetic operations. (#1082)

  • Fixes a bug where Hamiltonian objects with no coefficients or operations would return a faulty result when used with ExpvalCost. (#1082)

  • Fixes a testing bug where tests that required JAX would fail if JAX was not installed. The tests will now instead be skipped if JAX cannot be imported. (#1066)

Documentation

  • Updates mentions of generate_hamiltonian to molecular_hamiltonian in the docstrings of the ExpvalCost and Hamiltonian classes. (#1077)

Contributors

This release contains contributions from (in alphabetical order):

Thomas Bromley, Josh Izaac, Antal Száva.

Don't miss a new pennylane release

NewReleases is sending notifications on new releases.