Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

**Can quantum variance reduction return a genuine probability distribution in every run while remaining exactly unbiased?** This project gives a constructive answer for every finite output alphabet, including zero and arbitrarily rare probabilities.

Given a reversible source circuit and its inverse, the algorithm returns a classical random vector $`Z`$ satisfying, for $`d\ge2`$ outcomes and scale $`T\ge1`$,
With three outcomes, the [hard-cap estimator](science/hard-cap-estimator.md) returns a simplex vector with exact mean and at most $`48T`$ original source or inverse calls. Its covariance is at most $`100(\mathrm{diag}(p)-pp^{\mathsf T})/T^2`$, up to positive-semidefinite order. For $`p=(1-s,sq,s(1-q))`$, the mean-square error is $`O(s/T^2)`$ uniformly in $`q`$. A matching black-box lower bound gives the optimal dependence on the rare mass and the query budget.

Given a reversible source circuit and its inverse, the conditional-tree algorithm returns a classical random vector $`Z`$ satisfying, for $`d\ge2`$ outcomes and scale $`T\ge1`$,

```math
Z\in\Delta_d,\qquad
Expand All @@ -16,7 +18,9 @@ Here $`\Delta_d`$ is the set of nonnegative $`d`$-coordinate vectors summing to

At a fixed alphabet size, root mean squared error $`\varepsilon`$ needs $`O_d(\varepsilon^{-1})`$ expected source calls; ordinary categorical sampling needs $`\Theta(\varepsilon^{-2})`$ samples for the same worst-case objective. Quantum multivariate precision and exact unbiased vector estimation are already established. The addition is keeping **positivity, normalization and exact unbiasedness together**. The displayed dependence on $`d`$ is not optimal distribution-estimation complexity.

## How the construction works
## How the constructions work

The hard-cap construction estimates the three unconditioned marginals with independent bounded sine clocks from [Bounded-Unbiased-Amplitude-Estimation](https://github.com/GoGoKo699/Bounded-Unbiased-Amplitude-Estimation/blob/main/science/simplex-application.md). Each round assigns one third of each clock readout to its label and carries the remaining mass forward. A fixed schedule of shorter clocks reduces the variance of one final categorical draw.

A binary tree splits the total probability mass into label masses. Each node receives a random estimated global weight $`W`$ and chooses its scalar clock in proportion to $`TW`$. A conditional reflection of true subset mass $`s`$ costs $`O(1/s)`$ expected source calls, but exact unbiasedness gives $`\mathbb EW=s`$. The random budget cancels that inverse-mass cost. A minimum positive sine-clock readout separately pays for preparing the conditional specimen. The [proof](science/simplex-estimator.md) includes both parts.

Expand All @@ -28,6 +32,7 @@ Start with the [scientific route](science/README.md) or the [model and exact the

| To inspect | Read |
| --- | --- |
| Hard query cap, rare-outcome covariance and matching lower bound | [Hard-cap estimator](science/hard-cap-estimator.md) |
| Algorithm, boundary cases, minimum weights and martingale proof | [Simplex estimator](science/simplex-estimator.md) |
| Exact conditional circuit, coherent controls and reference preservation | [Conditional reflection](science/conditional-reflection.md) |
| Finite execution cap, gate synthesis, rounding, gates and workspace | [Precision and resources](science/precision-and-resources.md) |
Expand All @@ -39,15 +44,16 @@ The convex-range consequence preserves known affine constraints and positivity i

## Learn the construction

The [learning route](learning/README.md) starts from Andrew M. Childs's *Lecture Notes on Quantum Algorithms*, 17 April 2025. The [source-to-project bridge](learning/anchor-bridge.md) identifies the relevant foundations and supplies the missing links to this construction. The [30-milestone map](learning/milestones.md) follows the argument from reversible sources to the full estimator and its limits.
The [learning route](learning/README.md) connects the hard-cap construction to Lin Lin's *Lecture Notes on Quantum Algorithms for Scientific Computation* and the conditional tree to Andrew M. Childs's *Lecture Notes on Quantum Algorithms*. The [30-milestone map](learning/milestones.md) links the underlying quantum operations to both guarantees.

## Reproduce the finite checks

```bash
python3 verification/run_all.py
python3 verification/check_hard_cap.py
```

The [verification guide](verification/README.md) lists dependencies and the finite scope. It checks scalar moments with complex source garbage, complete finite tree laws, the actual controlled LCU and retry Kraus maps, and fresh-versus-reused stochastic tables. Floating-point checks support their tested cases; analytical proofs establish the uniform theorems.
The [verification guide](verification/README.md) lists dependencies and the finite scope. It checks scalar moments with complex source garbage, complete finite tree laws, the actual controlled LCU and retry Kraus maps, fresh-versus-reused stochastic tables, and the hard-cap moments and query count. Floating-point checks support their tested cases; analytical proofs establish the uniform theorems.

## Scope

Expand Down
4 changes: 2 additions & 2 deletions learning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The scientific question is how to estimate several outcome probabilities with quantum precision while returning a valid probability vector in every run. The construction joins a scalar sine-clock estimator, paid reflections about conditional states, and a probability tree whose random node weights determine its work.

The single educational anchor is **Andrew M. Childs, *Lecture Notes on Quantum Algorithms*, 17 April 2025**, available from the [official notes page](https://www.cs.umd.edu/~amchilds/qa/). The [anchor bridge](anchor-bridge.md) gives selective section readings, a notation dictionary, the steps supplied by this project, and a complete three-outcome example. The notes provide foundations rather than the simplex theorem.
The hard-cap route uses **Lin Lin, *Lecture Notes on Quantum Algorithms for Scientific Computation*, March 3, 2022**, the common source for the link to the bounded scalar clock. Start at the [fixed-budget bridge](anchor-bridge.md#5-a-fixed-budget-route). The conditional-tree route uses **Andrew M. Childs, *Lecture Notes on Quantum Algorithms*, 17 April 2025**, with [selective readings and a worked example](anchor-bridge.md).

The [30-milestone map](milestones.md) has twelve background milestones and eighteen narrative milestones. The first phase connects source circuits, reflections, phase information and charged queries. The second builds the conditional operation and random-mass tree into the theorem, then connects it to convex constraints, stochastic evolution and implementation limits. These are common understanding targets for the project; they do not record an individual reader's assessment or progress.

Expand All @@ -15,4 +15,4 @@ The [30-milestone map](milestones.md) has twelve background milestones and eight
| The proofs without the learning route | [Science index](../science/README.md) |
| What the finite checks establish | [Verification guide](../verification/README.md) |

Every route preserves the same qualifications: fixed-alphabet Heisenberg scaling concerns expected source/inverse work with unbounded stopping tails; exactness uses ideal operations; finite caps and synthesis introduce a separately controlled approximation. Positivity and normalization do not make nonlinear reuse of an estimate unbiased.
The three-outcome route gives exact ideal estimation under a hard cap. The conditional-tree route gives the general finite-alphabet result in expected work and handles synthesis and truncation separately. See [fresh and reused stochastic tables](../science/convex-composition.md#5-why-one-random-table-cannot-be-reused-without-analysis) for the role of independence in downstream uses.
8 changes: 7 additions & 1 deletion learning/anchor-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A source can produce three labels, but its probabilities are unknown. Measuring it repeatedly gives a frequency vector: every entry is nonnegative, the entries sum to one, and their means are correct. The aim here is to keep those properties while reducing the mean-square error quadratically with expected coherent source work. A small coordinate error alone does not ensure this: clipping or renormalizing estimates can change their means.

The single anchor is **Andrew M. Childs, *Lecture Notes on Quantum Algorithms*, 17 April 2025**. Use the [official notes page](https://www.cs.umd.edu/~amchilds/qa/) and its [dated document](https://www.cs.umd.edu/~amchilds/qa/qa.pdf). Page references below are the printed page numbers. The [milestones](milestones.md) organize this project's story; the notes are selective support, not a book-length prerequisite.
The educational anchor for the conditional-tree route is **Andrew M. Childs, *Lecture Notes on Quantum Algorithms*, 17 April 2025**. Use the [official notes page](https://www.cs.umd.edu/~amchilds/qa/) and its [dated document](https://www.cs.umd.edu/~amchilds/qa/qa.pdf). Page references below are the printed page numbers. The [milestones](milestones.md) organize this project's story; the notes are selective support, not a book-length prerequisite.

## 1. Selective readings

Expand Down Expand Up @@ -118,3 +118,9 @@ The minimum positive weight is a second link. Every visited node has $`W_S\ge T^
The [convex-composition page](../science/convex-composition.md) translates the returned weights into known finite convex combinations and fresh stochastic transition tables. It also gives an explicit counterexample to reusing one table under powers. The [precision page](../science/precision-and-resources.md) explains why a finite execution cap and finite gate synthesis preserve a controlled approximation rather than the full exact ideal claim. These boundaries belong to the theorem's meaning, not to optional implementation details.

Use the [milestones](milestones.md) for the full local-to-global route, or the [science index](../science/README.md) for direct access to the canonical statements and proofs. Research citations in [related work](../references/related-work.md) establish attribution; they are not additional educational anchors.

## 5. A fixed-budget route

For the three-outcome hard-cap result, use Lin Lin's [*Lecture Notes on Quantum Algorithms for Scientific Computation*](https://math.berkeley.edu/~linlin/qasc/qasc_notes.pdf), March 3, 2022. Sections 3.3–3.5 (printed pages 45–52) connect controlled powers to clock measurements. Section 4.2 (pages 57–58) turns the eigenphases of a Grover rotation into probabilities. Apply those operations to each singleton label using the same reversible source. The inherited [sine-clock proof](../science/scalar-clock.md) supplies the bounded readout, exact mean and variance used in the resulting construction.

For [one worked round](https://github.com/GoGoKo699/Bounded-Unbiased-Amplitude-Estimation/blob/main/science/simplex-application.md), use scalar readouts $`X=(1,1/2,0)`$. The three labels receive masses $`(1/3,1/6,0)`$. If the suffix returns label three, it receives the remaining half, giving $`(1/3,1/6,1/2)`$. In the [hard-cap proof](../science/hard-cap-estimator.md), independence of the suffix gives the exact mean, and four rounds at each of the decreasing clock sizes control the squared residual. The [covariance lower bound](../science/hard-cap-estimator.md#black-box-lower-bound) uses a small rotation of the source and the paid query model to check that precision in every direction.
6 changes: 3 additions & 3 deletions learning/milestones.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Thirty milestones: from one source to a valid random probability vector

This is the common understanding map for Quantum Simplex Estimation. Its single educational anchor is Andrew M. Childs, *Lecture Notes on Quantum Algorithms*, **17 April 2025**, available from the [author's course page](https://www.cs.umd.edu/~amchilds/qa/). The source pointers below identify exact sections in that version. The anchor supplies quantum-circuit, amplification, phase-estimation and block-encoding foundations; the statistical argument, inherited sine measurement and present conditional tree are supplied by this repository and its credited research sources.
This is the common understanding map for Quantum Simplex Estimation. The conditional-tree anchor is Andrew M. Childs, *Lecture Notes on Quantum Algorithms*, **17 April 2025**, available from the [author's course page](https://www.cs.umd.edu/~amchilds/qa/). The source pointers below identify exact sections in that version. The anchor supplies quantum-circuit, amplification, phase-estimation and block-encoding foundations; the statistical argument, inherited sine measurement and present conditional tree are supplied by this repository and its credited research sources.

The map has **12 background/preliminaries milestones, M01–M12, and 18 narrative/innovation milestones, M13–M30**. The first phase joins a labelled quantum experiment, a valid probability estimate and the operations that can be paid for. The second builds the conditional reflection and random-mass tree, proves their global statistical and resource guarantees, then explains composition and implementation limits. This allocation follows the two ingredients that must meet: a quantum operation must remain coherent inside a split, and its random classical output must remain a valid probability vector outside it.

Expand Down Expand Up @@ -305,7 +305,7 @@ Each milestone has a conceptual target and earlier dependencies. The map covers
**Phase:** narrative/innovation.

- **Central question:** What can now be produced, after the inherited tools and all material qualifications are stated?
- **Understanding target:** Give one connected account from the original paid source to an unbiased feasible probability vector, its expected-work precision law, and its convex/stochastic uses. Credit existing scalar, multivariate and debiasing results, and retain the limits on dimension, stopping tails, finite precision, coherent multirow use and unrestricted classical advantage.
- **Understanding target:** Give one connected account from the original paid source to an unbiased feasible probability vector, the conditional-tree and hard-cap precision laws, and its convex/stochastic uses. Credit existing scalar, multivariate and debiasing results, and retain the limits on dimension, stopping tails, finite precision, coherent multirow use and unrestricted classical advantage.
- **Dependencies and story role:** M12 and M23–M29. This integrates both phases into the complete scientific account rather than adding another extension.
- **Conceptual connection:** The surviving addition is the simultaneous per-realization convex constraint and exact ideal mean, supported by an executable conditional construction and global cost proof.
- **Source pointers:** Childs §§19.3, 21.1–21.2, 28.3 and 29.1 for the assembled toolbox; [model theorem](../science/model.md#5-the-finite-alphabet-result), [operational contribution and attribution](../references/related-work.md#5-operational-scope), [convex/stochastic scope](../science/convex-composition.md#6-what-this-capability-adds) and [precision account](../science/precision-and-resources.md).
- **Source pointers:** Childs §§19.3, 21.1–21.2, 28.3 and 29.1 for the assembled toolbox; [model theorem](../science/model.md#5-the-finite-alphabet-result), [operational contribution and attribution](../references/related-work.md#5-operational-scope), [convex/stochastic scope](../science/convex-composition.md#6-what-this-capability-adds) and [precision account](../science/precision-and-resources.md). For the fixed-budget proof and its directional lower bound, use [Lin Lin §§3.3–3.5 and 4.2 through the fixed-budget bridge](anchor-bridge.md#5-a-fixed-budget-route).
6 changes: 4 additions & 2 deletions llms.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Quantum Simplex Estimation

This repository studies exactly unbiased classical probability-vector estimates whose every realization lies in the simplex. Fixed-alphabet mean squared error decreases quadratically with expected paid reversible-source queries. The algorithm has unbounded stopping-time tails; finite capped versions have controlled bias. Do not claim optimal dimension dependence or an end-to-end hardware advantage.
This repository studies exactly unbiased classical probability-vector estimates whose every realization lies in the simplex. The three-outcome fixed schedule has a hard original-source query cap and exact ideal unbiasedness. The conditional tree gives a general finite-alphabet result with an expected query bound and unbounded stopping-time tails; its truncated implementation has controlled bias. Do not claim optimal dimension dependence or an end-to-end hardware advantage.

## Reading by purpose

- Three outcomes under a hard query cap, with matching directional covariance: science/hard-cap-estimator.md and verification/check_hard_cap.py.

- Story and headline: README.md and science/README.md.
- Study route: learning/README.md, the Childs (17 April 2025) bridge in learning/anchor-bridge.md, and the fixed project map M01–M30 in learning/milestones.md.
- Study route: learning/README.md, the Lin Lin (March 3, 2022) and Childs (17 April 2025) sections in learning/anchor-bridge.md, and the fixed project map M01–M30 in learning/milestones.md.
- Exact source/access/output model and theorem: science/model.md.
- Full algorithm and unbiasedness, zero-mass, minimum-weight, martingale-error and expected-query proofs: science/simplex-estimator.md.
- Inherited scalar sine-clock circuit and moment proof: science/scalar-clock.md.
Expand Down
11 changes: 11 additions & 0 deletions references/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,14 @@ @misc{Childs2025
note = {Version dated 17 April 2025; selected educational anchor},
url = {https://www.cs.umd.edu/~amchilds/qa/qa.pdf}
}

@inproceedings{schmon2019bernoullirace,
title = {Bernoulli Race Particle Filters},
author = {Schmon, Sebastian M. and Doucet, Arnaud and Deligiannidis, George},
booktitle = {Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics},
series = {Proceedings of Machine Learning Research},
volume = {89},
pages = {2350--2358},
year = {2019},
url = {https://proceedings.mlr.press/v89/schmon19a.html}
}
4 changes: 4 additions & 0 deletions references/related-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ The resulting capability is quantum variance reduction within a known finite cla

These propagation identities are elementary consequences of conditional expectation and the simplex theorem. They do not assert a new mixing principle or an unrestricted trajectory-sampling speedup. Sampling a label directly from the supplied source already takes one source execution. Reusing the same random table in nonlinear powers can introduce bias. The algorithm has unbounded stopping tails, and finite precision or noise requires a separate approximation budget. The [lower-bound discussion](../science/lower-bounds.md) keeps the fixed-dimension precision conclusion separate from the unresolved optimal joint dependence on dimension.

## 6. Fixed clocks under a hard cap

The [hard-cap construction](../science/hard-cap-estimator.md) inherits the scalar clock above and borrows the accept-and-repeat rule of a [Bernoulli race](https://proceedings.mlr.press/v89/schmon19a.html). Schmon, Doucet and Deligiannidis (AISTATS 2019) use that rule to sample a categorical label exactly from weights available through unbiased estimates. Here the algorithm averages the label choice and acceptance coin conditional on all three scalar readouts, returns the resulting probability vector, and terminates the race with one ordinary source draw. The dyadic precision schedule gives a hard original-source query cap and a covariance bound proportional to categorical covariance. Van Apeldoorn's simplex projection and Sidford–Zhang's exact vector debiasing give the different guarantees described in §§1–2.

Bibliographic data are collected in [references.bib](references.bib).
Loading
Loading