-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this 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
docs/tutorial/qrao_tutorial.ipynb
Outdated
"| $(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." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: constructs a
docs/tutorial/qrao_tutorial.ipynb
Outdated
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"You can also crete QAOA Hamiltonian using `QAOAConverter`.\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: create
docs/tutorial/qrao_tutorial.ipynb
Outdated
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"The compression ratio of this problem is " |
There was a problem hiding this comment.
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
"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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Change
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.