Skip to content

Demo quantum chebyshev transform #1364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 65 commits into
base: master
Choose a base branch
from

Conversation

colinjdale
Copy link
Collaborator

@colinjdale colinjdale commented May 7, 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:

Quantum Chebyshev Transform

Summary:

Inspired by recent work in quantum generative modeling in the Chebyshev basis. Introduces Chebyshev polynomials and their properties, briefly describing the classical discrete Chebyshev transform. Defines quantum Chebyshev basis states, and implements the Quantum Chebyshev transform in PennyLane. Finishes by showing how the transformed states have the expected amplitudes and orthogonality relation.

Relevant references:

Paper that introduces the Quantum Chebyshev transform, and uses it for generative modeling of probability distributions.

Chelsea A. Williams, Annie E. Paine, Hsin-Yu Wu, Vincent E. Elfving, Oleksandr Kyriienk, "Quantum Chebyshev transform: mapping, embedding, learning and sampling distributions", https://arxiv.org/abs/2306.17026, (2023).

Further work that applies the toolkit introduced above for learning and sampling distributions that appear in high-energy physics.

Jorge J. Martínez de Lejarza, Hsin-Yu Wu, Oleksandr Kyriienko, Germán Rodrigo, Michele Grossi, "Quantum Chebyshev Probabilistic Models for Fragmentation Functions", https://arxiv.org/abs/2503.16073, (2025).

Possible Drawbacks:

Demo does not show what to do with the transform. Perhaps could include a section on QPE of a qubitized Hamiltonian. Still thinking about it.

Related GitHub Issues:


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

  • GOALS — Why are we working on this now?

To show a PL implementation of a paper from late 2023 by William's et al. The implementation here is part of the toolbox introduced in that paper which seems useful for generative modeling and high-energy physics applications.*

  • AUDIENCE — Who is this for?

Quantum machine learning researchers and quantum computing for high-energy physics researchers.

  • KEYWORDS — What words should be included in the marketing post?

Chebyshev, generative modeling, probability distributions, PennyLane

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

colinjdale added 15 commits May 6, 2025 10:57
5 images added to /_static/demonstration_assets/quantum_chebyshef_transform
Filled with preliminary information.
Removed some punctuation from equations.
Added reference section with Williams et al. 2023
Added de Lejarza 2025 paper to references which uses the transform for generative modelling. Not yet referenced in text.
Modified metadata file previewImages to include this thumbnail.
Copied relevant files to demonstrations, so they are now in both demonstrations and demonstrations_v2.
Fixed typo in metadata in both demonstrations folders
So that I don't have to edit both, and since I don't know what demonstrations_v2 is.
... to qml.ctrl on the required unitary. Edited text to properly explain the new implimentation of the multicontrolled RX.
Copy link

github-actions bot commented May 7, 2025

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

  • Pull Request ID: 1364
  • Deployment SHA: d9cf638ceca82c27440241def128fa3d1f7353b8
    (The Deployment SHA refers to the latest commit hash the docs were built from)

Note: It may take several minutes for updates to this pull request to be reflected on the deployed site.

Copy link
Collaborator

@alvaro-at-xanadu alvaro-at-xanadu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The results look great 🚀 I'll send it to Guillermo too so he can take a quick peek. Overall, my main feedback is to try and make it more self-contained, especially in the introductory part. I also wonder if we can say anything about the QChT being advantageous over the classical one in any way? (If it is, otherwise we just stay quiet!)

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