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
52 changes: 52 additions & 0 deletions .github/workflows/hosted-math.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Hosted mathematics

on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: hosted-math-${{ github.ref }}
cancel-in-progress: true

jobs:
capture:
runs-on: ubuntu-24.04
timeout-minutes: 30
env:
SOURCE_REVISION: ${{ github.event.pull_request.head.sha || github.sha }}
steps:
- name: Check out the exact source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ env.SOURCE_REVISION }}
persist-credentials: false
- name: Prepare Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '20'
- name: Install isolated capture dependencies
run: |
npm install --prefix "$RUNNER_TEMP/hosted-dependencies" playwright@1.56.1 mathjax-full@3.2.1
"$RUNNER_TEMP/hosted-dependencies/node_modules/.bin/playwright" install --with-deps chromium
- name: Capture actual pinned GitHub pages
env:
NODE_PATH: ${{ runner.temp }}/hosted-dependencies/node_modules
run: |
node verification/hosted-tools/capture_hosted_math.cjs \
--root "$GITHUB_WORKSPACE" \
--repository "$GITHUB_REPOSITORY" \
--revision "$SOURCE_REVISION" \
--contract verification/hosted-contract.json \
--output "$RUNNER_TEMP/hosted-evidence"
- name: Retain reports and screenshots
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: hosted-math-${{ env.SOURCE_REVISION }}
path: ${{ runner.temp }}/hosted-evidence
if-no-files-found: warn
retention-days: 7
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ With the additional promise of a known depolarizing probability below one, the s

The [science guide](science/README.md) connects the proof dependencies, and [llms.txt](llms.txt) maps reader intentions to the same authoritative files.

## Learn the project

The [learning guide](learning/README.md) starts from a physical channel and follows the mechanism to the dimension frontier. Its single educational anchor is John Watrous, *The Theory of Quantum Information* (2018). The [source bridge](learning/WATROUS_BRIDGE.md) translates the book’s conventions and identifies the research ingredients supplied here. The [30-milestone map](learning/MILESTONES.md) connects background objects to the complete contribution; it is a common understanding map rather than a record of a reader’s progress.

## Reproduce the finite checks

```bash
Expand Down
286 changes: 286 additions & 0 deletions learning/MILESTONES.md

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions learning/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Learn the channel-coherentization result

Imagine being given a device that applies an unknown quantum process. You can send a register through it and retain the visible output. The device may lose information into an environment that you cannot inspect. A spectral quantum algorithm can require a different interface: a unitary operation on a larger register whose designated matrix block contains the process's Liouville matrix.

The scientific question is how many ordinary device uses are needed to build that interface. For every unknown unital channel, the compiler has quadratic dimension cost at fixed accuracy. A matching worst-case obstruction already comes from noiseless unknown unitary channels. Error is measured on the whole output operation, including data entangled with an untouched reference; an accurate value of one observable would be a weaker task.

| Object | What it supplies |
| --- | --- |
| Ordinary channel call | One physical input-output use of the unknown process |
| Liouville matrix | A coefficient representation of the same linear map on operators |
| Coherent target | A compiled unitary operation acting on arbitrary vectors of an enlarged data space |

Writing down a matrix representation does not supply the corresponding quantum gate. In particular, the two vectorization registers are actual computational data registers in the compiled target; their input need not be the coefficients of a physical density matrix.

## Start with one source and the project map

The educational anchor is **John Watrous, *The Theory of Quantum Information* (2018)**. The [Watrous bridge](WATROUS_BRIDGE.md) identifies the relevant sections, translates notation, and supplies the steps from textbook channel theory to this problem. It is a route into the science, rather than an instruction to read the whole book first.

The [30-milestone map](MILESTONES.md) is the common understanding route. Its 12 background milestones assemble individual objects into the complete input-output task. Its 18 narrative milestones assemble the compiler, the converse and their meaning. This allocation follows the project: understanding the representation is the starting point, while the main work is connecting the construction's resource accounting to an unrestricted dimension obstruction.

| Part of the route | Main question | Connected reading |
| --- | --- | --- |
| M01–M12: background | What is given, what is requested, and how is error measured? | [Watrous bridge](WATROUS_BRIDGE.md) and [model](../science/model.md) |
| M13–M23: construction | How do ordinary calls become a complete coherent operation? | [Collision compiler](../science/collision-compiler.md), [block encoding](../science/block-encoding.md) and [resources](../science/resources.md) |
| M24–M26: converse | Why must even the best universal compiler pay quadratically in dimension? | [Inverse extraction and lower bound](../science/dimension-lower-bound.md) |
| M27–M30: synthesis | What can the interface do, what was checked, and what is actually matched? | [Examples](../science/examples.md), [verification](../verification/README.md), [related work](../references/RELATED_WORK.md) and [interpretation](../science/interpretation.md) |

The map records each milestone's understanding target, dependencies and exact source pointers. The [scientific reading route](../science/README.md) provides a direct path through the proofs.

## Follow the causal chain

**Unitality enters twice.** A unital channel preserves the maximally mixed state. First, this makes its Liouville matrix a contraction, so a constant block normalization is possible. Second, it makes the relevant program marginal maximally mixed. These are different uses of the same promise; the second is what improves the collision cost.

**One ordinary call supplies one consumable program.** Prepare a known maximally entangled state, apply the unknown channel to one half, and use a known controlled swap. The resulting mixed program is not a purification or a reversible description of the channel. Its first collision moment is the average Hamiltonian seen by the data and contains the desired Liouville matrix. Its second moment controls fluctuations about that average; it is exactly the identity in the unital case. The inherited program-variance estimate turns these evaluated moments into a complete-channel error bound.

**Many small collisions build the target.** The two programs are paired with opposite known collision signs. Fresh programs let the errors be composed and every channel call counted. Changing the signs or controlling the known interactions generates inverse or controlled target evolutions; it does not require an inverse or controlled invocation of the unknown device.

**The block guarantee concerns the whole operation.** A sine block and a bounded inverse-sine polynomial produce an accurate designated block. Stable unitary completion then shows that the entire implemented channel is close to one exact block unitary with block $`\mathsf H(L_{\mathcal E})/\pi`$. This is stronger than checking that one submatrix is accurate on its own.

**The converse exposes an inverse capability.** For an unknown unitary channel, the doubled Liouville lift contains a sector acting as the inverse unitary on one data factor. A universal coherent compiler would therefore implement an unknown inverse. The established inversion fidelity bound supplies the quadratic dimension obstruction. This argument tests the capability of the output interface, rather than the variance analysis of the proposed construction.

## Read the conclusion with its conditions

The matched law holds when accuracy is fixed at a sufficiently small constant and the evolution time is fixed appropriately:

```math
Q(d)=\Theta(d^2).
```

Here $`d`$ is the unknown channel's input dimension. For $`n`$ input qubits, $`d=2^n`$, so the worst-case conversion costs $`\Theta(4^n)`$ ordinary calls. This is a statement about building a coherent interface, not an application-level quantum–classical speedup.

The construction's dependence on precision and time is an upper bound; the dimension converse does not make those dependences optimal. The supplied channel is unital and memoryless, and known gates, finite synthesis, disposable programs and workspace remain charged separately. The [known-noise example](../science/examples.md) is an achievable recovery construction with a calibrated noise parameter, not an optimal purification law.

The learning route uses the same definitions and scope as the proofs. Finite diagnostics help check conventions and examples; they do not replace the analytical all-channel guarantee.
136 changes: 136 additions & 0 deletions learning/WATROUS_BRIDGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# From Watrous to the coherent channel interface

The single background anchor is John Watrous, *The Theory of Quantum Information* (Cambridge University Press, 2018), available through [the author's book page](https://cs.uwaterloo.ca/~watrous/TQI/). The locators below refer to the author's standard-layout manuscript, whose section and equation numbers were checked against the author-hosted chapters. The book is linked, not redistributed.

The book supplies the language for channels, their matrix representations, and error on entangled inputs. This project asks an additional algorithmic question: how many ordinary uses of an unknown channel are needed to implement a coherent evolution containing its matrix? A representation theorem identifies the desired matrix; an access model determines what it costs to use that matrix in a circuit.

## The relevant parts of the book

| Book locator | Role in this project | Project destination |
| --- | --- | --- |
| §1.1.2, “The operator-vector correspondence,” Eqs. (1.127)–(1.134) | Fix tensor order, conjugation, and the operator-to-vector isometry. | [Model and conventions](../science/model.md) |
| §2.2.1 and §2.2.2, “Representations and characterizations of channels,” especially Eqs. (2.60)–(2.66) | Distinguish the physical channel, its natural representation, and its Choi representation. | [Model](../science/model.md), then [collision compiler](../science/collision-compiler.md) |
| §2.2.3, “Examples of channels and other mappings,” Eqs. (2.154)–(2.155) | Check the depolarizing channel in both representations. | The worked example below and [scientific examples](../science/examples.md) |
| §3.1.1 and §3.2, Definition 3.11 | Relate observable probabilities, trace distance, and the book's fidelity convention. | [Dimension lower bound](../science/dimension-lower-bound.md) |
| §3.3.2, Definition 3.43, and §3.3.3, “Distances between channels” | Understand the reference system and the completely bounded trace norm. | [Full channel error](../science/model.md#error-convention) |
| §4.2.2, “Fixed-points, spectra, and norms of unital channels,” Theorem 4.27 | Obtain the Hilbert–Schmidt contraction of a unital channel. | [Target normalization](../science/model.md#target-evolution-and-normalization) |

These are targeted entry points. Later sections on capacities, entropy, and entanglement theory are not prerequisites for this project's main proof. The [milestone map](MILESTONES.md) organizes the background and research argument separately.

## Translate the conventions before using the formulas

### Vectorization and the two representations

Watrous uses $`\mathrm{vec}(E_{ij})=|i\rangle\otimes|j\rangle`$. This project uses exactly that tensor convention:

```math
|X\rangle\!\rangle
=\mathrm{vec}(X)
=\sum_{i,j}X_{ij}|i\rangle|j\rangle,
\qquad
|AXB^\dagger\rangle\!\rangle
=(A\otimes\overline B)|X\rangle\!\rangle.
```

The explicit formula is the convention: software that flattens a matrix into a column can order its entries differently. In particular, the unitary channel $`X\mapsto UXU^\dagger`$ has matrix $`U\otimes\overline U`$ here. Watrous writes $`A^*`$ for the adjoint; this project writes $`A^\dagger`$.

| Object | Watrous | This project |
| --- | --- | --- |
| Natural/Liouville representation | $`K(\mathcal E)\mathrm{vec}(X)=\mathrm{vec}(\mathcal E(X))`$ | $`L_{\mathcal E}=K(\mathcal E)`$ |
| Entangled vector | $`\mathrm{vec}(I)`$, of squared norm $`d`$ | $`\lvert\Phi_d\rangle=\mathrm{vec}(I)/\sqrt d`$ |
| Choi operator/state | $`J(\mathcal E)=(\mathcal E\otimes\mathrm{id})(\mathrm{vec}(I)\mathrm{vec}(I)^\dagger)`$ | $`J_{\mathcal E}=J(\mathcal E)/d`$ |
| Tensor legs of the Choi object | Output first, input second | The same |

For a trace-preserving map, the book's Choi operator has trace $`d`$; the project's Choi state has trace one. Thus a physical call on one half of $`|\Phi_d\rangle`$ prepares $`J_{\mathcal E}`$, with no extra factor of $`d`$. The normalized reconstruction formula is

```math
\mathcal E(X)
=d\,\mathrm{Tr}_{\mathrm{input}}
\!\left[J_{\mathcal E}(I_{\mathrm{output}}\otimes X^{\mathsf T})\right].
```

Trace preservation gives $`\mathrm{Tr}_{\mathrm{output}}J_{\mathcal E}=I/d`$. Unitality gives the other marginal, $`\mathrm{Tr}_{\mathrm{input}}J_{\mathcal E}=I/d`$. Both identities enter the compiler's second-moment calculation. Theorem 4.27 gives $`\Vert L_{\mathcal E}\Vert_\infty=1`$ for a unital channel; this is the spectral norm of its matrix, corresponding to the induced Hilbert–Schmidt norm on operators, rather than the trace norm of its Choi state.

### Distance and fidelity

The project's $`\Vert\cdot\Vert_\diamond`$ is Watrous's completely bounded trace norm, without a factor of one half. For states, write $`D(\rho,\sigma)=\tfrac12\Vert\rho-\sigma\Vert_1`$. Consequently a compiler guarantee of unhalved diamond error $`\delta`$ implies output trace distance at most $`\delta/2`$, even with an untouched reference. Any specified measurement probability changes by at most $`\delta/2`$.

Watrous's Definition 3.11 uses the **unsquared** fidelity

```math
F_{\mathrm W}(\rho,\sigma)=\Vert\sqrt\rho\sqrt\sigma\Vert_1.
```

The lower bound instead uses overlap with the pure normalized Choi state of the ideal unitary:

```math
F_{\mathrm{ch}}(\mathcal R,\mathrm{Ad}_V)
=\langle\Phi_V|J_{\mathcal R}|\Phi_V\rangle
=F_{\mathrm W}\!\left(J_{\mathcal R},|\Phi_V\rangle\langle\Phi_V|\right)^2,
\qquad |\Phi_V\rangle=(V\otimes I)|\Phi_d\rangle.
```

Here $`F_{\mathrm{ch}}`$ is a squared fidelity, not the book's $`F_{\mathrm W}`$. Measuring the projector $`|\Phi_V\rangle\langle\Phi_V|`$ directly gives $`F_{\mathrm{ch}}\ge1-\delta/2`$ from diamond error $`\delta`$. This fixes the factor used in the lower-bound reduction.

## Where the book stops and the research task starts

The natural and Choi representations describe the same linear map, but the physical operations they make available differ. An ordinary channel call produces a state from an input state. It does not supply matrix entries, a controlled channel, an adjoint, or a reversible environment interface. The existence of a Stinespring representation in §2.2.2 does not make its dilation an accessible oracle. Likewise, an algebraic reshuffling or partial transpose of a Choi matrix is not automatically a physical operation on an unknown specimen.

The research target is a new unitary on a flag qubit and two data registers:

```math
U_{\mathcal E}(t)=e^{-it\mathsf H(L_{\mathcal E})},
\qquad
\mathsf H(A)=\begin{pmatrix}0&A\\A^\dagger&0\end{pmatrix}.
```

Its input is an arbitrary vector in the enlarged space, and its guarantee is a channel guarantee on arbitrary reference-entangled inputs. Repeated physical channel calls prepare fresh normalized Choi specimens; known interactions consume those specimens to approximate the target. Their preparation, collision error, circuit synthesis, and workspace need an explicit resource account. This conversion is the gap between knowing what $`L_{\mathcal E}`$ means and having a gate that coherently uses it.

Watrous supports the background statements above. The compiler itself depends on the later Liouville-program construction of Niwa and collaborators, marginal-sensitive Hamiltonian-mapping analysis, and a cited collision-variance lemma. The dimension lower bound depends on the later universal-unitary-inversion theorem of Chen, Yu, and Zhang. These are research dependencies, documented with their precise roles in [related work](../references/RELATED_WORK.md); they are not additional background anchors or results supplied by the book. For the direct evolution, the matching dimension bounds use the fixed time $`t=\pi/2`$ and fixed admissible accuracy. The block-encoding comparison fixes a constant normalization. Neither establishes a matching joint lower bound in dimension and inverse error.

## A complete qubit calculation

Take the known qubit channel

```math
\mathcal E(X)=\tfrac12X+\tfrac12\mathrm{Tr}(X)I/2.
```

This is the $`U=I,p=1/2`$ instance of [the depolarizing example](../science/examples.md#a-simple-qubit-noise-channel). Define two normalized operator vectors

```math
|e_0\rangle=|I\rangle\!\rangle/\sqrt2
=\frac{|00\rangle+|11\rangle}{\sqrt2},
\qquad
|e_z\rangle=|Z\rangle\!\rangle/\sqrt2
=\frac{|00\rangle-|11\rangle}{\sqrt2}.
```

The ordinary channel fixes the identity and halves every traceless operator. On a physical input qubit,

```math
|0\rangle\langle0|=\frac{I+Z}{2}
\quad\longmapsto\quad
\frac{I+Z/2}{2}
=\begin{pmatrix}3/4&0\\0&1/4\end{pmatrix}.
```

The corresponding Choi state and Liouville matrix are different objects:

```math
J_{\mathcal E}=\tfrac12|e_0\rangle\langle e_0|+\tfrac18 I_4,
\qquad
L_{\mathcal E}=\tfrac12 I_4+\tfrac12|e_0\rangle\langle e_0|.
```

The first has trace one and both marginals $`I_2/2`$. The second has eigenvalue one on $`e_0`$ and eigenvalue $`1/2`$ on $`e_z`$. Since $`L_{\mathcal E}`$ is Hermitian, its lift is $`X_C\otimes L_{\mathcal E}`$, giving

```math
U_{\mathcal E}(t)|0\rangle_C|e_z\rangle
=\left(\cos(t/2)|0\rangle_C-i\sin(t/2)|1\rangle_C\right)|e_z\rangle.
```

At $`t=\pi/2`$, the output is $`(|0\rangle-i|1\rangle)_C|e_z\rangle/\sqrt2`$. At the same time, $`|0\rangle_C|e_0\rangle`$ becomes $`-i|1\rangle_C|e_0\rangle`$. The channel's contraction coefficients have become coherent flag-rotation frequencies. No trace or norm is lost by this enlarged unitary.

Although $`Z/\sqrt2`$ is not a density operator, its vectorization $`|e_z\rangle`$ is a valid normalized two-qubit state. This is why the enlarged interface can act on data that are not physical channel inputs under the operator interpretation. The example has known parameters and a known small circuit; it illustrates the interface and is not the universal hard family or a claim of optimal noise purification.

Loading
Loading