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

Add QRAO tutorial #91

Merged
merged 6 commits into from
Oct 20, 2024
Merged

Add QRAO tutorial #91

merged 6 commits into from
Oct 20, 2024

Conversation

Jacomichi
Copy link
Collaborator

Change

  • add QRAO tutorial
  • fix Hardware efficient ansatz for usability

Desciption

I add QRAO tutorial.
The purpose of this tutorial is to explain how to use QRAO related Converter and ansatz.
I modified create_efficient_su2_circuit to show up parameter the subscript natutal when you plot the Quantum circuit.

Copy link
Contributor

@ahao27 ahao27 left a comment

Choose a reason for hiding this comment

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

I have left the comments (mostly typo), please check

"| $(3,2,p)$-QRAO [2] | [`QRAC32Converter`](https://jij-inc.github.io/Qamomile/autoapi/core/converters/qrao/qrao32/index.html) |\n",
"| Space Compression Ratio Preserving QRAO [2] | [`QRACSpaceEfficientConverter`](https://jij-inc.github.io/Qamomile/autoapi/core/converters/qrao/qrao_space_efficient/index.html) |\n",
"\n",
"The API documentation explains how each algorithm construct relaxed Hamiltonian."
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: constructs a

"cell_type": "markdown",
"metadata": {},
"source": [
"You can also crete QAOA Hamiltonian using `QAOAConverter`.\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: create

"cell_type": "markdown",
"metadata": {},
"source": [
"The compression ratio of this problem is "
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe combine with the next cell so you just need

Suggested change
"The compression ratio of this problem is "
print(" The compression ratio of this problem is Compression ratio:", qaoa_hamiltonian.num_qubits / qrao31_hamiltonian.num_qubits)

@Jacomichi Jacomichi requested a review from ahao27 October 18, 2024 01:37
Copy link
Contributor

@ahao27 ahao27 left a comment

Choose a reason for hiding this comment

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

LGTM

@yuyamashiro yuyamashiro merged commit b9ecbe7 into main Oct 20, 2024
6 checks passed
@yuyamashiro yuyamashiro deleted the feature/qrao_tutorial branch October 20, 2024 08:48
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.

3 participants