From 37f18f68f92f7814827d6312d73faddbd5ec3bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=C2=A0St=C4=99ch=C5=82y?= Date: Tue, 24 Sep 2024 13:18:22 -0400 Subject: [PATCH] Update Bartiq demo to work with version 0.6.0 (#1409) * Update Bartiq demo to work with version 0.6.0 * Clean notebook outputs * Bump qref/bartiq dependencies * re-render requirements * fix bartiq demo notebook --------- Co-authored-by: Matthew Harrigan --- dev_tools/requirements/deps/runtime.txt | 4 +- dev_tools/requirements/envs/dev.env.txt | 108 +++++++++--------- dev_tools/requirements/envs/docs.env.txt | 74 ++++++------ dev_tools/requirements/envs/format.env.txt | 68 +++++------ dev_tools/requirements/envs/pip-tools.env.txt | 2 +- dev_tools/requirements/envs/pylint.env.txt | 78 ++++++------- dev_tools/requirements/envs/pytest.env.txt | 80 ++++++------- dev_tools/requirements/envs/runtime.env.txt | 68 +++++------ qualtran/qref_interop/bartiq_demo.ipynb | 74 +++++------- 9 files changed, 269 insertions(+), 287 deletions(-) diff --git a/dev_tools/requirements/deps/runtime.txt b/dev_tools/requirements/deps/runtime.txt index f6ee834cb..e1311b35b 100644 --- a/dev_tools/requirements/deps/runtime.txt +++ b/dev_tools/requirements/deps/runtime.txt @@ -30,8 +30,8 @@ qsharp qsharp-widgets # qref bartiq interop -qref>=0.7.0 -bartiq>=0.5.1 +qref==0.7.0 +bartiq==0.6.0 # serialization protobuf diff --git a/dev_tools/requirements/envs/dev.env.txt b/dev_tools/requirements/envs/dev.env.txt index 78140912f..bd383f47b 100644 --- a/dev_tools/requirements/envs/dev.env.txt +++ b/dev_tools/requirements/envs/dev.env.txt @@ -12,7 +12,7 @@ alabaster==1.0.0 # via sphinx annotated-types==0.7.0 # via pydantic -anyio==4.4.0 +anyio==4.5.0 # via # httpx # jupyter-server @@ -54,7 +54,7 @@ babel==2.16.0 # sphinx backports-tarfile==1.2.0 # via jaraco-context -bartiq==0.5.1 +bartiq==0.6.0 # via -r deps/runtime.txt beautifulsoup4==4.12.3 # via @@ -66,16 +66,16 @@ bleach==6.1.0 # via nbconvert blinker==1.8.2 # via flask -build==1.2.1 +build==1.2.2 # via pip-tools -cachetools==5.4.0 +cachetools==5.5.0 # via -r deps/runtime.txt -certifi==2024.7.4 +certifi==2024.8.30 # via # httpcore # httpx # requests -cffi==1.17.0 +cffi==1.17.1 # via # argon2-cffi-bindings # cryptography @@ -95,19 +95,19 @@ comm==0.2.2 # via # ipykernel # ipywidgets -contourpy==1.2.1 +contourpy==1.3.0 # via matplotlib cotengra==0.6.2 # via quimb coverage[toml]==7.6.1 # via pytest-cov -cryptography==43.0.0 +cryptography==43.0.1 # via secretstorage cycler==0.12.1 # via matplotlib cytoolz==0.12.3 # via quimb -dash==2.17.1 +dash==2.18.1 # via -r deps/runtime.txt dash-core-components==2.0.0 # via dash @@ -142,11 +142,11 @@ exceptiongroup==1.2.2 # pytest execnet==2.1.1 # via pytest-xdist -executing==2.0.1 +executing==2.1.0 # via stack-data fastjsonschema==2.20.0 # via nbformat -filelock==3.15.4 +filelock==3.16.1 # via # -r deps/pylint.txt # -r deps/pytest.txt @@ -163,11 +163,11 @@ fxpmath==0.4.9 # via -r deps/runtime.txt graphviz==0.20.3 # via qref -greenlet==3.0.3 +greenlet==3.1.0 # via sqlalchemy -grpcio==1.65.4 +grpcio==1.66.1 # via grpcio-tools -grpcio-tools==1.65.4 +grpcio-tools==1.66.1 # via -r deps/packaging.txt h11==0.14.0 # via httpcore @@ -177,9 +177,9 @@ h5py==3.11.0 # pyscf httpcore==1.0.5 # via httpx -httpx==0.27.0 +httpx==0.27.2 # via jupyterlab -idna==3.7 +idna==3.10 # via # anyio # httpx @@ -187,7 +187,7 @@ idna==3.7 # requests imagesize==1.4.1 # via sphinx -importlib-metadata==8.2.0 +importlib-metadata==8.5.0 # via # dash # jupyter-cache @@ -201,13 +201,13 @@ ipykernel==6.29.5 # -r deps/pytest.txt # jupyterlab # myst-nb -ipython==8.26.0 +ipython==8.27.0 # via # -r deps/runtime.txt # ipykernel # ipywidgets # myst-nb -ipywidgets==8.1.3 +ipywidgets==8.1.5 # via # -r deps/docs.txt # -r deps/runtime.txt @@ -222,13 +222,13 @@ itsdangerous==2.2.0 # via flask jaraco-classes==3.4.0 # via keyring -jaraco-context==5.3.0 +jaraco-context==6.0.1 # via keyring jaraco-functools==4.0.2 # via keyring -jax==0.4.31 +jax==0.4.33 # via openfermion -jaxlib==0.4.31 +jaxlib==0.4.33 # via # jax # openfermion @@ -261,7 +261,7 @@ jsonschema-specifications==2023.12.1 # via jsonschema jupyter-cache==1.0.0 # via myst-nb -jupyter-client==8.6.2 +jupyter-client==8.6.3 # via # ipykernel # jupyter-server @@ -296,11 +296,11 @@ jupyterlab-server==2.27.3 # via # jupyterlab # notebook -jupyterlab-widgets==3.0.11 +jupyterlab-widgets==3.0.13 # via ipywidgets -keyring==25.3.0 +keyring==25.4.0 # via twine -kiwisolver==1.4.5 +kiwisolver==1.4.7 # via matplotlib lazy-object-proxy==1.10.0 # via astroid @@ -327,23 +327,23 @@ matplotlib-inline==0.1.7 # ipython mccabe==0.7.0 # via pylint -mdit-py-plugins==0.4.1 +mdit-py-plugins==0.4.2 # via myst-parser mdurl==0.1.2 # via markdown-it-py mistune==3.0.2 # via nbconvert -ml-dtypes==0.4.0 +ml-dtypes==0.5.0 # via # jax # jaxlib -more-itertools==10.4.0 +more-itertools==10.5.0 # via # jaraco-classes # jaraco-functools mpmath==1.3.0 # via sympy -mypy==1.11.1 +mypy==1.11.2 # via -r deps/mypy.txt mypy-extensions==1.0.0 # via @@ -386,7 +386,7 @@ networkx==3.3 # openfermion nh3==0.2.18 # via readme-renderer -notebook==7.2.1 +notebook==7.2.2 # via # -r deps/dev-tools.txt # -r deps/runtime.txt @@ -437,7 +437,7 @@ packaging==24.1 # pydata-sphinx-theme # pytest # sphinx -pandas==2.2.2 +pandas==2.2.3 # via cirq-core pandocfilters==1.5.1 # via nbconvert @@ -453,13 +453,13 @@ pip-tools==7.4.1 # via -r deps/pip-tools.txt pkginfo==1.10.0 # via twine -platformdirs==4.2.2 +platformdirs==4.3.6 # via # black # jupyter-core # pylint # virtualenv -plotly==5.23.0 +plotly==5.24.1 # via # -r deps/runtime.txt # dash @@ -469,7 +469,7 @@ prometheus-client==0.20.0 # via jupyter-server prompt-toolkit==3.0.47 # via ipython -protobuf==5.27.3 +protobuf==5.28.2 # via # -r deps/runtime.txt # grpcio-tools @@ -491,11 +491,11 @@ pure-eval==0.2.3 # via stack-data pycparser==2.22 # via cffi -pydantic==2.8.2 +pydantic==2.9.2 # via # bartiq # qref -pydantic-core==2.20.1 +pydantic-core==2.23.4 # via pydantic pydata-sphinx-theme==0.15.4 # via -r deps/docs.txt @@ -512,7 +512,7 @@ pygments==2.18.0 # sphinx pylint==2.17.7 # via -r deps/pylint.txt -pyparsing==3.1.2 +pyparsing==3.1.4 # via # bartiq # matplotlib @@ -523,14 +523,14 @@ pyproject-hooks==1.1.0 # pip-tools pyscf==2.6.2 # via openfermion -pytest==8.3.2 +pytest==8.3.3 # via # -r deps/pylint.txt # -r deps/pytest.txt # pytest-asyncio # pytest-cov # pytest-xdist -pytest-asyncio==0.23.8 +pytest-asyncio==0.24.0 # via -r deps/pytest.txt pytest-cov==5.0.0 # via -r deps/pytest.txt @@ -544,7 +544,7 @@ python-dateutil==2.9.0.post0 # pandas python-json-logger==2.0.7 # via jupyter-events -pytz==2024.1 +pytz==2024.2 # via pandas pyyaml==6.0.2 # via @@ -553,7 +553,7 @@ pyyaml==6.0.2 # myst-nb # myst-parser # tensorflow-docs -pyzmq==26.1.0 +pyzmq==26.2.0 # via # ipykernel # jupyter-client @@ -562,9 +562,9 @@ qref==0.7.0 # via # -r deps/runtime.txt # bartiq -qsharp==1.7.0 +qsharp==1.8.0 # via -r deps/runtime.txt -qsharp-widgets==1.7.0 +qsharp-widgets==1.8.0 # via -r deps/runtime.txt quimb==1.8.4 # via -r deps/runtime.txt @@ -597,13 +597,13 @@ rfc3986-validator==0.1.1 # via # jsonschema # jupyter-events -rich==13.7.1 +rich==13.8.1 # via twine rpds-py==0.20.0 # via # jsonschema # referencing -scipy==1.14.0 +scipy==1.14.1 # via # ase # cirq-core @@ -652,7 +652,7 @@ sphinxcontrib-qthelp==2.0.0 # via sphinx sphinxcontrib-serializinghtml==2.0.0 # via sphinx -sqlalchemy==2.0.32 +sqlalchemy==2.0.35 # via jupyter-cache stack-data==0.6.3 # via ipython @@ -722,9 +722,9 @@ traitlets==5.14.3 # nbformat twine==5.1.1 # via -r deps/packaging.txt -types-protobuf==5.27.0.20240626 +types-protobuf==5.27.0.20240920 # via mypy-protobuf -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 # via arrow typing-extensions==4.12.2 # via @@ -746,11 +746,11 @@ tzdata==2024.1 # via pandas uri-template==1.3.0 # via jsonschema -urllib3==2.2.2 +urllib3==2.2.3 # via # requests # twine -virtualenv==20.26.3 +virtualenv==20.26.5 # via -r deps/packaging.txt wcwidth==0.2.13 # via prompt-toolkit @@ -762,7 +762,7 @@ webencodings==0.5.1 # tinycss2 websocket-client==1.8.0 # via jupyter-server -werkzeug==3.0.3 +werkzeug==3.0.4 # via # dash # flask @@ -770,11 +770,11 @@ wheel==0.44.0 # via # -r deps/packaging.txt # pip-tools -widgetsnbextension==4.0.11 +widgetsnbextension==4.0.13 # via ipywidgets wrapt==1.16.0 # via astroid -zipp==3.20.0 +zipp==3.20.2 # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: diff --git a/dev_tools/requirements/envs/docs.env.txt b/dev_tools/requirements/envs/docs.env.txt index cb5020643..ee6cf7f2f 100644 --- a/dev_tools/requirements/envs/docs.env.txt +++ b/dev_tools/requirements/envs/docs.env.txt @@ -20,7 +20,7 @@ annotated-types==0.7.0 # via # -c envs/dev.env.txt # pydantic -anyio==4.4.0 +anyio==4.5.0 # via # -c envs/dev.env.txt # httpx @@ -72,7 +72,7 @@ babel==2.16.0 # jupyterlab-server # pydata-sphinx-theme # sphinx -bartiq==0.5.1 +bartiq==0.6.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -89,17 +89,17 @@ blinker==1.8.2 # via # -c envs/dev.env.txt # flask -cachetools==5.4.0 +cachetools==5.5.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -certifi==2024.7.4 +certifi==2024.8.30 # via # -c envs/dev.env.txt # httpcore # httpx # requests -cffi==1.17.0 +cffi==1.17.1 # via # -c envs/dev.env.txt # argon2-cffi-bindings @@ -121,7 +121,7 @@ comm==0.2.2 # -c envs/dev.env.txt # ipykernel # ipywidgets -contourpy==1.2.1 +contourpy==1.3.0 # via # -c envs/dev.env.txt # matplotlib @@ -137,7 +137,7 @@ cytoolz==0.12.3 # via # -c envs/dev.env.txt # quimb -dash==2.17.1 +dash==2.18.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -180,7 +180,7 @@ exceptiongroup==1.2.2 # -c envs/dev.env.txt # anyio # ipython -executing==2.0.1 +executing==2.1.0 # via # -c envs/dev.env.txt # stack-data @@ -208,7 +208,7 @@ graphviz==0.20.3 # via # -c envs/dev.env.txt # qref -greenlet==3.0.3 +greenlet==3.1.0 # via # -c envs/dev.env.txt # sqlalchemy @@ -220,11 +220,11 @@ httpcore==1.0.5 # via # -c envs/dev.env.txt # httpx -httpx==0.27.0 +httpx==0.27.2 # via # -c envs/dev.env.txt # jupyterlab -idna==3.7 +idna==3.10 # via # -c envs/dev.env.txt # anyio @@ -235,7 +235,7 @@ imagesize==1.4.1 # via # -c envs/dev.env.txt # sphinx -importlib-metadata==8.2.0 +importlib-metadata==8.5.0 # via # -c envs/dev.env.txt # dash @@ -246,14 +246,14 @@ ipykernel==6.29.5 # -c envs/dev.env.txt # jupyterlab # myst-nb -ipython==8.26.0 +ipython==8.27.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt # ipykernel # ipywidgets # myst-nb -ipywidgets==8.1.3 +ipywidgets==8.1.5 # via # -c envs/dev.env.txt # -r deps/docs.txt @@ -304,7 +304,7 @@ jupyter-cache==1.0.0 # via # -c envs/dev.env.txt # myst-nb -jupyter-client==8.6.2 +jupyter-client==8.6.3 # via # -c envs/dev.env.txt # ipykernel @@ -353,11 +353,11 @@ jupyterlab-server==2.27.3 # -c envs/dev.env.txt # jupyterlab # notebook -jupyterlab-widgets==3.0.11 +jupyterlab-widgets==3.0.13 # via # -c envs/dev.env.txt # ipywidgets -kiwisolver==1.4.5 +kiwisolver==1.4.7 # via # -c envs/dev.env.txt # matplotlib @@ -386,7 +386,7 @@ matplotlib-inline==0.1.7 # -c envs/dev.env.txt # ipykernel # ipython -mdit-py-plugins==0.4.1 +mdit-py-plugins==0.4.2 # via # -c envs/dev.env.txt # myst-parser @@ -443,7 +443,7 @@ networkx==3.3 # -c envs/dev.env.txt # -r deps/runtime.txt # cirq-core -notebook==7.2.1 +notebook==7.2.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -484,7 +484,7 @@ packaging==24.1 # plotly # pydata-sphinx-theme # sphinx -pandas==2.2.2 +pandas==2.2.3 # via # -c envs/dev.env.txt # cirq-core @@ -504,11 +504,11 @@ pillow==10.4.0 # via # -c envs/dev.env.txt # matplotlib -platformdirs==4.2.2 +platformdirs==4.3.6 # via # -c envs/dev.env.txt # jupyter-core -plotly==5.23.0 +plotly==5.24.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -521,7 +521,7 @@ prompt-toolkit==3.0.47 # via # -c envs/dev.env.txt # ipython -protobuf==5.27.3 +protobuf==5.28.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -548,12 +548,12 @@ pycparser==2.22 # via # -c envs/dev.env.txt # cffi -pydantic==2.8.2 +pydantic==2.9.2 # via # -c envs/dev.env.txt # bartiq # qref -pydantic-core==2.20.1 +pydantic-core==2.23.4 # via # -c envs/dev.env.txt # pydantic @@ -573,7 +573,7 @@ pygments==2.18.0 # nbconvert # pydata-sphinx-theme # sphinx -pyparsing==3.1.2 +pyparsing==3.1.4 # via # -c envs/dev.env.txt # bartiq @@ -590,7 +590,7 @@ python-json-logger==2.0.7 # via # -c envs/dev.env.txt # jupyter-events -pytz==2024.1 +pytz==2024.2 # via # -c envs/dev.env.txt # pandas @@ -602,7 +602,7 @@ pyyaml==6.0.2 # myst-nb # myst-parser # tensorflow-docs -pyzmq==26.1.0 +pyzmq==26.2.0 # via # -c envs/dev.env.txt # ipykernel @@ -613,11 +613,11 @@ qref==0.7.0 # -c envs/dev.env.txt # -r deps/runtime.txt # bartiq -qsharp==1.7.0 +qsharp==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -qsharp-widgets==1.7.0 +qsharp-widgets==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -656,7 +656,7 @@ rpds-py==0.20.0 # -c envs/dev.env.txt # jsonschema # referencing -scipy==1.14.0 +scipy==1.14.1 # via # -c envs/dev.env.txt # cirq-core @@ -721,7 +721,7 @@ sphinxcontrib-serializinghtml==2.0.0 # via # -c envs/dev.env.txt # sphinx -sqlalchemy==2.0.32 +sqlalchemy==2.0.35 # via # -c envs/dev.env.txt # jupyter-cache @@ -795,7 +795,7 @@ traitlets==5.14.3 # nbclient # nbconvert # nbformat -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 # via # -c envs/dev.env.txt # arrow @@ -822,7 +822,7 @@ uri-template==1.3.0 # via # -c envs/dev.env.txt # jsonschema -urllib3==2.2.2 +urllib3==2.2.3 # via # -c envs/dev.env.txt # requests @@ -843,16 +843,16 @@ websocket-client==1.8.0 # via # -c envs/dev.env.txt # jupyter-server -werkzeug==3.0.3 +werkzeug==3.0.4 # via # -c envs/dev.env.txt # dash # flask -widgetsnbextension==4.0.11 +widgetsnbextension==4.0.13 # via # -c envs/dev.env.txt # ipywidgets -zipp==3.20.0 +zipp==3.20.2 # via # -c envs/dev.env.txt # importlib-metadata diff --git a/dev_tools/requirements/envs/format.env.txt b/dev_tools/requirements/envs/format.env.txt index e8be0e603..3e22123c2 100644 --- a/dev_tools/requirements/envs/format.env.txt +++ b/dev_tools/requirements/envs/format.env.txt @@ -8,7 +8,7 @@ annotated-types==0.7.0 # via # -c envs/dev.env.txt # pydantic -anyio==4.4.0 +anyio==4.5.0 # via # -c envs/dev.env.txt # httpx @@ -57,7 +57,7 @@ babel==2.16.0 # via # -c envs/dev.env.txt # jupyterlab-server -bartiq==0.5.1 +bartiq==0.6.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -77,17 +77,17 @@ blinker==1.8.2 # via # -c envs/dev.env.txt # flask -cachetools==5.4.0 +cachetools==5.5.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -certifi==2024.7.4 +certifi==2024.8.30 # via # -c envs/dev.env.txt # httpcore # httpx # requests -cffi==1.17.0 +cffi==1.17.1 # via # -c envs/dev.env.txt # argon2-cffi-bindings @@ -109,7 +109,7 @@ comm==0.2.2 # -c envs/dev.env.txt # ipykernel # ipywidgets -contourpy==1.2.1 +contourpy==1.3.0 # via # -c envs/dev.env.txt # matplotlib @@ -125,7 +125,7 @@ cytoolz==0.12.3 # via # -c envs/dev.env.txt # quimb -dash==2.17.1 +dash==2.18.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -162,7 +162,7 @@ exceptiongroup==1.2.2 # -c envs/dev.env.txt # anyio # ipython -executing==2.0.1 +executing==2.1.0 # via # -c envs/dev.env.txt # stack-data @@ -202,18 +202,18 @@ httpcore==1.0.5 # via # -c envs/dev.env.txt # httpx -httpx==0.27.0 +httpx==0.27.2 # via # -c envs/dev.env.txt # jupyterlab -idna==3.7 +idna==3.10 # via # -c envs/dev.env.txt # anyio # httpx # jsonschema # requests -importlib-metadata==8.2.0 +importlib-metadata==8.5.0 # via # -c envs/dev.env.txt # dash @@ -221,13 +221,13 @@ ipykernel==6.29.5 # via # -c envs/dev.env.txt # jupyterlab -ipython==8.26.0 +ipython==8.27.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt # ipykernel # ipywidgets -ipywidgets==8.1.3 +ipywidgets==8.1.5 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -274,7 +274,7 @@ jsonschema-specifications==2023.12.1 # via # -c envs/dev.env.txt # jsonschema -jupyter-client==8.6.2 +jupyter-client==8.6.3 # via # -c envs/dev.env.txt # ipykernel @@ -323,11 +323,11 @@ jupyterlab-server==2.27.3 # -c envs/dev.env.txt # jupyterlab # notebook -jupyterlab-widgets==3.0.11 +jupyterlab-widgets==3.0.13 # via # -c envs/dev.env.txt # ipywidgets -kiwisolver==1.4.5 +kiwisolver==1.4.7 # via # -c envs/dev.env.txt # matplotlib @@ -389,7 +389,7 @@ networkx==3.3 # -c envs/dev.env.txt # -r deps/runtime.txt # cirq-core -notebook==7.2.1 +notebook==7.2.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -428,7 +428,7 @@ packaging==24.1 # matplotlib # nbconvert # plotly -pandas==2.2.2 +pandas==2.2.3 # via # -c envs/dev.env.txt # cirq-core @@ -452,12 +452,12 @@ pillow==10.4.0 # via # -c envs/dev.env.txt # matplotlib -platformdirs==4.2.2 +platformdirs==4.3.6 # via # -c envs/dev.env.txt # black # jupyter-core -plotly==5.23.0 +plotly==5.24.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -470,7 +470,7 @@ prompt-toolkit==3.0.47 # via # -c envs/dev.env.txt # ipython -protobuf==5.27.3 +protobuf==5.28.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -496,12 +496,12 @@ pycparser==2.22 # via # -c envs/dev.env.txt # cffi -pydantic==2.8.2 +pydantic==2.9.2 # via # -c envs/dev.env.txt # bartiq # qref -pydantic-core==2.20.1 +pydantic-core==2.23.4 # via # -c envs/dev.env.txt # pydantic @@ -514,7 +514,7 @@ pygments==2.18.0 # -c envs/dev.env.txt # ipython # nbconvert -pyparsing==3.1.2 +pyparsing==3.1.4 # via # -c envs/dev.env.txt # bartiq @@ -531,7 +531,7 @@ python-json-logger==2.0.7 # via # -c envs/dev.env.txt # jupyter-events -pytz==2024.1 +pytz==2024.2 # via # -c envs/dev.env.txt # pandas @@ -539,7 +539,7 @@ pyyaml==6.0.2 # via # -c envs/dev.env.txt # jupyter-events -pyzmq==26.1.0 +pyzmq==26.2.0 # via # -c envs/dev.env.txt # ipykernel @@ -550,11 +550,11 @@ qref==0.7.0 # -c envs/dev.env.txt # -r deps/runtime.txt # bartiq -qsharp==1.7.0 +qsharp==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -qsharp-widgets==1.7.0 +qsharp-widgets==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -592,7 +592,7 @@ rpds-py==0.20.0 # -c envs/dev.env.txt # jsonschema # referencing -scipy==1.14.0 +scipy==1.14.1 # via # -c envs/dev.env.txt # cirq-core @@ -685,7 +685,7 @@ traitlets==5.14.3 # nbclient # nbconvert # nbformat -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 # via # -c envs/dev.env.txt # arrow @@ -709,7 +709,7 @@ uri-template==1.3.0 # via # -c envs/dev.env.txt # jsonschema -urllib3==2.2.2 +urllib3==2.2.3 # via # -c envs/dev.env.txt # requests @@ -730,16 +730,16 @@ websocket-client==1.8.0 # via # -c envs/dev.env.txt # jupyter-server -werkzeug==3.0.3 +werkzeug==3.0.4 # via # -c envs/dev.env.txt # dash # flask -widgetsnbextension==4.0.11 +widgetsnbextension==4.0.13 # via # -c envs/dev.env.txt # ipywidgets -zipp==3.20.0 +zipp==3.20.2 # via # -c envs/dev.env.txt # importlib-metadata diff --git a/dev_tools/requirements/envs/pip-tools.env.txt b/dev_tools/requirements/envs/pip-tools.env.txt index 0ba1bf977..986d32203 100644 --- a/dev_tools/requirements/envs/pip-tools.env.txt +++ b/dev_tools/requirements/envs/pip-tools.env.txt @@ -4,7 +4,7 @@ # # pip-compile --constraint=envs/dev.env.txt --output-file=envs/pip-tools.env.txt deps/pip-tools.txt # -build==1.2.1 +build==1.2.2 # via # -c envs/dev.env.txt # pip-tools diff --git a/dev_tools/requirements/envs/pylint.env.txt b/dev_tools/requirements/envs/pylint.env.txt index 13ba1ea62..8b182f40b 100644 --- a/dev_tools/requirements/envs/pylint.env.txt +++ b/dev_tools/requirements/envs/pylint.env.txt @@ -16,7 +16,7 @@ annotated-types==0.7.0 # via # -c envs/dev.env.txt # pydantic -anyio==4.4.0 +anyio==4.5.0 # via # -c envs/dev.env.txt # httpx @@ -74,7 +74,7 @@ babel==2.16.0 # -c envs/dev.env.txt # jupyterlab-server # sphinx -bartiq==0.5.1 +bartiq==0.6.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -90,17 +90,17 @@ blinker==1.8.2 # via # -c envs/dev.env.txt # flask -cachetools==5.4.0 +cachetools==5.5.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -certifi==2024.7.4 +certifi==2024.8.30 # via # -c envs/dev.env.txt # httpcore # httpx # requests -cffi==1.17.0 +cffi==1.17.1 # via # -c envs/dev.env.txt # argon2-cffi-bindings @@ -122,7 +122,7 @@ comm==0.2.2 # -c envs/dev.env.txt # ipykernel # ipywidgets -contourpy==1.2.1 +contourpy==1.3.0 # via # -c envs/dev.env.txt # matplotlib @@ -138,7 +138,7 @@ cytoolz==0.12.3 # via # -c envs/dev.env.txt # quimb -dash==2.17.1 +dash==2.18.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -188,7 +188,7 @@ exceptiongroup==1.2.2 # anyio # ipython # pytest -executing==2.0.1 +executing==2.1.0 # via # -c envs/dev.env.txt # stack-data @@ -196,7 +196,7 @@ fastjsonschema==2.20.0 # via # -c envs/dev.env.txt # nbformat -filelock==3.15.4 +filelock==3.16.1 # via # -c envs/dev.env.txt # -r deps/pylint.txt @@ -233,11 +233,11 @@ httpcore==1.0.5 # via # -c envs/dev.env.txt # httpx -httpx==0.27.0 +httpx==0.27.2 # via # -c envs/dev.env.txt # jupyterlab -idna==3.7 +idna==3.10 # via # -c envs/dev.env.txt # anyio @@ -248,7 +248,7 @@ imagesize==1.4.1 # via # -c envs/dev.env.txt # sphinx -importlib-metadata==8.2.0 +importlib-metadata==8.5.0 # via # -c envs/dev.env.txt # dash @@ -260,13 +260,13 @@ ipykernel==6.29.5 # via # -c envs/dev.env.txt # jupyterlab -ipython==8.26.0 +ipython==8.27.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt # ipykernel # ipywidgets -ipywidgets==8.1.3 +ipywidgets==8.1.5 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -283,11 +283,11 @@ itsdangerous==2.2.0 # via # -c envs/dev.env.txt # flask -jax==0.4.31 +jax==0.4.33 # via # -c envs/dev.env.txt # openfermion -jaxlib==0.4.31 +jaxlib==0.4.33 # via # -c envs/dev.env.txt # jax @@ -324,7 +324,7 @@ jsonschema-specifications==2023.12.1 # via # -c envs/dev.env.txt # jsonschema -jupyter-client==8.6.2 +jupyter-client==8.6.3 # via # -c envs/dev.env.txt # ipykernel @@ -373,11 +373,11 @@ jupyterlab-server==2.27.3 # -c envs/dev.env.txt # jupyterlab # notebook -jupyterlab-widgets==3.0.11 +jupyterlab-widgets==3.0.13 # via # -c envs/dev.env.txt # ipywidgets -kiwisolver==1.4.5 +kiwisolver==1.4.7 # via # -c envs/dev.env.txt # matplotlib @@ -414,7 +414,7 @@ mistune==3.0.2 # via # -c envs/dev.env.txt # nbconvert -ml-dtypes==0.4.0 +ml-dtypes==0.5.0 # via # -c envs/dev.env.txt # jax @@ -451,7 +451,7 @@ networkx==3.3 # -r deps/runtime.txt # cirq-core # openfermion -notebook==7.2.1 +notebook==7.2.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -509,7 +509,7 @@ packaging==24.1 # plotly # pytest # sphinx -pandas==2.2.2 +pandas==2.2.3 # via # -c envs/dev.env.txt # cirq-core @@ -529,12 +529,12 @@ pillow==10.4.0 # via # -c envs/dev.env.txt # matplotlib -platformdirs==4.2.2 +platformdirs==4.3.6 # via # -c envs/dev.env.txt # jupyter-core # pylint -plotly==5.23.0 +plotly==5.24.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -551,7 +551,7 @@ prompt-toolkit==3.0.47 # via # -c envs/dev.env.txt # ipython -protobuf==5.27.3 +protobuf==5.28.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -582,12 +582,12 @@ pycparser==2.22 # via # -c envs/dev.env.txt # cffi -pydantic==2.8.2 +pydantic==2.9.2 # via # -c envs/dev.env.txt # bartiq # qref -pydantic-core==2.20.1 +pydantic-core==2.23.4 # via # -c envs/dev.env.txt # pydantic @@ -605,7 +605,7 @@ pylint==2.17.7 # via # -c envs/dev.env.txt # -r deps/pylint.txt -pyparsing==3.1.2 +pyparsing==3.1.4 # via # -c envs/dev.env.txt # bartiq @@ -615,7 +615,7 @@ pyscf==2.6.2 # via # -c envs/dev.env.txt # openfermion -pytest==8.3.2 +pytest==8.3.3 # via # -c envs/dev.env.txt # -r deps/pylint.txt @@ -630,7 +630,7 @@ python-json-logger==2.0.7 # via # -c envs/dev.env.txt # jupyter-events -pytz==2024.1 +pytz==2024.2 # via # -c envs/dev.env.txt # pandas @@ -639,7 +639,7 @@ pyyaml==6.0.2 # -c envs/dev.env.txt # jupyter-events # tensorflow-docs -pyzmq==26.1.0 +pyzmq==26.2.0 # via # -c envs/dev.env.txt # ipykernel @@ -650,11 +650,11 @@ qref==0.7.0 # -c envs/dev.env.txt # -r deps/runtime.txt # bartiq -qsharp==1.7.0 +qsharp==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -qsharp-widgets==1.7.0 +qsharp-widgets==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -694,7 +694,7 @@ rpds-py==0.20.0 # -c envs/dev.env.txt # jsonschema # referencing -scipy==1.14.0 +scipy==1.14.1 # via # -c envs/dev.env.txt # ase @@ -834,7 +834,7 @@ traitlets==5.14.3 # nbclient # nbconvert # nbformat -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 # via # -c envs/dev.env.txt # arrow @@ -859,7 +859,7 @@ uri-template==1.3.0 # via # -c envs/dev.env.txt # jsonschema -urllib3==2.2.2 +urllib3==2.2.3 # via # -c envs/dev.env.txt # requests @@ -880,12 +880,12 @@ websocket-client==1.8.0 # via # -c envs/dev.env.txt # jupyter-server -werkzeug==3.0.3 +werkzeug==3.0.4 # via # -c envs/dev.env.txt # dash # flask -widgetsnbextension==4.0.11 +widgetsnbextension==4.0.13 # via # -c envs/dev.env.txt # ipywidgets @@ -893,7 +893,7 @@ wrapt==1.16.0 # via # -c envs/dev.env.txt # astroid -zipp==3.20.0 +zipp==3.20.2 # via # -c envs/dev.env.txt # importlib-metadata diff --git a/dev_tools/requirements/envs/pytest.env.txt b/dev_tools/requirements/envs/pytest.env.txt index 4e2e9059e..20a2fc135 100644 --- a/dev_tools/requirements/envs/pytest.env.txt +++ b/dev_tools/requirements/envs/pytest.env.txt @@ -8,7 +8,7 @@ annotated-types==0.7.0 # via # -c envs/dev.env.txt # pydantic -anyio==4.4.0 +anyio==4.5.0 # via # -c envs/dev.env.txt # httpx @@ -57,7 +57,7 @@ babel==2.16.0 # via # -c envs/dev.env.txt # jupyterlab-server -bartiq==0.5.1 +bartiq==0.6.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -73,17 +73,17 @@ blinker==1.8.2 # via # -c envs/dev.env.txt # flask -cachetools==5.4.0 +cachetools==5.5.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -certifi==2024.7.4 +certifi==2024.8.30 # via # -c envs/dev.env.txt # httpcore # httpx # requests -cffi==1.17.0 +cffi==1.17.1 # via # -c envs/dev.env.txt # argon2-cffi-bindings @@ -105,7 +105,7 @@ comm==0.2.2 # -c envs/dev.env.txt # ipykernel # ipywidgets -contourpy==1.2.1 +contourpy==1.3.0 # via # -c envs/dev.env.txt # matplotlib @@ -125,7 +125,7 @@ cytoolz==0.12.3 # via # -c envs/dev.env.txt # quimb -dash==2.17.1 +dash==2.18.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -171,7 +171,7 @@ execnet==2.1.1 # via # -c envs/dev.env.txt # pytest-xdist -executing==2.0.1 +executing==2.1.0 # via # -c envs/dev.env.txt # stack-data @@ -179,7 +179,7 @@ fastjsonschema==2.20.0 # via # -c envs/dev.env.txt # nbformat -filelock==3.15.4 +filelock==3.16.1 # via # -c envs/dev.env.txt # -r deps/pytest.txt @@ -216,18 +216,18 @@ httpcore==1.0.5 # via # -c envs/dev.env.txt # httpx -httpx==0.27.0 +httpx==0.27.2 # via # -c envs/dev.env.txt # jupyterlab -idna==3.7 +idna==3.10 # via # -c envs/dev.env.txt # anyio # httpx # jsonschema # requests -importlib-metadata==8.2.0 +importlib-metadata==8.5.0 # via # -c envs/dev.env.txt # dash @@ -240,13 +240,13 @@ ipykernel==6.29.5 # -c envs/dev.env.txt # -r deps/pytest.txt # jupyterlab -ipython==8.26.0 +ipython==8.27.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt # ipykernel # ipywidgets -ipywidgets==8.1.3 +ipywidgets==8.1.5 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -259,11 +259,11 @@ itsdangerous==2.2.0 # via # -c envs/dev.env.txt # flask -jax==0.4.31 +jax==0.4.33 # via # -c envs/dev.env.txt # openfermion -jaxlib==0.4.31 +jaxlib==0.4.33 # via # -c envs/dev.env.txt # jax @@ -298,7 +298,7 @@ jsonschema-specifications==2023.12.1 # via # -c envs/dev.env.txt # jsonschema -jupyter-client==8.6.2 +jupyter-client==8.6.3 # via # -c envs/dev.env.txt # ipykernel @@ -347,11 +347,11 @@ jupyterlab-server==2.27.3 # -c envs/dev.env.txt # jupyterlab # notebook -jupyterlab-widgets==3.0.11 +jupyterlab-widgets==3.0.13 # via # -c envs/dev.env.txt # ipywidgets -kiwisolver==1.4.5 +kiwisolver==1.4.7 # via # -c envs/dev.env.txt # matplotlib @@ -380,7 +380,7 @@ mistune==3.0.2 # via # -c envs/dev.env.txt # nbconvert -ml-dtypes==0.4.0 +ml-dtypes==0.5.0 # via # -c envs/dev.env.txt # jax @@ -416,7 +416,7 @@ networkx==3.3 # -r deps/runtime.txt # cirq-core # openfermion -notebook==7.2.1 +notebook==7.2.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -473,7 +473,7 @@ packaging==24.1 # nbconvert # plotly # pytest -pandas==2.2.2 +pandas==2.2.3 # via # -c envs/dev.env.txt # cirq-core @@ -493,11 +493,11 @@ pillow==10.4.0 # via # -c envs/dev.env.txt # matplotlib -platformdirs==4.2.2 +platformdirs==4.3.6 # via # -c envs/dev.env.txt # jupyter-core -plotly==5.23.0 +plotly==5.24.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -514,7 +514,7 @@ prompt-toolkit==3.0.47 # via # -c envs/dev.env.txt # ipython -protobuf==5.27.3 +protobuf==5.28.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -544,12 +544,12 @@ pycparser==2.22 # via # -c envs/dev.env.txt # cffi -pydantic==2.8.2 +pydantic==2.9.2 # via # -c envs/dev.env.txt # bartiq # qref -pydantic-core==2.20.1 +pydantic-core==2.23.4 # via # -c envs/dev.env.txt # pydantic @@ -562,7 +562,7 @@ pygments==2.18.0 # -c envs/dev.env.txt # ipython # nbconvert -pyparsing==3.1.2 +pyparsing==3.1.4 # via # -c envs/dev.env.txt # bartiq @@ -572,14 +572,14 @@ pyscf==2.6.2 # via # -c envs/dev.env.txt # openfermion -pytest==8.3.2 +pytest==8.3.3 # via # -c envs/dev.env.txt # -r deps/pytest.txt # pytest-asyncio # pytest-cov # pytest-xdist -pytest-asyncio==0.23.8 +pytest-asyncio==0.24.0 # via # -c envs/dev.env.txt # -r deps/pytest.txt @@ -602,7 +602,7 @@ python-json-logger==2.0.7 # via # -c envs/dev.env.txt # jupyter-events -pytz==2024.1 +pytz==2024.2 # via # -c envs/dev.env.txt # pandas @@ -610,7 +610,7 @@ pyyaml==6.0.2 # via # -c envs/dev.env.txt # jupyter-events -pyzmq==26.1.0 +pyzmq==26.2.0 # via # -c envs/dev.env.txt # ipykernel @@ -621,11 +621,11 @@ qref==0.7.0 # -c envs/dev.env.txt # -r deps/runtime.txt # bartiq -qsharp==1.7.0 +qsharp==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -qsharp-widgets==1.7.0 +qsharp-widgets==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -664,7 +664,7 @@ rpds-py==0.20.0 # -c envs/dev.env.txt # jsonschema # referencing -scipy==1.14.0 +scipy==1.14.1 # via # -c envs/dev.env.txt # ase @@ -763,7 +763,7 @@ traitlets==5.14.3 # nbclient # nbconvert # nbformat -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 # via # -c envs/dev.env.txt # arrow @@ -787,7 +787,7 @@ uri-template==1.3.0 # via # -c envs/dev.env.txt # jsonschema -urllib3==2.2.2 +urllib3==2.2.3 # via # -c envs/dev.env.txt # requests @@ -808,16 +808,16 @@ websocket-client==1.8.0 # via # -c envs/dev.env.txt # jupyter-server -werkzeug==3.0.3 +werkzeug==3.0.4 # via # -c envs/dev.env.txt # dash # flask -widgetsnbextension==4.0.11 +widgetsnbextension==4.0.13 # via # -c envs/dev.env.txt # ipywidgets -zipp==3.20.0 +zipp==3.20.2 # via # -c envs/dev.env.txt # importlib-metadata diff --git a/dev_tools/requirements/envs/runtime.env.txt b/dev_tools/requirements/envs/runtime.env.txt index f3c9b12b5..8fc6e6bd4 100644 --- a/dev_tools/requirements/envs/runtime.env.txt +++ b/dev_tools/requirements/envs/runtime.env.txt @@ -8,7 +8,7 @@ annotated-types==0.7.0 # via # -c envs/dev.env.txt # pydantic -anyio==4.4.0 +anyio==4.5.0 # via # -c envs/dev.env.txt # httpx @@ -53,7 +53,7 @@ babel==2.16.0 # via # -c envs/dev.env.txt # jupyterlab-server -bartiq==0.5.1 +bartiq==0.6.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -69,17 +69,17 @@ blinker==1.8.2 # via # -c envs/dev.env.txt # flask -cachetools==5.4.0 +cachetools==5.5.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -certifi==2024.7.4 +certifi==2024.8.30 # via # -c envs/dev.env.txt # httpcore # httpx # requests -cffi==1.17.0 +cffi==1.17.1 # via # -c envs/dev.env.txt # argon2-cffi-bindings @@ -100,7 +100,7 @@ comm==0.2.2 # -c envs/dev.env.txt # ipykernel # ipywidgets -contourpy==1.2.1 +contourpy==1.3.0 # via # -c envs/dev.env.txt # matplotlib @@ -116,7 +116,7 @@ cytoolz==0.12.3 # via # -c envs/dev.env.txt # quimb -dash==2.17.1 +dash==2.18.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -153,7 +153,7 @@ exceptiongroup==1.2.2 # -c envs/dev.env.txt # anyio # ipython -executing==2.0.1 +executing==2.1.0 # via # -c envs/dev.env.txt # stack-data @@ -189,18 +189,18 @@ httpcore==1.0.5 # via # -c envs/dev.env.txt # httpx -httpx==0.27.0 +httpx==0.27.2 # via # -c envs/dev.env.txt # jupyterlab -idna==3.7 +idna==3.10 # via # -c envs/dev.env.txt # anyio # httpx # jsonschema # requests -importlib-metadata==8.2.0 +importlib-metadata==8.5.0 # via # -c envs/dev.env.txt # dash @@ -208,13 +208,13 @@ ipykernel==6.29.5 # via # -c envs/dev.env.txt # jupyterlab -ipython==8.26.0 +ipython==8.27.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt # ipykernel # ipywidgets -ipywidgets==8.1.3 +ipywidgets==8.1.5 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -257,7 +257,7 @@ jsonschema-specifications==2023.12.1 # via # -c envs/dev.env.txt # jsonschema -jupyter-client==8.6.2 +jupyter-client==8.6.3 # via # -c envs/dev.env.txt # ipykernel @@ -306,11 +306,11 @@ jupyterlab-server==2.27.3 # -c envs/dev.env.txt # jupyterlab # notebook -jupyterlab-widgets==3.0.11 +jupyterlab-widgets==3.0.13 # via # -c envs/dev.env.txt # ipywidgets -kiwisolver==1.4.5 +kiwisolver==1.4.7 # via # -c envs/dev.env.txt # matplotlib @@ -368,7 +368,7 @@ networkx==3.3 # -c envs/dev.env.txt # -r deps/runtime.txt # cirq-core -notebook==7.2.1 +notebook==7.2.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -407,7 +407,7 @@ packaging==24.1 # matplotlib # nbconvert # plotly -pandas==2.2.2 +pandas==2.2.3 # via # -c envs/dev.env.txt # cirq-core @@ -427,11 +427,11 @@ pillow==10.4.0 # via # -c envs/dev.env.txt # matplotlib -platformdirs==4.2.2 +platformdirs==4.3.6 # via # -c envs/dev.env.txt # jupyter-core -plotly==5.23.0 +plotly==5.24.1 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -444,7 +444,7 @@ prompt-toolkit==3.0.47 # via # -c envs/dev.env.txt # ipython -protobuf==5.27.3 +protobuf==5.28.2 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -470,12 +470,12 @@ pycparser==2.22 # via # -c envs/dev.env.txt # cffi -pydantic==2.8.2 +pydantic==2.9.2 # via # -c envs/dev.env.txt # bartiq # qref -pydantic-core==2.20.1 +pydantic-core==2.23.4 # via # -c envs/dev.env.txt # pydantic @@ -488,7 +488,7 @@ pygments==2.18.0 # -c envs/dev.env.txt # ipython # nbconvert -pyparsing==3.1.2 +pyparsing==3.1.4 # via # -c envs/dev.env.txt # bartiq @@ -505,7 +505,7 @@ python-json-logger==2.0.7 # via # -c envs/dev.env.txt # jupyter-events -pytz==2024.1 +pytz==2024.2 # via # -c envs/dev.env.txt # pandas @@ -513,7 +513,7 @@ pyyaml==6.0.2 # via # -c envs/dev.env.txt # jupyter-events -pyzmq==26.1.0 +pyzmq==26.2.0 # via # -c envs/dev.env.txt # ipykernel @@ -524,11 +524,11 @@ qref==0.7.0 # -c envs/dev.env.txt # -r deps/runtime.txt # bartiq -qsharp==1.7.0 +qsharp==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt -qsharp-widgets==1.7.0 +qsharp-widgets==1.8.0 # via # -c envs/dev.env.txt # -r deps/runtime.txt @@ -566,7 +566,7 @@ rpds-py==0.20.0 # -c envs/dev.env.txt # jsonschema # referencing -scipy==1.14.0 +scipy==1.14.1 # via # -c envs/dev.env.txt # cirq-core @@ -657,7 +657,7 @@ traitlets==5.14.3 # nbclient # nbconvert # nbformat -types-python-dateutil==2.9.0.20240316 +types-python-dateutil==2.9.0.20240906 # via # -c envs/dev.env.txt # arrow @@ -681,7 +681,7 @@ uri-template==1.3.0 # via # -c envs/dev.env.txt # jsonschema -urllib3==2.2.2 +urllib3==2.2.3 # via # -c envs/dev.env.txt # requests @@ -702,16 +702,16 @@ websocket-client==1.8.0 # via # -c envs/dev.env.txt # jupyter-server -werkzeug==3.0.3 +werkzeug==3.0.4 # via # -c envs/dev.env.txt # dash # flask -widgetsnbextension==4.0.11 +widgetsnbextension==4.0.13 # via # -c envs/dev.env.txt # ipywidgets -zipp==3.20.0 +zipp==3.20.2 # via # -c envs/dev.env.txt # importlib-metadata diff --git a/qualtran/qref_interop/bartiq_demo.ipynb b/qualtran/qref_interop/bartiq_demo.ipynb index 9b11826d9..60e8055c7 100644 --- a/qualtran/qref_interop/bartiq_demo.ipynb +++ b/qualtran/qref_interop/bartiq_demo.ipynb @@ -148,15 +148,13 @@ "metadata": {}, "outputs": [], "source": [ - "from bartiq.integrations.qref import qref_to_bartiq\n", "from bartiq import compile_routine\n", "\n", "\n", "# Clear the resources from the top-level\n", "qref_definition.program.resources = [] \n", "\n", - "bartiq_routine = qref_to_bartiq(qref_definition)\n", - "compiled_routine = compile_routine(bartiq_routine)\n", + "compiled_routine = compile_routine(qref_definition).routine\n", "\n", "print(\"Qualtran Bloq T Complexity: \")\n", "pprint(bloq.t_complexity())\n", @@ -181,14 +179,24 @@ "source": [ "### Numeric Implementation\n", "\n", - "The example above is purely numeric. If symbolic expressions are used, we are able to produce resources and decompose the \"top-level\" bloq, `StatePreparationAliasSampling` (see snippet below). However, subsequent bloqs, like `PrepareUniformSuperposition`, cannot be further decomposed using `decompose_bloq()` This is most likely temporary and as Qualtran improves, this might cease being a problem.\n", - "\n", - "```\n", + "The example above is purely numeric. If symbolic expressions are used, we are able to produce resources and decompose the \"top-level\" bloq, `StatePreparationAliasSampling` (see snippet below). However, subsequent bloqs, like `PrepareUniformSuperposition`, cannot be further decomposed using `decompose_bloq()` This is most likely temporary and as Qualtran improves, this might cease being a problem." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4495c810-fdfd-43d0-a70a-bf40dfdff061", + "metadata": {}, + "outputs": [], + "source": [ "import sympy\n", "N, M, eps = sympy.symbols(\"N M eps\")\n", "bloq = StatePreparationAliasSampling.from_n_coeff(n_coeff=N, sum_of_unnormalized_probabilites=M, precision=eps)\n", "pprint(bloq.t_complexity())\n", - "```" + "children = bloq.decompose_bloq().bloq_instances\n", + "# Doesn't curently work:\n", + "# decomposed_children = [child.decompose_bloq() for child in children]\n", + "# decomposed_children = [child.t_complexity() for child in children]" ] }, { @@ -311,13 +319,11 @@ "metadata": {}, "outputs": [], "source": [ - "usp_1_bartiq = qref_to_bartiq(usp_1_qref)\n", "print(\"Qualtran USP Bloq T Complexity - T Gates\")\n", - "pprint(compile_routine(usp_1_bartiq).resources[\"t\"])\n", + "pprint(compile_routine(usp_1_qref).routine.resources[\"t\"])\n", "\n", - "usp_2_bartiq = qref_to_bartiq(usp_2_qref)\n", "print(\"\\nQREF USP Custom Implementation - T Gates\")\n", - "pprint(compile_routine(usp_2_bartiq).resources[\"t\"])" + "pprint(compile_routine(usp_2_qref).routine.resources[\"t\"])" ] }, { @@ -368,13 +374,13 @@ "qref_as_2.program.children.by_name[\"PrepareUniformSuperposition_0\"] = usp_2_qref.program\n", "\n", "\n", - "bartiq_as_1 = qref_to_bartiq(qref_as_1)\n", "print(\"Unchanged Alias Sampling T Complexity - T Gates: \")\n", - "pprint(compile_routine(bartiq_as_1).resources[\"t\"])\n", + "compiled_as_1 = compile_routine(qref_as_1).routine\n", + "pprint(compiled_as_1.resources[\"t\"])\n", "\n", - "bartiq_as_2 = qref_to_bartiq(qref_as_2)\n", "print(\"\\nUpdated Alias Sampling T Complexity - T Gates: \")\n", - "pprint(compile_routine(bartiq_as_2).resources[\"t\"])\n" + "compiled_as_2 = compile_routine(qref_as_2).routine\n", + "pprint(compiled_as_2.resources[\"t\"])\n" ] }, { @@ -382,30 +388,7 @@ "id": "44cc58e6-6155-4919-9156-556b5e42fdf4", "metadata": {}, "source": [ - "The unchanged Alias Sampling results shows the same 307 T gates that we saw earlier in the notebook. However, for the updated Alias Sampling, we see a much different result. While the T-gates resource is printed, a warning is also seen. Since the \"top-level\" routine does not have knowledge of its child's parameter, the parameter `N` from the USP routine is namespaced resulting in `PrepareUniformSuperposition_0.N` in the expression. To address the warning, at a \"top-level\" we will need to include `N` as an input paramter and link that to `PrepareUniformSuperposition_0.N`." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "275437ee-aab0-4f38-93dc-603ba1a4a5f2", - "metadata": {}, - "outputs": [], - "source": [ - "qref_as_2.program.input_params = [\"N\"]\n", - "qref_as_2.program.linked_params = [{\"source\": \"N\", \"targets\": [\"PrepareUniformSuperposition_0.N\"]}]\n", - "\n", - "bartiq_as_2 = qref_to_bartiq(qref_as_2)\n", - "compiled_as_2 = compile_routine(bartiq_as_2)\n", - "compiled_as_2.resources[\"t\"]" - ] - }, - { - "cell_type": "markdown", - "id": "e864d60d-66cc-4bc7-92dc-708c2a77b614", - "metadata": {}, - "source": [ - "With the `N` parameter correctly setup, we no longer see the warning and correctly compile and print the symbolic expression for the number of T gates. Now we can generate numerical values for the resources given a specific value of `N`. To do this, we can use Bartiq's `evaluate` method." + "The unchanged Alias Sampling results shows the same 307 T gates that we saw earlier in the notebook. However, for the updated Alias Sampling, we see a much different result. Now we can generate numerical values for the resources given a specific value of `N`. To do this, we can use Bartiq's `evaluate` method." ] }, { @@ -417,8 +400,8 @@ "source": [ "from bartiq import evaluate\n", "N_value = len(probs_list)\n", - "assignments = {f\"N={N_value}\"}\n", - "evaluate(compiled_as_2, assignments).resources[\"t\"]" + "assignments = {\"N\": N_value}\n", + "evaluate(compiled_as_2, assignments).routine.resources[\"t\"]" ] }, { @@ -456,8 +439,7 @@ "usp_3_qref = copy.copy(usp_2_qref)\n", "usp_3_qref.program.resources = [{\"name\": \"t\", \"type\": \"additive\", \"value\": \"2*foo(N)\"}]\n", "\n", - "usp_3_bartiq = qref_to_bartiq(usp_3_qref)\n", - "compiled_usp_3 = compile_routine(usp_3_bartiq)\n", + "compiled_usp_3 = compile_routine(usp_3_qref).routine\n", "compiled_usp_3.resources" ] }, @@ -476,9 +458,9 @@ "metadata": {}, "outputs": [], "source": [ - "assignments = {\"N=101\"}\n", + "assignments = {\"N\": 101}\n", "functions_map = {\"foo\": foo}\n", - "evaluate(compiled_usp_3, assignments, functions_map=functions_map).resources" + "evaluate(compiled_usp_3, assignments, functions_map=functions_map).routine.resources" ] }, { @@ -524,7 +506,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.10.14" } }, "nbformat": 4,