# QUBONotebooks

<div align="center">
  <a href="https://github.com/JuliaQUBO/QUBO.jl">
    <img width="400px" src="https://raw.githubusercontent.com/JuliaQUBO/QUBO.jl/main/docs/src/assets/logo.svg" alt="QUBO.jl" />
  </a>
  <br>
  <span>Quantum Integer Programming Notebooks using <a href="https://jump.dev">JuMP</a> and <a href="https://github.com/JuliaQUBO/QUBO.jl">QUBO.jl</a>.</span>
  <br>
  <br>
  <b>Maintained by the <a href="https://github.com/JuliaQUBO">JuliaQUBO</a> organization</b>
  <br>
  <br>
  <a href="https://secquoia.github.io/">SECQUOIA</a>
  &nbsp;&middot;&nbsp;
  <a href="https://www.psr-inc.com/">PSR Energy</a>
  <br>
  <br>
</div>

This collection is maintained by the
[JuliaQUBO](https://github.com/JuliaQUBO) organization, in collaboration with
[SECQUOIA](https://secquoia.github.io/) and
[PSR Energy](https://www.psr-inc.com/). Individual notebook contributors are
credited in the Acknowledgments section at the end of each notebook.

[CONTRIBUTING.md](CONTRIBUTING.md) records the editorial contracts: what each
notebook family promises, the structural contracts that bind every notebook,
and the committed-output size budgets.

## Read the notebooks online

The notebooks are published as a Jupyter Book at
**<https://juliaqubo.github.io/QUBONotebooks/>**, with navigation across the
Julia and Python series and an "Open in Colab" action on every notebook page.

## Workshop editions

Run `make workshops` to generate student and instructor ZIPs in
`dist/workshops`. Student copies omit solutions; both editions retain worked
examples and their supporting data and environments. See the
[workshop guide](workshops.md) for setup and suggested teaching routes.

## Jupyter Book

The source landing page is [index.md](index.md), and
[local-setup.md](local-setup.md) documents the local book build and
notebook-output workflow.

Build the book from the repository root with:

```bash
uv sync --locked --group docs
make build-book
```

The site build uses committed notebook outputs and does not execute notebooks
or contact external solvers. Every pull request and every push to `main` runs
the same command through `.github/workflows/jupyter-book.yml`; pushes to `main`
also deploy the built site to GitHub Pages.

The build runs in `--strict` mode, so it is a real gate, but it deliberately
does not gate on other people's uptime:

| Problem | Build result |
| --- | --- |
| Unresolved cross-reference | fails |
| Unreachable external URL | warns |
| DOI metadata lookup failure | warns |

Broken *relative* links are covered separately by
`test_relative_links_point_at_files_that_exist`, which resolves them against
the filesystem without network access. External link rot therefore shows up as
a build warning rather than an intermittently red default branch.

## Notebooks

This repository keeps Julia and Python variants of the QuIP/QuIPML notebook
sequence. The stable local verification subset covers notebooks that do not
need credentials, proprietary/cloud solver access, local solver binaries, or
long benchmark runs.

The Python notebooks are introductory on-ramps, maintained for correctness and
for the shared structural contracts, but not for section-by-section parity
with their Julia counterparts. See
[Notebook families](CONTRIBUTING.md#notebook-families).

Notebook 6 has Julia and Python variants. The Julia notebook uses the
supported QCIOpt.jl QUBO workflow and explicitly maps the continuous or
constrained Python examples that do not have direct Julia equivalents. The
Julia Five Starter Problems series starts at notebook 7 and reimplements the
tutorial cited under [Source of the Five Starter
Problems](#source-of-the-five-starter-problems).

| Topic | Julia notebook | Python notebook | Local verification status |
| --- | --- | --- | --- |
| Linear and Integer Programming | [notebooks_jl/1-MathProg.ipynb](notebooks_jl/1-MathProg.ipynb) | [notebooks_py/1-MathProg_python.ipynb](notebooks_py/1-MathProg_python.ipynb) | Julia notebook includes native Colab setup through its focused notebook project; local execution requires LP/NLP/MINLP solver binaries. Python is covered by `make verify-mathprog-python-local` using HiGHS (via `highspy`) and the IDAES solver bundle. |
| QUBO and Ising | [notebooks_jl/2-QUBO.ipynb](notebooks_jl/2-QUBO.ipynb) | [notebooks_py/2-QUBO_python.ipynb](notebooks_py/2-QUBO_python.ipynb) | Julia notebook includes native Colab setup through its focused notebook project; Python notebook is portable and covered by `make verify-qubo-python`. |
| Graver Augmented Multiseed Algorithm | [notebooks_jl/3-GAMA.ipynb](notebooks_jl/3-GAMA.ipynb) | [notebooks_py/3-GAMA_python.ipynb](notebooks_py/3-GAMA_python.ipynb) | Julia notebook includes native Colab setup through its focused notebook project; Python notebook is portable and covered by `make verify-gama-python`. |
| D-Wave | [notebooks_jl/4-DWave.ipynb](notebooks_jl/4-DWave.ipynb) | [notebooks_py/4-DWAVE_python.ipynb](notebooks_py/4-DWAVE_python.ipynb) | Julia notebook includes native Colab setup through its focused notebook project; quantum annealer cells require D-Wave solver access. The Python local path uses locked `docs` + `qubo` dependencies and is covered by `make verify-dwave-python-local`; QPU access requires an explicit opt-in and a separate Ocean environment. |
| Benchmarking | [notebooks_jl/5-Benchmarking.ipynb](notebooks_jl/5-Benchmarking.ipynb) | [notebooks_py/5-Benchmarking_python.ipynb](notebooks_py/5-Benchmarking_python.ipynb) | Julia notebook includes native Colab setup through its focused notebook project; benchmark runs are long-running and generate artifacts. |
| QCi | [notebooks_jl/6-QCi.ipynb](notebooks_jl/6-QCi.ipynb) | [notebooks_py/6-QCi_python.ipynb](notebooks_py/6-QCi_python.ipynb) | The Julia notebook uses QCIOpt's default CondaPkg environment; its model-construction and exact-enumeration path is credential-free and covered by `make verify-qci-julia-local`. QCI submission is a separate explicit opt-in. The Python notebook has its own locked `eqc-models` environment and credential-free `make verify-qci-python-local` path; cloud submissions require explicit opt-in. |
| Canonical QUBO starter problems | [notebooks_jl/7-CanonicalProblems.ipynb](notebooks_jl/7-CanonicalProblems.ipynb) | Not available | Credential-free Julia notebook covered by `make verify-canonical-problems-julia`; exhaustive checks validate number partitioning, Max-Cut, and minimum vertex cover. |
| Order partitioning for A/B testing | [notebooks_jl/8-OrderPartitioning.ipynb](notebooks_jl/8-OrderPartitioning.ipynb) | Not available | Credential-free Julia notebook covered by `make verify-order-partitioning-julia`; all 64 assignments validate the grouped value/risk objective and decoded balances. |
| Altered cancer pathways from TCGA AML aggregates | [notebooks_jl/9-CancerGenomics.ipynb](notebooks_jl/9-CancerGenomics.ipynb) | Not available | Offline, credential-free Julia notebook covered by `make verify-cancer-genomics-julia`; a tiny incidence fixture is solved exhaustively and a seeded local sampler validates the committed aggregate without claiming clinical significance. |
| Local-first QAOA | [notebooks_jl/10-QAOA.ipynb](notebooks_jl/10-QAOA.ipynb) | Not available | Credential-free local Aer path covered by `make verify-qaoa-julia-local`; fixed seeds, exact baselines, circuit-resource audits, and a separate environment-gated IBM hardware cell keep the default tutorial bounded and service-free. |
| Local simulated and quantum annealing | [notebooks_jl/11-Annealing.ipynb](notebooks_jl/11-Annealing.ipynb) | Not available | Seeded `DWave.Neal.Optimizer` runs for all five starter models are covered by `make verify-annealing-julia-local`; exact checks cover the small models, while the D-Wave QPU path is credentialed, fail-closed, and explicitly optional. |
| QUBO decomposition and reconstruction | [notebooks_jl/12-Decomposition.ipynb](notebooks_jl/12-Decomposition.ipynb) | Not available | Application draft intended for `make verify-decomposition-julia-local`; 49-source-binary application with six-variable children, automatic formulation, public certificates and independent source audit. Published focused locks/imports validated; retained 16-attempt synthetic comparison distinguishes complete separator certificates from limited direct solving and heuristic sweeps. |

### Execution matrix

The Julia runtime estimates below assume the environment has already been
instantiated. A first run that downloads and precompiles packages can take
substantially longer. Remote-service runtimes include an unpredictable provider
queue after the local notebook work.

| Notebook or operation | Execution class | Make target | Expected runtime | Environment variables |
| --- | --- | --- | --- | --- |
| MathProg Python (1) | local LP, MILP, NLP, and MINLP solvers | `make verify-mathprog-python-local` | CI budget: 10 minutes including installation | Solver executables on `PATH`; no credentials |
| D-Wave Python local path (4) | local simulated annealing; QPU disabled | `make verify-dwave-python-local` | CI budget: 10 minutes including installation | None required; forces QPU access off |
| Optional CUDA-Q CPU (4) | Quantum annealing followed by a QAOA comparison on the same QUBO in the D-Wave notebook | `make verify-cudaq-python` | About 2 minutes after installation on the tested Linux CPU; CI budget: 10 minutes including installation | None required; Python 3.11–3.12; see [platform and size details](local-setup.md#optional-cuda-q) |
| QCi Python local path (6) | local/model-only; opt-in QCI cloud | `make verify-qci-python-local` | CI budget: 10 minutes including installation | None required; forces cloud access off |
| QCi Julia local path (6) | offline/model-only; opt-in QCI cloud | `make verify-qci-julia-local` | About 30–90 seconds after the environment is ready | None required |
| Canonical problems (7) | offline/portable | `make verify-canonical-problems-julia` | About 30–90 seconds | None required |
| Order partitioning (8) | offline/portable | `make verify-order-partitioning-julia` | About 30–90 seconds | None required |
| Cancer genomics (9) | offline/portable; opt-in live data refresh | `make verify-cancer-genomics-julia` | About 30–90 seconds | None required; reads only committed aggregates |
| QAOA (10) | local but heavyweight; opt-in IBM hardware | `make verify-qaoa-julia-local` | About 1–3 minutes | None required for local Aer |
| Annealing (11) | local but heavyweight; opt-in D-Wave QPU | `make verify-annealing-julia-local` | About 1–2 minutes | None required for local Neal |
| Decomposition (12) | offline/portable after installation | `make verify-decomposition-julia-local` | Per-cell execution limit: 180 seconds; CI budget: 15 minutes including installation | None required |
| Complete stable local series | offline and local credential-free aggregate | `make verify-five-starter-problems-julia-local` | About 2–5 minutes | None required |
| Refresh committed TCGA AML aggregates | opt-in live data refresh | `make refresh-tcga-aml` | About 1–3 minutes, network-dependent | None required; public cBioPortal access |
| Submit the QCi QUBO | opt-in QCI cloud | `make verify-qci-julia-cloud` | Local validation time plus the QCI queue | `QUBONOTEBOOKS_QCI_ENABLE_CLOUD=1` and `QCI_TOKEN` |
| Submit the QAOA circuit | opt-in IBM hardware | `make verify-qaoa-julia-ibm` | Local QAOA time plus the IBM queue | `QUBONOTEBOOKS_QAOA_ENABLE_IBM=1`, `QUBONOTEBOOKS_QAOA_IBM_BACKEND`, and `QISKIT_IBM_TOKEN`; optional `QISKIT_IBM_CHANNEL` and `QISKIT_IBM_INSTANCE` |
| Submit the annealing example | opt-in D-Wave QPU | `make verify-annealing-julia-qpu` | Local Neal time plus the D-Wave queue | `QUBONOTEBOOKS_ANNEALING_ENABLE_QPU=1` and `DWAVE_API_TOKEN` |

The three live-service targets validate their opt-in variables before starting,
fail unless a provider job is submitted, and are excluded from default CI.
Pass credentials only through the process environment or an approved secret
store. The local QCi, local QAOA, local annealing, and aggregate targets force
their provider switches and submission requirements off even if those values
are set in the caller's environment; the aggregate target also never refreshes
data. All six Julia notebook badges in this matrix target
`JuliaQUBO/QUBONotebooks` on the current default branch, `main`.

## Source of the Five Starter Problems

Notebooks 7 through 11 reimplement the five starter problems introduced in:

> A. R. Mazumder and S. Tayur, *Five Starter Problems: Solving Quadratic
> Unconstrained Binary Optimization Models on Quantum Computers*, in
> **TutORials in Operations Research**, INFORMS (2025), pp. 145–183.
> DOI: [10.1287/educ.2025.0288](https://doi.org/10.1287/educ.2025.0288)

The tutorial is also available as an
[arXiv preprint](https://arxiv.org/abs/2401.08989), and the authors publish a
[companion repository](https://github.com/arulrhikm/Solving-QUBOs-on-Quantum-Computers)
that is cited here for context.

### Clean-room reimplementation

The Julia notebooks are a clean-room reimplementation: their code, prose,
fixtures, and validation were written independently, with the mathematical
formulations checked against the published tutorial and cited primary sources.
No source cells, prose, saved output, or assets were copied from the companion
repository. Each of notebooks 7 through 11 repeats this citation in its own
References section.

## Local verification

Python dependency groups are managed with [`uv`](https://docs.astral.sh/uv/).
The portable notebook execution target covers the Python QUBO and
GAMA notebooks and writes executed copies to `.nbverify/`:

```bash
make verify-python-portable
```

For narrower checks, run the unit/link tests or one portable notebook target:

```bash
make test
make test-python
make test-julia
make test-qciopt-dwave-coexistence
make test-benchmarking-julia
make check-notebook-output-hygiene
make check-notebook-output-budgets
make verify-qubo-python
make verify-gama-python
make verify-mathprog-python-local
make verify-dwave-python-local
make verify-qci-julia-local
make verify-canonical-problems-julia
make verify-order-partitioning-julia
make verify-cancer-genomics-julia
make verify-qaoa-julia-local
make verify-annealing-julia-local
make verify-five-starter-problems-julia-local
make verify-decomposition-julia-local
make test-decomposition-julia
make verify-colab-bootstrap-output JULIA="julia +1.12"
make verify-colab-hosted
```

### Test design

Add a test when it protects a contract that can fail silently:

- derive and compare both sides of a relationship that must stay synchronized;
- execute behavior and assert its result; or
- guard a deliberate policy whose removal would otherwise leave every check
  green.

Avoid pinning documentation wording, literal notebook source lines, or build
target declarations. Invoking a build target is the behavioral check for
whether it exists. When a literal is unavoidable, use the narrowest stable
symbol or configuration key and leave a comment naming the recurring defect
class it protects.

### Julia figure reproducibility

CI executes the local QCi and canonical-problems notebooks and compares their
figures with the committed outputs. The canonical Max-Cut plot explicitly
publishes PNG so local kernels use the same representation as the book.
Execute these local lanes and check their figures with:

```bash
make verify-qci-julia-local verify-canonical-problems-julia
make check-julia-figure-reproducibility
```

The check uses the same `QCI_JULIA_NOTEBOOK` and
`CANONICAL_PROBLEMS_JULIA_NOTEBOOK` variables as the execution targets.

This gate covers the Julia notebooks executed in CI. Lessons 1 through 5 also
publish `image/png` explicitly for `Plots.jl` figures, seed their local
samplers, graph SVG glyph prefixes, and bootstrap resamples, and tag genuine
wall-clock timing plots `nondeterministic-output`. Local re-executions of
Lessons 1 through 3 can be checked directly with
`make check-figure-reproducibility NOTEBOOKS="notebooks_jl/1-MathProg.ipynb notebooks_jl/2-QUBO.ipynb notebooks_jl/3-GAMA.ipynb"`,
while `notebooks_jl/4-DWave.ipynb` preserves committed QPU hardware outputs on
its cloud cells and `notebooks_jl/5-Benchmarking.ipynb` leaves its eight
multi-instance sweep figure cells unstored in git for size budgets (with all
stored figures and repeated local runs reproducing byte for byte).

### Python verification environment

The generic verifier can execute selected notebooks by overriding `NOTEBOOKS`
and `UV_GROUP_FLAGS`. The locked Python verification environment intentionally
excludes the D-Wave Ocean stack because its current cloud client depends on
`diskcache`, which has GitHub advisory GHSA-w8v5-vhqr-4h9v and no patched
release. Separate targets exist for notebooks that do not require external
solver credentials or longer-running jobs; those credentialed and long-running
notebooks are not part of the default portable subset. The Python QCi notebook
uses a separate locked project under `notebooks_py/environments/qci` because
`eqc-models==0.20.2` requires `networkx<3`, while the shared `qubo` group
requires NetworkX 3. Its local target uses HiGHS and exhaustive enumeration;
cloud access requires `QUBONOTEBOOKS_QCI_ENABLE_CLOUD=1` and `QCI_TOKEN`.
`make test-qci-python` runs its focused boundary and numerical tests in the
same environment.

### Julia notebook environments

The Julia notebooks
avoid that cross-notebook coupling by activating one focused environment from
`notebooks_jl/environments/<notebook-key>`. The root `notebooks_jl` project is
the aggregate IJulia/sysimage and compatibility-test environment; it is not the
project shown to a notebook learner. Its QCIOpt/DWave coexistence contract is
still guarded by `make test-qciopt-dwave-coexistence`. After changing an
aggregate dependency, maintainers refresh both focused lock sets with
`make refresh-julia-notebook-environments JULIA="julia +1.10"` and then
`make refresh-julia-notebook-environments JULIA="julia +1.12"`.

### Decomposition development environment

Notebook 12 presents a fixed synthetic 49-binary departmental
choice/shared-platform application, with a six-logical-variable child limit.
It uses automatic ToQUBO penalties, public metadata/decoding, independent source
feasibility/objective checks and a source oracle over the two platform choices.
Its exercise and hidden-solution cells have been removed under the maintainer's
explicit application-example direction; regression checks live in tests.

The focused environment uses published QUBODrivers 0.6.6,
QUBODecomposition 0.1.4, QUBOTools 0.16.2, ToQUBO 0.7.1, JuMP 1.32.1,
MathOptInterface 1.54.0 and HiGHS.jl 1.24.0 (native HiGHS 1.15.0).
Both Julia 1.10.11 and 1.12.6 locks were generated by Pkg, preserving existing
package versions while replacing GLPK with HiGHS. Every focused dependency
uses registry tracking. The ready `RELEASE-GATES.toml` records release identities;
preprocessing integration remains separately gated.

HiGHS is also the LP/MILP backend in notebooks 1 and 2. Python uses `highspy`
from the locked `mathprog` or `qubo` group. No separate GLPK executable is
required. GAMA's `lib4ti2_jll` still depends internally on `GLPK_jll`; this is
not a notebook solver selection. `make test-highs-julia` executes the actual
Julia LP and QUBO/Ising linearization cells and independently checks their
objectives, feasibility and integer domains against tiny exhaustive references.

For focused lock updates, use Pkg in an isolated copy of each existing project
and runtime lock, preserving unrelated versions. The aggregate environment
contains older ecosystem releases and should not seed the decomposition lock.
Run one fresh-kernel correctness demonstration with the selected runtime using
its actual executable:

```bash
make verify-decomposition-julia-local JULIA="/absolute/path/to/reviewed/julia"
make test-decomposition-julia JULIA="/absolute/path/to/reviewed/julia"
```

The decomposition target starts Julia in its focused project before loading
IJulia. The shared notebooks environment supplies kernel tools through a fallback
load-path entry, while the focused lock controls shared dependencies. Preparation
uses the same order. Starting IJulia in the aggregate project and switching only
afterward can retain an older Preferences module and force repeated solver-cache
compilation. Other notebook targets retain their existing startup defaults. For
direct verifier use, select
`--julia-project notebooks_jl/environments/12-Decomposition`.

The numerical test target covers source arithmetic, malformed/missing source
assignments and pre-dispatch guards without duplicating the notebook's large
search solve. The notebook has one actual ExactSampler separator solve and reads
saved comparison observations; it never launches a campaign on open. The
retained [comparison audit](docs/decomposition-execution-plan.md) records a fresh
16-attempt HiGHS/ExactSampler cohort. Direct HiGHS and both complete separator
variants reached feasible value 259 with global logical certificates; partition
sweeps stopped at 205 with a 54-point source gap and no global certificate.
The direct measured attempts took 1.133–1.175 seconds and HiGHS separator attempts
0.332–0.383 seconds, including construction, compilation and source checks.
These are observations on one synthetic instance on a shared machine, not a
general solver ranking. Its structured source oracle already finds the optimum
with 96 option evaluations. The unchanged [historical GLPK cohort](notebooks_data/decomposition_comparison/history/glpk/README.md)
remains available with its original provenance.

The comparison has one warmup and three measured repetitions per method, with
no retries or replacement observations. Required CI separately executes one
correctness notebook per runtime and tests pre-dispatch resource guards. The
notebook's ExactSampler demonstration uses 16 child calls, 1029 parent evaluations
and 1024 exact assignments. It reads the retained comparison without launching
another campaign. See the comparison audit for execution and provenance details.

### Colab Python bridge

In native
Colab, every Python-backed Julia
notebook binds PythonCall to the hosted Python runtime before Julia package
instantiation. The bootstrap records both PythonCall's executable and
CondaPkg's `Null` backend as Julia preferences, because these packages decide
whether to compile CondaPkg and its micromamba or pixi backends before runtime
environment variables alone can take effect. Those preferences are written to
the selected notebook project. Notebooks 2–5, 9, and 11 ensure
the Ocean stack and notebook 6 ensures only `numpy` and `requests`, while
notebook 10 (`QiskitOpt` 0.8) runs natively via `Qiskit.jl` and
`QiskitIBMRuntime.jl` without requiring a Python or Conda runtime. This keeps
one notebook's Python bridge and compatibility constraints out of every other
notebook's setup.
On a cold Julia 1.12 IJulia kernel, QCIOpt and the
IJulia/PythonCall extension can otherwise emit failed-task-printer notices
during their first implicit compilation even when the imports succeed.

### Deferred package imports

Every notebook keeps package loading out of the default bootstrap and routes
each real import cell through the shared Colab-aware output-suppressed loader.
Notebooks 1–5 retain their lesson-scoped deferred import boundaries, while
notebooks 6–12 load one declared package group. Real package-load failures
still propagate from the helper.

### Colab bootstrap

The Julia notebooks use `scripts/notebook_bootstrap.jl` in Colab to clone the
repository when needed, activate
`notebooks_jl/environments/<notebook-key>`, and select that project's checked-in
manifest for the hosted Julia minor version. Every focused project has locks
for Julia 1.10.11 and Julia 1.12.6. Automatic selected-project
precompilation and broad eager import warm-up are disabled during setup so a
fresh runtime does not front-load compilation for packages the learner may not
use.
Set `QUBONOTEBOOKS_WARM_PACKAGES=1` to warm a notebook's declared imports or
`QUBONOTEBOOKS_PRECOMPILE=1` to explicitly precompile the selected project.

### Colab bootstrap smoke check

`make verify-colab-bootstrap-output JULIA="julia +1.12"` executes the real
setup, activation, and every marked real import cell from all Julia notebooks
through fresh IJulia kernels with Colab environment markers. It rejects
CondaPkg or package/artifact transcripts, manifest mismatch warnings, and pip
progress in the bootstrap output. No synthetic aggregate import is substituted;
activation and import cells must remain free of
CondaPkg environment setup, failed-task output, stack traces, cell errors, and
unexpected rendered values.
The smoke provides `pip`, Matplotlib, NumPy, and requests only in its isolated
runtime so notebooks can exercise Colab's preinstalled Python baseline without
adding the Ocean stack to the locked project environment.

For a cold test on Google's current hosted image, install the official Colab
CLI and run the hosted target after pushing the commit under test:

```bash
uv tool install --force git+https://github.com/googlecolab/google-colab-cli
make verify-colab-hosted
```

The first invocation that contacts Colab prompts for Google OAuth. By default,
the target tests all 12 Julia notebooks in separate fresh hosted CPU VMs so one
notebook's compiled package cache cannot hide another notebook's cold-start
behavior. Each invocation fetches the exact current Git commit, executes the
real bootstrap, activation, and marked import cells through Colab's native
`julia` kernelspec, rejects CondaPkg setup and failed-task output, rejects
bootstrap cells slower than three minutes, and releases its VM when the command
finishes. Select a narrower set of committed notebook keys with, for example,

```bash
QUBONOTEBOOKS_COLAB_NOTEBOOKS="9-CancerGenomics,11-Annealing" \
  make verify-colab-hosted
```

The hosted target consumes Colab quota and is intentionally an explicit
maintainer acceptance test rather than part of ordinary GitHub Actions. A
multi-notebook selection still uses one auto-released VM per notebook and can
therefore take substantially longer than a single-notebook check.

```bash
make verify-notebooks NOTEBOOKS="notebooks_py/2-QUBO_python.ipynb" UV_GROUP_FLAGS="--group docs --group qubo"
make verify-benchmarking-python
```
