PennyLaneAI / qml

Introductions to key concepts in quantum programming, as well as tutorials and implementations from cutting-edge quantum computing research.
https://pennylane.ai/qml
Apache License 2.0
527 stars 185 forks source link

[BUG] QML JAX and Optax demo does not use the correct definition of optimizer #1045

Closed Gopal-Dahale closed 6 months ago

Gopal-Dahale commented 6 months ago

Issue description

In the demo "How to optimize a QML model using JAX and Optax", the update_step_jit does not use the correct definition of the optimizer that is defined in optimization_jit (Line 170) as it is not passed as an argument to the update_step_jit function. It possibly uses the earlier definition of the optimizer (Line 123).

KetpuntoG commented 6 months ago

Thanks for opening the issue, I look at it!

KetpuntoG commented 6 months ago

Solved 😄

KetpuntoG commented 6 months ago

The changed will be deployed in a few hours