Skip to content

Conversation

vinayak19th
Copy link

@vinayak19th vinayak19th commented Sep 22, 2025

Before submitting

Please complete the following checklist when submitting a PR:

  • Ensure that your tutorial executes correctly and conforms to the
    guidelines specified in the README.

  • Remember to do a grammar check of the content you include.

  • All tutorials conform to
    PEP8 standards.
    To auto format files, simply pip install black, and then
    run black -l 100 path/to/file.py.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


Title:
Keras 3 Training

Summary:
A demo showing how to integrate a pennylane circuit into keras 3 and train it using both pytorch and tensorflow

Relevant references:
None

Possible Drawbacks:
None

Related GitHub Issues:
None


If you are writing a demonstration, please answer these questions to facilitate the marketing process.

  • GOALS — Why are we working on this now?
    I implemented this support for a paper I was working on, and thought it would be useful as a general tutorial for everyone.

  • AUDIENCE — Who is this for?
    For people who want to train QML models but have a Keras-based workflow for their ML stack. Also great for those who want to define a QML layer that can be integrated and trained with multiple ML backends without code changes.

  • KEYWORDS — What words should be included in the marketing post?
    Quantum Machine Learning, Keras, Tensorflow, PyTorch, Jax, How-To, Tutorial

  • Which of the following types of documentation is most similar to your file?
    (more details here)

  • Tutorial
  • Demo
  • How-to

@vinayak19th vinayak19th changed the title Demo on using Keras 3 with pennylane (including full multi-backend support) [Tutorial] Using Keras 3 with pennylane (including full multi-backend support) Sep 22, 2025
Copy link

Your preview is ready 🎉!

You can view your changes here

@vinayak19th vinayak19th changed the title [Tutorial] Using Keras 3 with pennylane (including full multi-backend support) [New Tutorial] Using Keras 3 with pennylane (including full multi-backend support) Sep 22, 2025
@CatalinaAlbornoz
Copy link
Contributor

Hi @vinayak19th,

Thank you for making this demo. I've responded in the Forum thread that you opened (#9060). We can keep the conversation there, or in the issue for the community demo if you decide to open one. Let us know if you have any questions.

For now I will close this PR since we will be moving to a community demo, which doesn't require a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants