Skip to content

Commit 2f57634

Browse files
Merge branch 'main' into issue-1762
2 parents b285caa + af8592b commit 2f57634

138 files changed

Lines changed: 6374 additions & 3427 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
3737
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
3838
with:
39-
python-version: "3.10"
39+
python-version: "3.11"
4040
- name: Install dependencies
4141
run: |
4242
python -m pip install --upgrade pip

.github/workflows/pr.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
3535
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
3636
with:
37-
python-version: "3.10"
37+
python-version: "3.11"
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
@@ -51,7 +51,7 @@ jobs:
5151
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
5252
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
5353
with:
54-
python-version: "3.10"
54+
python-version: "3.11"
5555
- name: Install dependencies
5656
run: |
5757
python -m pip install --upgrade pip
@@ -69,7 +69,7 @@ jobs:
6969
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
7070
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
7171
with:
72-
python-version: "3.10"
72+
python-version: "3.11"
7373
- name: Install dependencies
7474
run: |
7575
python -m pip install --upgrade pip
@@ -89,7 +89,7 @@ jobs:
8989
fetch-depth: 0
9090
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
9191
with:
92-
python-version: "3.10"
92+
python-version: "3.11"
9393
- name: Install dependencies
9494
run: |
9595
python -m pip install --upgrade pip
@@ -109,7 +109,7 @@ jobs:
109109
fetch-depth: 0
110110
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
111111
with:
112-
python-version: "3.10"
112+
python-version: "3.11"
113113
- name: Install dependencies
114114
run: |
115115
python -m pip install --upgrade pip
@@ -129,7 +129,7 @@ jobs:
129129
fetch-depth: 0
130130
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
131131
with:
132-
python-version: "3.10"
132+
python-version: "3.11"
133133
- name: Install dependencies
134134
run: |
135135
python -m pip install --upgrade pip
@@ -148,7 +148,7 @@ jobs:
148148
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
149149
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
150150
with:
151-
python-version: "3.10"
151+
python-version: "3.11"
152152
- name: Install dependencies
153153
run: |
154154
python -m pip install --upgrade pip

MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Python package for fault-tolerant quantum algorithms research.
88

99
[![Licensed under the Apache 2.0 open-source license](https://img.shields.io/badge/License-Apache%202.0-3c60b1.svg?logo=opensourceinitiative\&logoColor=white\&style=flat-square)](https://github.com/quantumlib/qualtran/blob/main/LICENSE)
10-
[![Compatible with Python versions 3.10 and higher](https://img.shields.io/badge/Python-3.10+-6828b2.svg?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
10+
[![Compatible with Python versions 3.11 and higher](https://img.shields.io/badge/Python-3.11+-6828b2.svg?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
1111
[![Qualtran project on PyPI](https://img.shields.io/pypi/v/qualtran.svg?logo=python&logoColor=white&label=PyPI&style=flat-square&color=9d3bb8)](https://pypi.org/project/qualtran)
1212

1313
[Installation](#installation) –

check/format-incremental

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ if (( ${#format_files[@]} == 0 )); then
9595
exit 0
9696
fi
9797

98-
flynt_args=("--quiet" "-f")
99-
if (( only_print == 1 )); then
100-
flynt_args+=("--dry-run")
101-
fi
102-
103-
flynt "${format_files[@]}" "${flynt_args[@]}"
104-
FLYNTSTATUS=$?
98+
#flynt_args=("--quiet" "-f")
99+
#if (( only_print == 1 )); then
100+
# flynt_args+=("--dry-run")
101+
#fi
102+
#
103+
#flynt "${format_files[@]}" "${flynt_args[@]}"
104+
FLYNTSTATUS=0
105105

106106
isort_args=()
107107
if (( only_print == 1 )); then

dev_tools/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "qualtran-dev-tools"
77
version = "0.1.0"
88
description = "Local development tools for the Qualtran project."
9-
requires-python = ">=3.10"
9+
requires-python = ">=3.11"
1010

1111
[tool.setuptools]
1212
packages = ["qualtran_dev_tools"]

dev_tools/qualtran_dev_tools/all_call_graph.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
"""Generate the library-wide call graph from all bloq examples."""
16+
1617
import logging
1718
import warnings
1819
from typing import Iterable

dev_tools/qualtran_dev_tools/make_reference_docs/_components/render_docstring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _write_yields(f, part: DocstringSectionYields, level: int):
167167
f.write('\n')
168168

169169
else:
170-
subpart: DocstringYield
170+
param: DocstringYield
171171
for param in part.value:
172172
pname = param.name if param.name else 'yld'
173173
f.write(f'{pname}\n')

dev_tools/qualtran_dev_tools/make_reference_docs/_make.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
15+
# ruff: noqa: E402
1416
import ast
1517
import warnings
1618
from collections import defaultdict

dev_tools/qualtran_dev_tools/notebook_execution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def __call__(self, nb_rel_path: Path, sourceroot: Path) -> _NotebookRunResult:
215215
start = time.time()
216216
err = execute_and_export_notebook(paths)
217217
end = time.time()
218-
print(f"Exported {nb_rel_path} in {end-start:.2f} seconds.")
218+
print(f"Exported {nb_rel_path} in {end - start:.2f} seconds.")
219219
return _NotebookRunResult(paths.nb_in, err, duration_s=end - start)
220220

221221

0 commit comments

Comments
 (0)