From b6a17a1b52626bfed38d9c07996810c8aac81735 Mon Sep 17 00:00:00 2001 From: Mudit Pandey Date: Fri, 18 Oct 2024 15:56:12 -0400 Subject: [PATCH] Merge master into dev (#1243) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps used for this merge: 1. Create new branch from `dev` 2. Merge `master` into that branch 3. Open PR --------- Co-authored-by: Jack Brown Co-authored-by: Ivana Kurečić --- demonstrations/quantum_volume.metadata.json | 4 +- demonstrations/quantum_volume.py | 5 -- .../tutorial_barren_plateaus.metadata.json | 4 +- .../tutorial_classical_shadows.metadata.json | 4 +- ..._data_reuploading_classifier.metadata.json | 4 +- .../tutorial_eqnn_force_field.metadata.json | 4 +- .../tutorial_haar_measure.metadata.json | 4 +- demonstrations/tutorial_haar_measure.py | 6 +- ...implicit_diff_susceptibility.metadata.json | 4 +- .../tutorial_unitary_designs.metadata.json | 4 +- demonstrations/tutorial_unitary_designs.py | 6 +- poetry.lock | 58 ++++++++++--------- pyproject.toml | 2 +- 13 files changed, 51 insertions(+), 58 deletions(-) diff --git a/demonstrations/quantum_volume.metadata.json b/demonstrations/quantum_volume.metadata.json index 5a6a18c13e..9e45b3ab88 100644 --- a/demonstrations/quantum_volume.metadata.json +++ b/demonstrations/quantum_volume.metadata.json @@ -2,11 +2,11 @@ "title": "Quantum volume", "authors": [ { - "id": "olivia_di_matteo" + "username": "glassnotes" } ], "dateOfPublication": "2020-12-15T00:00:00+00:00", - "dateOfLastModification": "2024-10-07T00:00:00+00:00", + "dateOfLastModification": "2024-10-11T00:00:00+00:00", "categories": [ "Quantum Hardware", "Quantum Computing" diff --git a/demonstrations/quantum_volume.py b/demonstrations/quantum_volume.py index 3f696645da..7dc9e43f48 100644 --- a/demonstrations/quantum_volume.py +++ b/demonstrations/quantum_volume.py @@ -888,8 +888,3 @@ def heavy_output_set(m, probs): # and Operating Systems (pp. 1001–1014) # (2019). `__ New York, NY, # USA: Association for Computing Machinery. -# -# -# About the author -# ---------------- -# .. include:: ../_static/authors/olivia_di_matteo.txt \ No newline at end of file diff --git a/demonstrations/tutorial_barren_plateaus.metadata.json b/demonstrations/tutorial_barren_plateaus.metadata.json index aeba0c1834..9226215d4c 100644 --- a/demonstrations/tutorial_barren_plateaus.metadata.json +++ b/demonstrations/tutorial_barren_plateaus.metadata.json @@ -2,11 +2,11 @@ "title": "Barren plateaus in quantum neural networks", "authors": [ { - "id": "shahnawaz_ahmed" + "username": "quantshah" } ], "dateOfPublication": "2019-10-11T00:00:00+00:00", - "dateOfLastModification": "2024-10-07T00:00:00+00:00", + "dateOfLastModification": "2024-10-15T00:00:00+00:00", "categories": [ "Optimization" ], diff --git a/demonstrations/tutorial_classical_shadows.metadata.json b/demonstrations/tutorial_classical_shadows.metadata.json index c25ea6792d..7528e97b57 100644 --- a/demonstrations/tutorial_classical_shadows.metadata.json +++ b/demonstrations/tutorial_classical_shadows.metadata.json @@ -2,14 +2,14 @@ "title": "Classical shadows", "authors": [ { - "id": "roeland_wiersema" + "username": "therooler" }, { "id": "brian_doolittle" } ], "dateOfPublication": "2021-06-14T00:00:00+00:00", - "dateOfLastModification": "2024-10-07T00:00:00+00:00", + "dateOfLastModification": "2024-10-14T00:00:00+00:00", "categories": [ "Algorithms" ], diff --git a/demonstrations/tutorial_data_reuploading_classifier.metadata.json b/demonstrations/tutorial_data_reuploading_classifier.metadata.json index bc8f17bc73..74a9b07dfc 100644 --- a/demonstrations/tutorial_data_reuploading_classifier.metadata.json +++ b/demonstrations/tutorial_data_reuploading_classifier.metadata.json @@ -2,11 +2,11 @@ "title": "Data-reuploading classifier", "authors": [ { - "id": "shahnawaz_ahmed" + "username": "quantshah" } ], "dateOfPublication": "2019-10-11T00:00:00+00:00", - "dateOfLastModification": "2024-10-07T00:00:00+00:00", + "dateOfLastModification": "2024-10-15T00:00:00+00:00", "categories": [ "Quantum Machine Learning" ], diff --git a/demonstrations/tutorial_eqnn_force_field.metadata.json b/demonstrations/tutorial_eqnn_force_field.metadata.json index f4d7cb8b0a..8a01021832 100644 --- a/demonstrations/tutorial_eqnn_force_field.metadata.json +++ b/demonstrations/tutorial_eqnn_force_field.metadata.json @@ -2,14 +2,14 @@ "title": "Symmetry-invariant quantum machine learning force fields", "authors": [ { - "id": "oriel_kiss" + "username": "orielkiss" }, { "id": "isabel_nha_minh_le" } ], "dateOfPublication": "2024-03-12T00:00:00+00:00", - "dateOfLastModification": "2024-10-07T00:00:00+00:00", + "dateOfLastModification": "2024-10-15T00:00:00+00:00", "categories": [ "Quantum Machine Learning", "Quantum Chemistry" diff --git a/demonstrations/tutorial_haar_measure.metadata.json b/demonstrations/tutorial_haar_measure.metadata.json index 97b58dacbf..dcab9a8c89 100644 --- a/demonstrations/tutorial_haar_measure.metadata.json +++ b/demonstrations/tutorial_haar_measure.metadata.json @@ -2,11 +2,11 @@ "title": "Understanding the Haar measure", "authors": [ { - "id": "olivia_di_matteo" + "username": "glassnotes" } ], "dateOfPublication": "2021-03-22T00:00:00+00:00", - "dateOfLastModification": "2024-10-07T00:00:00+00:00", + "dateOfLastModification": "2024-10-11T00:00:00+00:00", "categories": [ "Quantum Machine Learning", "Quantum Computing" diff --git a/demonstrations/tutorial_haar_measure.py b/demonstrations/tutorial_haar_measure.py index 30856038e8..5807b5ab34 100644 --- a/demonstrations/tutorial_haar_measure.py +++ b/demonstrations/tutorial_haar_measure.py @@ -809,8 +809,4 @@ def qr_haar_random_unitary(): # Z. Holmes, K. Sharma, M. Cerezo, and P. J. Coles (2021) "Connecting ansatz # expressibility to gradient magnitudes and barren plateaus". (`arXiv # `__) -# -# -# About the author -# ---------------- -# .. include:: ../_static/authors/olivia_di_matteo.txt \ No newline at end of file +# \ No newline at end of file diff --git a/demonstrations/tutorial_implicit_diff_susceptibility.metadata.json b/demonstrations/tutorial_implicit_diff_susceptibility.metadata.json index a336b36d71..14a4c5e601 100644 --- a/demonstrations/tutorial_implicit_diff_susceptibility.metadata.json +++ b/demonstrations/tutorial_implicit_diff_susceptibility.metadata.json @@ -2,14 +2,14 @@ "title": "Implicit differentiation of variational quantum algorithms", "authors": [ { - "id": "shahnawaz_ahmed" + "username": "quantshah" }, { "id": "juan_felipe_carrasquilla_alvarez" } ], "dateOfPublication": "2022-11-28T00:00:00+00:00", - "dateOfLastModification": "2024-10-07T00:00:00+00:00", + "dateOfLastModification": "2024-10-15T00:00:00+00:00", "categories": [ "Optimization" ], diff --git a/demonstrations/tutorial_unitary_designs.metadata.json b/demonstrations/tutorial_unitary_designs.metadata.json index d97b3337e7..927e0b2694 100644 --- a/demonstrations/tutorial_unitary_designs.metadata.json +++ b/demonstrations/tutorial_unitary_designs.metadata.json @@ -2,11 +2,11 @@ "title": "Unitary designs", "authors": [ { - "id": "olivia_di_matteo" + "username": "glassnotes" } ], "dateOfPublication": "2021-09-07T00:00:00+00:00", - "dateOfLastModification": "2024-10-07T00:00:00+00:00", + "dateOfLastModification": "2024-10-11T00:00:00+00:00", "categories": [ "Quantum Machine Learning", "Quantum Computing" ], diff --git a/demonstrations/tutorial_unitary_designs.py b/demonstrations/tutorial_unitary_designs.py index 07cb0290cb..828a33156e 100644 --- a/demonstrations/tutorial_unitary_designs.py +++ b/demonstrations/tutorial_unitary_designs.py @@ -737,8 +737,4 @@ def null_postprocessing_fn(results): # M. Gaeta, O. Di Matteo, A. B. Klimov, and H. de Guise (2014) *Discrete phase-space # approach to mutually orthogonal Latin squares*. J. Phys. A: Math. Theor. 47 (43) 435303. # `(arXiv) `__. -# -# -# About the author -# ---------------- -# .. include:: ../_static/authors/olivia_di_matteo.txt \ No newline at end of file +# \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index c6b12bb177..bdfde6b0c9 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1316,13 +1316,6 @@ files = [ {file = "dm_tree-0.1.8-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fa42a605d099ee7d41ba2b5fb75e21423951fd26e5d50583a00471238fb3021d"}, {file = "dm_tree-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:83b7764de0d855338abefc6e3ee9fe40d301668310aa3baea3f778ff051f4393"}, {file = "dm_tree-0.1.8-cp311-cp311-win_amd64.whl", hash = "sha256:a5d819c38c03f0bb5b3b3703c60e4b170355a0fc6b5819325bf3d4ceb3ae7e80"}, - {file = "dm_tree-0.1.8-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:ea9e59e0451e7d29aece402d9f908f2e2a80922bcde2ebfd5dcb07750fcbfee8"}, - {file = "dm_tree-0.1.8-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:94d3f0826311f45ee19b75f5b48c99466e4218a0489e81c0f0167bda50cacf22"}, - {file = "dm_tree-0.1.8-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:435227cf3c5dc63f4de054cf3d00183790bd9ead4c3623138c74dde7f67f521b"}, - {file = "dm_tree-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09964470f76a5201aff2e8f9b26842976de7889300676f927930f6285e256760"}, - {file = "dm_tree-0.1.8-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:75c5d528bb992981c20793b6b453e91560784215dffb8a5440ba999753c14ceb"}, - {file = "dm_tree-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0a94aba18a35457a1b5cd716fd7b46c5dafdc4cf7869b4bae665b91c4682a8e"}, - {file = "dm_tree-0.1.8-cp312-cp312-win_amd64.whl", hash = "sha256:96a548a406a6fb15fe58f6a30a57ff2f2aafbf25f05afab00c8f5e5977b6c715"}, {file = "dm_tree-0.1.8-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8c60a7eadab64c2278861f56bca320b2720f163dca9d7558103c3b77f2416571"}, {file = "dm_tree-0.1.8-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:af4b3d372f2477dcd89a6e717e4a575ca35ccc20cc4454a8a4b6f8838a00672d"}, {file = "dm_tree-0.1.8-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:de287fabc464b8734be251e46e06aa9aa1001f34198da2b6ce07bd197172b9cb"}, @@ -2183,7 +2176,6 @@ description = "Python AST that abstracts the underlying Python version" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" files = [ - {file = "gast-0.6.0-py3-none-any.whl", hash = "sha256:52b182313f7330389f72b069ba00f174cfe2a06411099547288839c6cbafbd54"}, {file = "gast-0.6.0.tar.gz", hash = "sha256:88fc5300d32c7ac6ca7b515310862f71e6fdf2c029bbec7c66c0f5dd47b6b1fb"}, ] @@ -5563,29 +5555,43 @@ tests = ["coverage", "pytest", "pytest-cov"] [[package]] name = "qulacs" -version = "0.1.10.1" +version = "0.6.1" description = "Quantum circuit simulator for research" optional = false python-versions = "*" files = [ - {file = "Qulacs-0.1.10.1-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:661a4ffa036867c742c4e14539f036179c25970bec499c84c0cea6489297fdfc"}, - {file = "Qulacs-0.1.10.1-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:34bb1f2de70bd4fbed452e81215ea6fabb228f3c2046f7913b6ae97b9c02c3f5"}, - {file = "Qulacs-0.1.10.1-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:3c3d3e30c5982954d9449fb5403f7bd448ad8b1f480b6a989afc02855aa8b18b"}, - {file = "Qulacs-0.1.10.1-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:50b66546f38acf0746a8057f416e1d087205db0edf4127db5d6b0d05541962e9"}, - {file = "Qulacs-0.1.10.1-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:89bdb2ed6c62c6f3c02cea1f6296877967631b8d3511be1f85287b674e178226"}, - {file = "Qulacs-0.1.10.1-cp35-cp35m-win_amd64.whl", hash = "sha256:96c948587a83a6f2c42686f7f684b61d028eb70be64d271e807ddad94e083336"}, - {file = "Qulacs-0.1.10.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:6120f10a5553d713f18d756eae2d76c7c2334bf2c9e1405589d6992a792e6c18"}, - {file = "Qulacs-0.1.10.1-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:40ea157a9bf1975e79c67d4e314f89a138ff60a751ede1e82118ec68ec1eccbc"}, - {file = "Qulacs-0.1.10.1-cp36-cp36m-win_amd64.whl", hash = "sha256:5e1d8dc0c01c455a5a84d163a7ecfc8476e219ea5a31a1df387231fcce870ff1"}, - {file = "Qulacs-0.1.10.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:5db539ac42b8b33d3b42cc5f759e82d1fff2e9f6d61a365da611083b048fd487"}, - {file = "Qulacs-0.1.10.1-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:68510e18f9c9024408a9a7c0adfc79f8d8eabe79610719f2247989010149fe42"}, - {file = "Qulacs-0.1.10.1-cp37-cp37m-win_amd64.whl", hash = "sha256:ec687a6e1dc253e26939b068322d6f717f307108f7f5037401d0d98509781362"}, - {file = "Qulacs-0.1.10.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:7a17363d1992d299d5d71b14d47d603316c57404bb9699a1893d3fc3a3b0b058"}, - {file = "Qulacs-0.1.10.1-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:621e84f7efbee9b76ee047066cb94cf328ec94fbcab789ac47ebed1fa5a130c5"}, - {file = "Qulacs-0.1.10.1-cp38-cp38-win_amd64.whl", hash = "sha256:cf8cd499d9c2fa99ef79e6f800e24cba46d2a1e56a3ce30df288a29deb6458a9"}, - {file = "Qulacs-0.1.10.1.tar.gz", hash = "sha256:d4313b1792b55bbbfea88ce6291185ed48f9da712418aa9f9931c1c8a8226e6c"}, + {file = "qulacs-0.6.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f1f1951e9cb55e11ded47b7a652bb03b06f986ba19e6c2ea76b40b159f297f62"}, + {file = "qulacs-0.6.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:7b922972a7b9a827c16dc9e2c14478f276ead2eacad7d545db03ab795854b94f"}, + {file = "qulacs-0.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a6892d39d46e1b5bd89def6cb96e67316abcb04ba1e1a5d894a2d7a155c0eb27"}, + {file = "qulacs-0.6.1-cp310-cp310-win_amd64.whl", hash = "sha256:df0f0d0fe6f53ea628960ab32239ba0dd92a5e4b88a2936a24442fd64e58e515"}, + {file = "qulacs-0.6.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:fea830bebadd34f07fb35680c11e7cd712343ea8dbead0d5ef417c70605a4ea4"}, + {file = "qulacs-0.6.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4807a134e00a9d6f20c488036933ad7c570ba07bcb813c8afd2b06f60c8c98a1"}, + {file = "qulacs-0.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ea1c78fda2830a52702cffb7f22b3900282329ac5dcfa7c947dd00b0b126ba5"}, + {file = "qulacs-0.6.1-cp311-cp311-win_amd64.whl", hash = "sha256:dc18d30a7e809786df0007a7bd7a918f53cc60369ae19a671cb55b65ea5056e5"}, + {file = "qulacs-0.6.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:3f29acc7b86913612ba2b39241b365e0dea9925a4929998dfc2eb94e7d43b81e"}, + {file = "qulacs-0.6.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:69f9ce7c836e0b755a158a4cc392b49ea414c6eb37b109ec3149d7b1f13005dc"}, + {file = "qulacs-0.6.1-cp37-cp37m-win_amd64.whl", hash = "sha256:536212f0742efa49a6fc91c4c3349b48e669d47f7881a90f88c491d19ef7e732"}, + {file = "qulacs-0.6.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:17142f904cb62f688f76feee07742072bfb9817992dbe5fa73da667e04425c55"}, + {file = "qulacs-0.6.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:4c50733917f1b01b11e6be177255fab1be7af5563984f9c06827d038b4af4585"}, + {file = "qulacs-0.6.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4bd699a68034a2a29e153d30735b561f57f0796bb4d30b2576d1cce1671e8d0b"}, + {file = "qulacs-0.6.1-cp38-cp38-win_amd64.whl", hash = "sha256:7e251102e157f36ade2b16ff34d65d55515f88ca0bf5be0a93f50232fd08eb97"}, + {file = "qulacs-0.6.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b553c82db86e9e972b7cfdb816276123cc15aa4877375e8be14c48ec381109aa"}, + {file = "qulacs-0.6.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:60ed40efbeed8141ca171fceefbfa581d93a961601e4053b731262900724e383"}, + {file = "qulacs-0.6.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06aaf7a7a01e6179a0362e170c923ac5834b8d0c5433a677dbcfed9aa9fdff02"}, + {file = "qulacs-0.6.1-cp39-cp39-win_amd64.whl", hash = "sha256:331a8084ed08b0e356149e51a756afd6c628fceb070d64c500d2c657351de909"}, + {file = "qulacs-0.6.1.tar.gz", hash = "sha256:f958f26de98a37c519ff092167d440931a3ee77f8f628e2ab7441fe15322c28a"}, ] +[package.dependencies] +numpy = "*" +scipy = "*" + +[package.extras] +ci = ["black", "flake8", "isort", "mypy", "openfermion", "pybind11-stubgen", "pytest"] +dev = ["black", "flake8", "isort", "mypy", "openfermion", "pybind11-stubgen", "pytest"] +doc = ["breathe (==4.33.*)", "exhale (==0.3.*)", "ipykernel (==6.17.*)", "myst-parser (==0.18.*)", "nbsphinx (==0.8.*)", "sphinx (==4.5.0)", "sphinx-autoapi (==2.0.*)", "sphinx-copybutton (==0.5.*)", "sphinx-rtd-theme (==1.0.*)"] +test = ["openfermion"] + [[package]] name = "qutip" version = "4.7.3" @@ -8003,4 +8009,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "~3.10.0" -content-hash = "5a2bc15c89199f5dcf3052e6859936688774e643db3da23edec36ef9d1aed534" +content-hash = "2e6d9c85baec80b413760cf4fb5e42edd02a04c324c7d0bf100ec3f61ee95df2" diff --git a/pyproject.toml b/pyproject.toml index 008a413867..f396be3bc4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,7 +93,7 @@ torchvision = [ scikit-learn = { version = "1.3.0", markers = "platform_machine == 'x86_64'" } tensorflow = { version = "2.14.1", markers = "platform_machine == 'x86_64'" } flamingpy = { version = ">=0.10.1b1", markers = "platform_machine == 'x86_64'" } -qulacs = { version = "0.1.10.1", markers = "platform_machine == 'x86_64'" } +qulacs = { version = "0.6.1", markers = "platform_machine == 'x86_64'" } # The following packages are only installed on MacOS for compatibility tensorflow-macos = { version = "2.14.1", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }