diff --git a/docs/algorithms/hhl.md b/docs/algorithms/hhl.md index 948abd5..1f18c18 100644 --- a/docs/algorithms/hhl.md +++ b/docs/algorithms/hhl.md @@ -328,3 +328,7 @@ The details of the interface are in the [API reference](../api/algorithms.md). I change only one parameter while you experiment, change `n_eigenvalue_qubits`: it controls the resolution of the phase estimation. The papers are listed in [References](references.md#hhl-linear-systems). + +To decide whether HHL is worth using on your problem, use the +[checklist of its conditions](https://eigenorbit.com/library/algorithms/hhl-harrow-hassidim-lloyd/) +in the EigenOrbit Library, which comes with resource estimates. diff --git a/docs/algorithms/hqnn.md b/docs/algorithms/hqnn.md index 4138256..4567d31 100644 --- a/docs/algorithms/hqnn.md +++ b/docs/algorithms/hqnn.md @@ -90,3 +90,8 @@ modules. Other HQNN examples focus on one dataset each: [circles](../examples/circles-hqnc.md), and [concrete strength](../examples/cement-hqnr.md). The papers are listed in [References](references.md#hqnn-hybrid-quantum-neural-networks). + +The EigenOrbit Library explains +[what a quantum neural network and a hybrid one are](https://eigenorbit.com/library/concepts/quantum-neural-networks/), +and tests whether the quantum layer helps by +[comparing an HQNN with a classical network of the same size](https://eigenorbit.com/library/comparisons/hqnn-vs-classical-neural-network/). diff --git a/docs/algorithms/index.md b/docs/algorithms/index.md index 4bee04c..532e8ae 100644 --- a/docs/algorithms/index.md +++ b/docs/algorithms/index.md @@ -4,7 +4,8 @@ These pages explain how each algorithm in eigenkit works: what happens between t data that you put in and the result that it gives back. For the interface itself (the arguments of the constructors, the return types, saving a model), see the [Estimators guide](../user-guide/estimators.md) and the API Reference, which is -generated from the code. +generated from the code. For when a method is worth using, and how its results compare +with a classical baseline, see the [EigenOrbit Library](https://eigenorbit.com/library/). | Page | What it computes | What it gives back | |---|---|---| diff --git a/docs/algorithms/iqae.md b/docs/algorithms/iqae.md index 49a3c5c..7d7f0ca 100644 --- a/docs/algorithms/iqae.md +++ b/docs/algorithms/iqae.md @@ -75,3 +75,8 @@ and issues a warning. `epsilon` must be in \((0, \pi/8)\). The details of the interface are in the [API reference](../api/algorithms.md). The same idea also appears in `PortfolioRiskEstimator`, where the ancilla marks a tail loss. The papers are listed in [References](references.md#iqae-amplitude-estimation). + +The EigenOrbit Library measures +[amplitude estimation against Monte Carlo](https://eigenorbit.com/library/comparisons/qae-vs-monte-carlo/) +to show when the quadratic speed-up is real, and repeats the comparison for +[Value at Risk and Conditional Value at Risk](https://eigenorbit.com/library/finance/var-cvar-risk-estimation-iqae/). diff --git a/docs/algorithms/qaoa.md b/docs/algorithms/qaoa.md index 5db228c..9dd3b5f 100644 --- a/docs/algorithms/qaoa.md +++ b/docs/algorithms/qaoa.md @@ -65,3 +65,8 @@ small. The current mixer is the standard transverse field \(\sum_i X_i\). The interface of the solver is in the [QAOA reference](../api/optimization/qaoa.md). QAOA also appears in the [architecture notes](../architecture-diagrams.md). The papers are listed in [References](references.md#qaoa-combinatorial-optimisation). + +The EigenOrbit Library shows +[QAOA on a real problem](https://eigenorbit.com/library/algorithms/qaoa-quantum-approximate-optimization-algorithm/): +how to write the problem for it, which classical baseline to compare it with, and how +to read the results. diff --git a/docs/algorithms/qsvc-qsvr.md b/docs/algorithms/qsvc-qsvr.md index 00ce917..f719092 100644 --- a/docs/algorithms/qsvc-qsvr.md +++ b/docs/algorithms/qsvc-qsvr.md @@ -86,3 +86,7 @@ and the [Quantum Kernels guide](../user-guide/kernels.md) to inspect the kernel matrix. The Iris example of hyperparameter optimisation uses `QSVC` inside [GridSearchCV](../examples/hpo-qsvc-iris.md). The papers are listed in [References](references.md#qsvc-qsvr-quantum-kernels). + +The EigenOrbit Library +[benchmarks quantum kernels against tuned classical SVMs](https://eigenorbit.com/library/comparisons/qsvm-vs-classical-svm/), +and shows how to run such a comparison fairly. diff --git a/docs/algorithms/reservoir.md b/docs/algorithms/reservoir.md index 676d681..919af38 100644 --- a/docs/algorithms/reservoir.md +++ b/docs/algorithms/reservoir.md @@ -141,3 +141,7 @@ and the parts in [memory-capacity example](../examples/reservoir-memory.md) is where the results above come from. The papers are listed in [References](references.md#quantum-reservoir-computing). + +The EigenOrbit Library +[tests a quantum reservoir on volatility forecasting](https://eigenorbit.com/library/finance/market-volatility-forecasting-qrc/) +against a classical baseline, and shows how to test one on your own series. diff --git a/docs/algorithms/vqe.md b/docs/algorithms/vqe.md index 9b1c7ca..8323673 100644 --- a/docs/algorithms/vqe.md +++ b/docs/algorithms/vqe.md @@ -79,7 +79,9 @@ and the parities in a balanced tree instead, which shortens these strings to ### Step 3: choose an ansatz The ansatz is the trial circuit whose angles the optimiser tunes. The library -provides two, which balance physical accuracy against the depth of the circuit. +provides two, which balance physical accuracy against the depth of the circuit. For +the concept itself, see the [ansatz explainer](https://eigenorbit.com/library/concepts/ansatz/) +in the EigenOrbit Library. **Hardware-efficient.** This is the default. It has layers of rotations and entangling gates, chosen because a device can run them, not because chemistry @@ -135,3 +137,7 @@ The interface of the solver is in the [chemistry reference](../api/chemistry/vqe and the [Chemistry guide](../user-guide/chemistry.md) covers the whole pipeline with working code. The papers are listed in [References](references.md#vqe-the-variational-quantum-eigensolver). + +The EigenOrbit Library uses VQE to +[find the bond lengths of two molecules](https://eigenorbit.com/library/chemistry-materials/molecular-optimization-vqe/), +and checks the results against exact classical chemistry. diff --git a/docs/gen_ref_pages.py b/docs/gen_ref_pages.py index 5e7a866..7c4b089 100644 --- a/docs/gen_ref_pages.py +++ b/docs/gen_ref_pages.py @@ -1,5 +1,8 @@ """Generate API reference pages at build time via mkdocs-gen-files.""" +import ast +import json +import re from pathlib import Path import mkdocs_gen_files @@ -168,6 +171,102 @@ def write_member_directive(fd, module_id: str, member: str) -> None: fd.write("\n") +# What a search result shows for a page: its