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

Residency demo #1178

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7db83ab
add initial draft for qcbm demo
EmilianoG-byte May 8, 2024
ebae9bd
add structure to tutorial qcbm
EmilianoG-byte May 9, 2024
40bc4bf
add ansatz and qc sections in qcbm tutorial
EmilianoG-byte May 9, 2024
d9eddc1
Added code to the demo
Shiro-Raven May 9, 2024
67fc8f8
Merge branch 'master' into residency_demo
Shiro-Raven May 9, 2024
c755ccc
merge code changes
EmilianoG-byte May 9, 2024
72cb195
solve merge conflicts, erase extra information
EmilianoG-byte May 9, 2024
23b492a
fix image path in qcbm
EmilianoG-byte May 9, 2024
090dce5
Fix formatting of the code section
Shiro-Raven May 9, 2024
0d3a0c5
fix math and add figures
EmilianoG-byte May 10, 2024
9542bc2
improve images on qcbm tutorial
EmilianoG-byte May 10, 2024
fbed251
update references format on qcbm tutorial
EmilianoG-byte May 10, 2024
51dbb13
minor fixes to math and spacing
Shiro-Raven May 10, 2024
09b795c
missing pluralization
Shiro-Raven May 10, 2024
21af5c1
fix qc image size in qcbm tutorial
EmilianoG-byte May 10, 2024
0169315
update images of ansatze
EmilianoG-byte May 10, 2024
2809a55
add paragraphs around mps and ttn ansatze
EmilianoG-byte May 10, 2024
daa3aac
Added metadata for QCBM TN demo
Shiro-Raven May 10, 2024
b599640
minor changes to the image sizes
Shiro-Raven May 10, 2024
9316cab
Applied black with the correct line length
Shiro-Raven May 10, 2024
f98e20e
Update demonstrations/tutorial_qcbm.py
EmilianoG-byte May 10, 2024
f18b228
Update demonstrations/tutorial_qcbm.py
EmilianoG-byte May 10, 2024
2552ea6
Update demonstrations/tutorial_qcbm.py
EmilianoG-byte May 10, 2024
0ea9696
Apply suggestions from code review
EmilianoG-byte May 10, 2024
c74804c
add suggestion of phrasing on wavefunctions
EmilianoG-byte May 10, 2024
6b9bcb3
move comments out of functions
EmilianoG-byte May 10, 2024
26cd836
added faster jax-based code and more iterations
Shiro-Raven May 11, 2024
54d483b
Added conclusion, fixed several typos and math render error.
Shiro-Raven May 11, 2024
c835fc2
rename python and json files to avoid conflicts on master
EmilianoG-byte Aug 5, 2024
b0fa4af
Merge branch 'master' into residency_demo
EmilianoG-byte Aug 5, 2024
cb62f8d
update dateofpublication
EmilianoG-byte Aug 5, 2024
78b5460
add qml-benchmarks to dependecies
EmilianoG-byte Aug 5, 2024
5286491
update lockfile
Shiro-Raven Aug 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions demonstrations/tutorial_qcbm_tn.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"title": "QCBM with Tensor Networks Ansatz",
"authors": [
{
"id": "ahmed_darwish"
},
{
"id": "emiliano_godinez"
}
],
"dateOfPublication": "2024-05-10T00:00:00+00:00",
"dateOfLastModification": "2024-05-10T00:00:00+00:00",
"categories": [
"Quantum Machine Learning"
],
"tags": [],
"previewImages": [
{
"type": "thumbnail",
"uri": "/_static/demonstration_assets/external_libs/thumbnail_tutorial_external_libs.png"
},
{
"type": "large_thumbnail",
"uri": "/_static/demonstration_assets/qcbm_tensor_network/ttn_ansatz.png"
}
],
"seoDescription": "Learn how to implement a QCBM with Tensor Network ansatz.",
"doi": "",
"canonicalURL": "/qml/demos/tutorial_qcbm",
"references": [],
"basedOnPapers": [],
"referencedByPapers": [],
"relatedContent": [
{
"type": "demonstration",
"id": "tutorial_quantum_gans",
"weight": 1.0
},
{
"type": "demonstration",
"id": "tutorial_QGAN",
"weight": 1.0
}
]
}
381 changes: 381 additions & 0 deletions demonstrations/tutorial_qcbm_tn.py

Large diffs are not rendered by default.

35 changes: 31 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ qiskit = ">=1.0.0"
qiskit-aer = ">=0.14.0"
sphinxcontrib-applehelp = "1.0.8"
sphinx-gallery = "<=0.12.2"
qml-benchmarks = { git = "https://github.com/XanaduAI/qml-benchmarks.git", tag = "v0.1" }


# Install a difference version of torch from PyPI as the one from PyTorch repo is not compatible with MacOS
Expand Down
1 change: 1 addition & 0 deletions test-results/sphinx-gallery/junit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><testsuite errors="0" failures="0" name="sphinx-gallery" skipped="0" tests="1" time="58.46732306480408"><testcase classname="tutorial_qcbm" file="demonstrations/tutorial_qcbm.py" line="1" name="QCBM with Tensor Networks Ansatz" time="58.46732306480408"></testcase></testsuite>
Loading