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

Demo iqpopt (#1307) #1309

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

Demo iqpopt (#1307) #1309

wants to merge 8 commits into from

Conversation

CatalinaAlbornoz
Copy link
Contributor

@CatalinaAlbornoz CatalinaAlbornoz commented Jan 21, 2025

Title:
IQPopt: Fast optimization of IQP circuits in JAX

Summary:
We created a new package that simulates a specific class of quantum circuits extremely fast. This package can be used for optimization tasks like generative modeling for a large amount of qubits.

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? Promote a new package created and implemented in a future paper.

  • AUDIENCE — Who is this for? Quantum Machine Learning researchers, beginners in quantum computing.

  • KEYWORDS — What words should be included in the marketing post? Quantum Machine Learning, IQP circuits, Optimization, Quantum Computing

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

  • Tutorial
  • Demo
  • How-to

[sc-75586]

**Title:**
IQPopt: Fast optimization of IQP circuits in JAX

**Summary:**
We created a new package that simulates a specific class of quantum
circuits extremely fast. This package can be used for optimization tasks
like generative modeling for a large amount of qubits.

**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?
Promote a new package created and implemented in a future paper.


* AUDIENCE — Who is this for?
Quantum Machine Learning researchers, beginners in quantum computing.

* KEYWORDS — What words should be included in the marketing post?
Quantum Machine Learning, IQP circuits, Optimization, Quantum Computing

* Which of the following types of documentation is most similar to your
file?
(more details
[here](https://www.notion.so/xanaduai/Different-kinds-of-documentation-69200645fe59442991c71f9e7d8a77f8))
    
- [X] 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!

@CatalinaAlbornoz CatalinaAlbornoz marked this pull request as ready for review January 21, 2025 19:11
@CatalinaAlbornoz CatalinaAlbornoz added the ci:build-all-qml-demos Build all the Demos for this Pull Request label Jan 21, 2025
Copy link
Contributor Author

@CatalinaAlbornoz CatalinaAlbornoz left a comment

Choose a reason for hiding this comment

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

Just changed the author to test if the demo builds

demonstrations/tutorial_iqpopt.metadata.json Outdated Show resolved Hide resolved
demonstrations/tutorial_iqpopt.py Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 21, 2025

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

  • Pull Request ID: 1309
  • Deployment SHA: 93faa2dfbee27cf791fb061d6b70aadf0cb2b587
    (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.

Great demo! Just some copy changes and some clarifications needed.

I think the last section could use a little bit more explanation of the concepts and formulas, it does seem a bit rushed

@@ -0,0 +1,32 @@
{
"title": "IQPopt: Fast optimization of IQP circuits in JAX",
Copy link
Collaborator

Choose a reason for hiding this comment

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

May I suggest a change in the title? The reason is that people will not find this through search easily (not SEO friendly). How about: "Fast optimization of Instantaneous Quantum Polynomial Circuits."
Generally we don't want to use acronym in titles. If IQP is a super well-known acronym in the community, we could do
"Fast optimization of IQP circuits"

"uri": "/_static/demo_thumbnails/regular_demo_thumbnails/thumbnail_iqpopt.png"
}
],
"seoDescription": "Showing how to use the package IQPopt and optimize IQP circuits really fast.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This has to be more SEO-friendly as well. How about: "Learn how to speed up the optimization of Instantaneous Quantum Polynomial (IQP) circuits using the IQOpt package."

Comment on lines +4 to +6
Instantaneous Quantum Polynomial (IQP) circuits are a class of circuits that are expected to be hard
to sample from using classical computers [2]. In this demo we take a look at the pacakge IQPopt [#Recio]_,
which shows that despite this, such circuits can still be optimized efficiently!
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Instantaneous Quantum Polynomial (IQP) circuits are a class of circuits that are expected to be hard
to sample from using classical computers [2]. In this demo we take a look at the pacakge IQPopt [#Recio]_,
which shows that despite this, such circuits can still be optimized efficiently!
Instantaneous Quantum Polynomial (IQP) circuits are a class of quantum circuits that are expected to be hard
to sample from using classical computers [2]. In this demo we take a look at the pacakge IQPopt [#Recio]_,
which shows that despite this, such circuits can still be optimized efficiently!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Add reference [2].

:width: 70%
:target: javascript:void(0)
:alt: IQP circuit optimization

Copy link
Collaborator

Choose a reason for hiding this comment

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

Update figure

:width: 70%
:target: javascript:void(0)
:alt: IQP circuit optimization

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
..
Figure 1: IQP circuit optimization

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is how the captions are done.


######################################################################
# As we can see the trained circuit closely resembles the ground truth distribution. Although we won't
# cover it in this demo, the pacakge also contains tools to evaluate generative models and invtesigate
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# cover it in this demo, the pacakge also contains tools to evaluate generative models and invtesigate
# cover it in this demo, the package also contains tools to evaluate generative models and investigate

# cover it in this demo, the pacakge also contains tools to evaluate generative models and invtesigate
# model dropping via the Kernel Generalized Empirical Likelikood.
#
# As a final takeaway, we remark that IQPopt is perhaps the only tool for researchers analyze large
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# As a final takeaway, we remark that IQPopt is perhaps the only tool for researchers analyze large
# As a final takeaway, we remark that IQPopt is perhaps the only tool for researchers to analyze large

#
# [8] Suman Ravuri, Mélanie Rey, Shakir Mohamed, Marc Peter Deisenroth, "Understanding Deep Generative
# Models with Generalized Empirical Likelihoods"
#
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update all references here and in text

],
"dateOfPublication": "2024-12-12T00:00:00+00:00",
"dateOfLastModification": "2025-01-16T00:00:00+00:00",
"categories": [
Copy link
Collaborator

Choose a reason for hiding this comment

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

tk

{
"type": "thumbnail",
"uri": "/_static/demo_thumbnails/regular_demo_thumbnails/thumbnail_iqpopt.png"
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

tk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:build-all-qml-demos Build all the Demos for this Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants