Skip to content
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

GQE demo using Pennylane #1119

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

GQE demo using Pennylane #1119

wants to merge 16 commits into from

Conversation

JosephRRB
Copy link
Collaborator

@JosephRRB JosephRRB commented May 27, 2024

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:
Generative quantum eigensolver demo using Pennylane

Summary:
We use Pennylane to generate a static molecular dataset and calculate the corresponding energies to train a small GPT model as described by https://arxiv.org/abs/2401.09253. We show that as training progresses, the GPT model generates operator sequences whose predicted energies more accurately resembles the true energies calculated by Pennylane. In addition, the sampling process is shown to better generate the ground state for better performing models.

Relevant references:

Possible Drawbacks:

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?

    Eg. Promote a new PL feature or show a PL implementation of a recent paper.

  • AUDIENCE — Who is this for?

    Eg. Chemistry researchers, PL educators, beginners in quantum computing.

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

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

  • Tutorial
  • Demo
  • How-to

Copy link

👋 Hey, looks like you've updated some demos!

🐘 Don't forget to update the dateOfLastModification in the associated metadata files so your changes are reflected in Glass Onion (search and recommendations).

Please hide this comment once the field(s) are updated. Thanks!

@JosephRRB JosephRRB changed the title converted demo notebook GQE demo using Pennylane May 27, 2024
@josh146
Copy link
Member

josh146 commented May 29, 2024

Hey @JosephRRB! You'll want to rename the tutorial file, to remove the tutorial_ part of the filename. this instructs to our build system not to try and execute it.

Copy link

github-actions bot commented May 29, 2024

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

  • Pull Request ID: 1119
  • Deployment SHA: e3f5054caf6963bc23c47fbbc8143fdf7c92fca2
    (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.

demonstrations/gqe_training.py Show resolved Hide resolved
demonstrations/gqe_training.py Outdated Show resolved Hide resolved
demonstrations/gqe_training.py Outdated Show resolved Hide resolved
demonstrations/gqe_training.py Outdated Show resolved Hide resolved
demonstrations/gqe_training.py Outdated Show resolved Hide resolved
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.

None yet

4 participants