From 8d1e477959ac82a3b70079d12b7fd34ae41624d2 Mon Sep 17 00:00:00 2001 From: Ruge Lin Date: Tue, 1 Dec 2026 14:29:00 +0800 Subject: [PATCH 1/3] Close fixed-dimension time and precision laws --- README.md | 14 ++- learning/MILESTONES.md | 10 +- learning/README.md | 4 +- learning/WATROUS_BRIDGE.md | 2 +- llms.txt | 5 +- references/RELATED_WORK.md | 12 +- references/references.bib | 8 ++ science/README.md | 1 + science/block-encoding.md | 2 +- science/dimension-lower-bound.md | 2 +- science/interpretation.md | 2 +- science/precision-cost.md | 132 ++++++++++++++++++++ science/resources.md | 2 +- verification/README.md | 5 + verification/verify_precision.py | 203 +++++++++++++++++++++++++++++++ 15 files changed, 381 insertions(+), 23 deletions(-) create mode 100644 science/precision-cost.md create mode 100644 verification/verify_precision.py diff --git a/README.md b/README.md index dc4fb0e..94b435d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **How many uses of an unknown physical channel are needed before a spectral quantum algorithm can use its matrix coherently?** -For unknown unital channels, this repository establishes the optimal dimension order at fixed accuracy. An explicit compiler uses quadratically many ordinary channel calls. A matching lower bound holds already for unknown unitary channels, because coherent Liouville access can expose the unitary's inverse. +For unknown unital channels, this repository establishes the optimal dimension order at fixed accuracy and the optimal precision order at fixed dimension. The dimension obstruction comes from extracting an unknown unitary's inverse. A family of noisy channels gives the separate precision obstruction by turning an unknown dephasing rate into a coherent phase. ## Principal result @@ -26,7 +26,7 @@ At any fixed sufficiently small accuracy, the necessary and sufficient call orde \boxed{Q(d)=\Theta(d^2).} ``` -For $`n`$ input qubits this is $`\Theta(4^n)`$. The matching statement fixes accuracy and a suitable evolution time; it does not establish optimal joint dependence on dimension, precision or time. +For $`n`$ input qubits this is $`\Theta(4^n)`$. At fixed $`d\ge2`$, the [precision bounds](science/precision-cost.md) give $`\Theta_d(\max\{1,t^2/\epsilon\})`$ calls for evolution when $`0\lt\epsilon\le1/8`$ and $`|t|\ge8\pi\epsilon`$, and $`\Theta_d(1/\delta)`$ calls for a complete block unitary at small error. A second block construction removes precision logarithms at fixed dimension by averaging over a Choi calibration. The best joint dimension and precision dependence remains open. The construction generates coherent controls and inverses of its output operations with the same query order. It does not require controlled or inverse access to the unknown channel, a Stinespring dilation, a Kraus description or QRAM. The [resource account](science/resources.md) charges every Choi-program preparation and separates queries from known gates, finite synthesis and workspace. @@ -36,7 +36,7 @@ A fresh Choi state and a known controlled swap form one mixed program. Its parti For a unitary channel, $`L_U=U\otimes\overline U`$. The Hermitian lift also contains $`U^\dagger\otimes U^{\mathsf T}`$. A single forward use of a designated block can consequently herald the inverse of $`U`$ with constant probability. The known robust inversion fidelity bound forces the quadratic dimension cost even when the compiler's inverse is unavailable. -The Liouville construction, Hermitian-preserving map exponentiation, variance estimate, polynomial transformation and inversion theorem are credited in [related work](references/RELATED_WORK.md). The contribution is the valid unital-case compiler together with the matching fixed-accuracy operational frontier. The original Liouville preprint already advertised the improved exponent before its generic error bound was corrected; that version history is stated explicitly rather than treated as a new numerical scaling alone. +The Liouville construction, Hermitian-preserving map exponentiation, variance estimate, polynomial transformation and inversion theorem are credited in [related work](references/RELATED_WORK.md). The unital-case compiler is matched in dimension by inverse extraction and in time and precision by the unital dephasing family. The original Liouville preprint already advertised the improved exponent before its generic error bound was corrected; that version history is stated explicitly rather than treated as a new numerical scaling alone. With the additional promise of a known depolarizing probability below one, the same compiler and a known commuting correction also approximate a clean unknown unitary from its noisy channel. The [worked channel examples](science/examples.md) derive that finite-noise upper bound and its calibration and precision limits. @@ -48,6 +48,7 @@ With the additional promise of a known depolarizing probability below one, the s | Why does the program marginal improve the full-channel bound? | [Collision compiler and proof](science/collision-compiler.md) | | How is an exact designated block obtained with complete-unitary error control? | [Block-encoding compiler](science/block-encoding.md) | | Why must every ordinary-query compiler pay the dimension cost? | [Inversion reduction and lower bound](science/dimension-lower-bound.md) | +| How much does precision cost at fixed dimension? | [Dephasing converse and averaged block calibration](science/precision-cost.md) | | What do known gates, precision, memory and work return cost? | [Resources](science/resources.md) | | What happens for unitary and noisy-unitary channels? | [Examples](science/examples.md) | | What is matched and what remains open? | [Interpretation](science/interpretation.md) | @@ -58,22 +59,23 @@ The [science guide](science/README.md) connects the proof dependencies, and [llm ## 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. +The [learning guide](learning/README.md) starts from a physical channel and follows the two converse mechanisms to the resource 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 python3 -m pip install -r verification/requirements.txt OPENBLAS_NUM_THREADS=1 python3 verification/verify.py +OPENBLAS_NUM_THREADS=1 python3 verification/verify_precision.py ``` -The checked-in [report](verification/report.json) records complex unital fixtures, nonunital boundaries, complete collision diagnostics, controlled extensions, inverse extraction and the known-noise correction. Choi-distance diagnostics are labeled as finite consistency checks, rather than diamond-norm upper certificates. The general results follow from the analytical proofs. +The checked-in [report](verification/report.json) records complex unital fixtures, nonunital boundaries, complete collision diagnostics, controlled extensions, inverse extraction and the known-noise correction. The precision checks test phase amplification, arbitrary block completions, Choi calibration and program sensitivity. Choi-distance diagnostics are finite consistency checks. The general results follow from the analytical proofs. ## Scope The channel is promised unital and memoryless; that promise is not learned for free. The lower bound permits arbitrary known controls, memory and causal adaptation under a hard query cap. The output is an actual approximate quantum operation on vectorized data, rather than a classical estimate or a virtual expectation-value reconstruction. Physical implementation uses $`O(\log d)`$ program and work qubits even though the ideal output block needs only a constant number of extra flags. -The full precision frontier, optimal long-time dependence, optimal synthesis constants, hardware noise thresholds and an application-level classical comparison remain outside the matched theorem. Structured channel families and stronger supplied access can have lower costs. +The simultaneous dependence on dimension, time and precision remains open. The query bounds leave synthesis constants, hardware noise thresholds and application-level classical costs to separate analyses. Structured channel families and stronger supplied access can have lower costs. ## Purpose and contact diff --git a/learning/MILESTONES.md b/learning/MILESTONES.md index b5daaf7..4b900b1 100644 --- a/learning/MILESTONES.md +++ b/learning/MILESTONES.md @@ -1,6 +1,6 @@ # Thirty milestones for Quantum Channel Coherentization -This is a common understanding map for the scientific contribution. It has exactly 30 milestones: **12 background/preliminary milestones** and **18 narrative/innovation milestones**. The background joins channel theory, matrix representations, coherent operations and error measures into one input-output problem. The narrative builds the compiler, derives its cost, reconstructs the inversion obstruction, and then integrates the scope and significance of the result. Each phase moves from local objects to a global account. +This is a common understanding map for the scientific contribution. It has exactly 30 milestones: **12 background/preliminary milestones** and **18 narrative/innovation milestones**. The background joins channel theory, matrix representations, coherent operations and error measures into one input-output problem. The narrative builds the compiler, derives its cost, reconstructs the inversion obstruction, and then connects statistical precision, block calibration and the scope of the frontier. Each phase moves from local objects to a global account. The sole educational anchor is John Watrous, *The Theory of Quantum Information* (2018), abbreviated **[W]**. The [Watrous bridge](WATROUS_BRIDGE.md) explains the relevant sections, notation translations and locally supplied steps. Sections cited below refer to that edition; they are entry points, not a requirement to read whole chapters. Niwa et al. (**[N]**), Gilyén et al. (**[G]**) and Chen–Yu–Zhang (**[C]**) are primary research dependencies, not additional educational anchors. The local proofs remain the authoritative statements of this project's assumptions and claims. @@ -266,19 +266,19 @@ The map records understanding targets and dependencies. It contains no learner a - **ID and phase:** M29; narrative/innovation. - **Central question:** What remains after the inherited constructions and material restrictions are stated? -- **Understanding target:** Separate the inherited Liouville programs, marginal-sensitive variance, QSVT and inversion theorem from the supported unital-case compiler and operational dimension frontier; explain the superseded preprint exponent, nonunital earlier hard family, and why virtual adjoints and ordered low-noise results are different claims. +- **Understanding target:** Separate the inherited Liouville programs, marginal-sensitive variance, QSVT and inversion theorem from the supported unital-case compiler and operational dimension frontier; explain the superseded preprint exponent, nonunital earlier hard family, and why virtual adjoints and ordered low-noise results address different tasks. Use program fidelity and unitality to bound the Liouville signal in a fixed simulator. - **Dependencies and story role:** M12–M28; evaluates the assembled contribution against its actual antecedents and neighboring tasks. - **Conceptual connection:** Correct attribution and matched operational models determine the surviving scientific consequence. -- **Source pointers:** [W] §§2.2, 3.3, 4.2.2; [related work](../references/RELATED_WORK.md), [interpretation](../science/interpretation.md). +- **Source pointers:** [W] §§2.2, 3.3, 4.2.2; [related work](../references/RELATED_WORK.md), [program sensitivity bound](../science/precision-cost.md#why-the-hard-family-program-cannot-amplify-dimension), [interpretation](../science/interpretation.md). ### M30 — The complete fixed-accuracy frontier - **ID and phase:** M30; narrative/innovation. - **Central question:** What can now be concluded about converting physical channel access into coherent matrix access? -- **Understanding target:** Connect the flat-marginal construction, complete block guarantee, robust inverse extraction and charged resources into the fixed-accuracy quadratic dimension law; preserve the suitable-time qualification, exponential qubit dependence, and open joint precision/time frontier while explaining the result's operational significance. +- **Understanding target:** Connect inverse extraction to the fixed-accuracy dimension law. Derive how the unital dephasing pair and a complete-channel hybrid give the fixed-dimension precision bounds. Explain why averaging an unbiased calibration attains inverse error for the block target, and state the remaining joint gap. - **Dependencies and story role:** M12–M29; synthesizes the whole contribution and its limits without introducing a separate final curriculum. - **Conceptual connection:** The constructive and converse mechanisms meet on one interface: ordinary unital-channel calls must pay for the coherent capability they generate. -- **Source pointers:** [W] §§2.2, 3.3, 4.2.2; [principal result](../README.md#principal-result), [resource frontier](../science/resources.md#what-the-resource-frontier-means), [matching regime and open questions](../science/dimension-lower-bound.md#what-is-matched-and-what-remains-open). +- **Source pointers:** [W] §§2.2, 3.3, 4.2.2; [principal result](../README.md#principal-result), [resource frontier](../science/resources.md#what-the-resource-frontier-means), [matching regime and open questions](../science/dimension-lower-bound.md#what-is-matched-and-what-remains-open), [precision proofs](../science/precision-cost.md). [W]: https://cs.uwaterloo.ca/~watrous/TQI/ [N]: https://arxiv.org/html/2506.24112v3 diff --git a/learning/README.md b/learning/README.md index 58e0362..a9e54d2 100644 --- a/learning/README.md +++ b/learning/README.md @@ -23,7 +23,7 @@ The [30-milestone map](MILESTONES.md) is the common understanding route. Its 12 | 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) | +| M27–M30: synthesis | How do precision, time and dimension separately change the cost? | [Precision proofs](../science/precision-cost.md), [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. @@ -49,6 +49,6 @@ 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 [precision proof](../science/precision-cost.md) keeps dimension fixed. Independent ordinary calls to dephasing reveal a noisy bit; the target turns a small noise-rate difference into an accumulating coherent phase. This establishes the $`t^2/\epsilon`$ term in the stated time regime. The complete block has its own inverse-error law, attained by averaging over unbiased calibration before discarding the record. The joint resource law remains open. 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. diff --git a/learning/WATROUS_BRIDGE.md b/learning/WATROUS_BRIDGE.md index 9fb0e61..120f779 100644 --- a/learning/WATROUS_BRIDGE.md +++ b/learning/WATROUS_BRIDGE.md @@ -86,7 +86,7 @@ U_{\mathcal E}(t)=e^{-it\mathsf H(L_{\mathcal E})}, 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. +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. These dimension arguments fix accuracy. For the [precision analysis](../science/precision-cost.md), use `3.2 for the fidelity of program states, `3.3 for composing complete-channel error, and `4.2.2 for the role of unitality. A Choi specimen is again the starting point in the block upper bound. The new averaging step cancels first-order estimation error in the output channel. ## A complete qubit calculation diff --git a/llms.txt b/llms.txt index 12f4f10..360d0cc 100644 --- a/llms.txt +++ b/llms.txt @@ -6,9 +6,10 @@ Story: README.md -> science/interpretation.md -> science/examples.md. Exact assumptions and normalization: science/model.md. Upper proof: science/collision-compiler.md; complete-unitary block output: science/block-encoding.md. Lower proof: science/dimension-lower-bound.md. Its robust inversion reduction uses one forward compiled block and no compiler inverse. +Precision and time: science/precision-cost.md. Unital dephasing gives evolution and forward-only complete-block converses. Averaged Choi calibration attains the fixed-dimension block precision rate. Implementation: science/resources.md. Count channel calls, known gates, phase synthesis, disposable program and work qubits separately. Prior work: references/RELATED_WORK.md and references/references.bib. Learning: learning/README.md; fixed project map: learning/MILESTONES.md; selected source and convention translation: learning/WATROUS_BRIDGE.md (John Watrous, The Theory of Quantum Information, 2018). -Reproduction: verification/README.md, verification/verify.py, verification/report.json. +Reproduction: verification/README.md, verification/verify.py, verification/verify_precision.py, verification/report.json. -Essential distinctions: ordinary channel is the input; dilation/inverse/control are not supplied. All diamond norms are unhalved. The output target has no hidden dimension normalization; its exact designated block is Herm(L)/pi. Quadratic dimension order is matched at fixed precision, not a joint d-squared-over-error lower law. The ideal block ancilla count is constant; physical workspace is logarithmic in dimension. No application-level speedup is claimed. +Essential distinctions: ordinary channel is the input; dilation/inverse/control are not supplied. All diamond norms are unhalved. The output target has no hidden dimension normalization; its exact designated block is Herm(L)/pi. Quadratic dimension order is matched at fixed precision. Inverse-error order is matched at fixed dimension for both outputs. Simultaneous dimension–precision scaling remains open. The ideal block ancilla count is constant; physical workspace is logarithmic in dimension. No application-level speedup is claimed. diff --git a/references/RELATED_WORK.md b/references/RELATED_WORK.md index e39a5dc..cd1616e 100644 --- a/references/RELATED_WORK.md +++ b/references/RELATED_WORK.md @@ -1,6 +1,6 @@ # Related work and the surviving contribution -The task is to compile ordinary uses of an unknown unital channel into a physical channel close to a unitary encoding its Liouville matrix. The output must act coherently on arbitrary data and reference systems. The contribution is a dimension-optimal operational characterization at fixed precision: a marginal-sensitive construction gives $`\widetilde O(d^2/\delta)`$ ordinary queries, and a reduction to universal unitary inversion gives $`\Omega(d^2)`$ for constant-normalization blocks at fixed sufficiently small error. The precision dependence is not matched. +The task is to compile ordinary uses of an unknown unital channel into a physical channel close to a unitary encoding its Liouville matrix. The output must act coherently on arbitrary data and reference systems. The contribution is a dimension-optimal operational characterization at fixed precision: a marginal-sensitive construction gives $`\widetilde O(d^2/\delta)`$ ordinary queries, and a reduction to universal unitary inversion gives $`\Omega(d^2)`$ for constant-normalization blocks at fixed sufficiently small error. The [precision analysis](../science/precision-cost.md) also matches both targets' fixed-dimension accuracy exponents and the evolution time exponent in its stated regime. ## The closest channel-spectral construction @@ -19,7 +19,7 @@ For unital channels, $`k=1`$ supplies constant normalization and gives the $`\wi Version history matters to this comparison. [Version 1, dated 30 June 2025](https://arxiv.org/pdf/2506.24112v1), already displayed a $`\widetilde O(d^2/\delta)`$ constant-normalization scaling and a $`d^{2k}`$ prefactor in Theorem 1. [Version 2, dated 15 July 2025](https://arxiv.org/pdf/2506.24112v2), changed the prefactor to $`d^{2k+1}`$; the published version retains it. Thus the present scaling is not its first appearance in a preprint. The claim here is a justified unital-case refinement together with its operational dimension lower bound; the earlier, superseded prefactor is not used as an established generic-channel theorem. -The current paper's Appendix D lower bound also has a relevant restriction. Its hard family in Eq. (D13) contains a trace-and-prepare reset on $`n-1`$ qubits, and is not unital. Its general-channel $`\Omega(dt^2/\delta)`$ conclusion does not by itself yield the unital lower bound needed here. The [dimension lower-bound proof](../science/dimension-lower-bound.md) instead uses unitary channels and the modern robust inversion theorem. +The current paper's Appendix D lower bound also has a relevant restriction. Its hard family in Eq. (D13) contains a trace-and-prepare reset on $`n-1`$ qubits, and is not unital. Its general-channel $`\Omega(dt^2/\delta)`$ conclusion does not by itself yield the unital lower bound needed here. The [dimension lower-bound proof](../science/dimension-lower-bound.md) uses unitary channels and the modern robust inversion theorem. The [unital precision proof](../science/precision-cost.md) uses a dephasing family and shows why a fixed simulator with equally close program states cannot enlarge the coherent signal by a dimension factor when its outputs are unital. ## Moment-sensitive exponentiation and the inherited variance estimate @@ -63,8 +63,14 @@ Zhu, Tang, Zhen, Li, Bai and Wang, *Simulation of Adjoints and Petz Recovery Map The present task asks for an approximate physical unitary on vectorized data in a larger Hilbert space. It neither exactly implements $`\mathcal E^{\dagger}`$ on density matrices for all channels nor returns only a signed expectation-value estimate. The no-go theorem and virtual protocol therefore do not subsume, and are not contradicted by, the unital coherentization result. The unitary subclass remains special because extracting $`U^{\dagger}`$ from the dilation is then a valid physical channel operation. +## Sample-based amplification and averaged calibration + +Go, Kwon, Park, Patel and Wilde, [*Sample-based Hamiltonian and Lindbladian simulation*](https://arxiv.org/html/2412.02134v3), Theorem 5 and Lemma 7, develop the inverse-error lower bound by repeatedly invoking a simulator to distinguish two sample-encoded Hamiltonians. The [unital dephasing argument](../science/precision-cost.md) uses that amplification method, as does Niwa et al.'s Appendix D. Its hard family makes the whole adaptive ordinary-channel transcript a postprocessing of independent noise bits. The complete-block proof also handles arbitrary exact ancillary completions and uses only the forward compiled channel. + +The block upper bound uses unbiased tomography with a smooth canonical unitary completion. The same first-order cancellation appears in [*Quantum Measurement Lifting*](https://github.com/GoGoKo699/Quantum-Measurement-Lifting/blob/5c84a8ae4caf88a88ed056628f158c86795ffcd3/science/approximate-lifting.md#why-averaging-gives-inverse-query-error) for a full-rank detector's square-root instrument. Here the measured objects are Choi states and the approximation is to the entire unitary channel with a specified Liouville block. The sharp fixed-dimension guarantee and the separate collision bound are both available under ordinary forward access. + ## Noisy-unitary purification and the open precision dependence Niwa, Yoshida and Murao, *Asymptotically optimal purification of noisy unitary channels in any dimension*, [arXiv:2608.26061v1](https://arxiv.org/abs/2608.26061v1), study an unknown unitary followed by depolarizing noise. They obtain leading-order purification and conjugation costs proportional to $`d^2p/\epsilon`$, optimizing over adaptive sequential strategies in the specified low-noise and large-query limits. This is a relevant neighboring transformation problem. Its ordered, leading-order statement is not a uniform $`\Omega(d^2/\delta)`$ theorem for the present compilation task at fixed nonzero noise. No such transfer is assumed here. -The supported conclusion consequently remains specific: for ordinary access to unknown unital channels, constant-normalization coherent Liouville compilation has optimal quadratic dimension dependence at fixed sufficiently small precision, up to logarithmic factors. Determining its full joint dimension–precision frontier is left open. +For ordinary unital-channel access, fixed-error dimension dependence and fixed-dimension precision dependence each have matching orders. The full joint frontier remains open. diff --git a/references/references.bib b/references/references.bib index c94d343..eb5688f 100644 --- a/references/references.bib +++ b/references/references.bib @@ -53,6 +53,14 @@ @misc{Niwa2026Purification year = {2026}, eprint = {2608.26061}, archivePrefix = {arXiv}, note = {Ordered low-noise and large-query limits} } +@article{Go2025SampleBasedSimulation, + author = {Go, Byeongseon and Kwon, Hyukjoon and Park, Siheon and Patel, Dhrumil and Wilde, Mark M.}, + title = {Sample-based Hamiltonian and Lindbladian simulation: Non-asymptotic analysis of sample complexity}, + journal = {Quantum Science and Technology}, volume = {10}, pages = {045058}, + year = {2025}, doi = {10.1088/2058-9565/ae075b}, + url = {https://arxiv.org/html/2412.02134v3} +} + @article{Ross2016Synthesis, author = {Ross, Neil J. and Selinger, Peter}, title = {Optimal ancilla-free Clifford+T approximation of z-rotations}, diff --git a/science/README.md b/science/README.md index e9fba18..6d4a26d 100644 --- a/science/README.md +++ b/science/README.md @@ -8,6 +8,7 @@ The question is whether ordinary uses of an unknown physical channel can supply | Build the mixed programs and evaluate their collision variance | [Evolution compiler](collision-compiler.md) | | Obtain a complete exact block unitary with controlled error | [Block encoding](block-encoding.md) | | Extract an unknown inverse and prove the dimension obstruction | [Dimension lower bound](dimension-lower-bound.md) | +| Match the fixed-dimension accuracy and time costs | [Precision costs and fixed-dimension block compiler](precision-cost.md) | | Account for channel uses, known gates, synthesis and memory | [Resources](resources.md) | | See unitary and finite-noise consequences | [Examples](examples.md) | | Understand the matching regime and its limits | [Interpretation](interpretation.md) | diff --git a/science/block-encoding.md b/science/block-encoding.md index 071ec3f..2cf57d3 100644 --- a/science/block-encoding.md +++ b/science/block-encoding.md @@ -248,4 +248,4 @@ the resulting channel is $`\delta`$-close to the controlled version of the same Niwa et al., [arXiv:2506.24112v3](https://arxiv.org/html/2506.24112v3), Theorem 1 and its proof following Eq. (15), use this sine and inverse-sine route to obtain a complete unitary block-encoding interface from ordinary unknown-channel access. Gilyén et al., [arXiv:1806.01838](https://arxiv.org/abs/1806.01838), Corollary 18 and Lemma 70, supply the polynomial transformation tools. Those mechanisms are inherited. The collision second-moment evaluation supplies the improved dimension dependence, and the completion argument above records explicitly the full-channel interpretation needed here. -The output has the constant normalization $`1/\pi`$. The [dimension lower bound](dimension-lower-bound.md) therefore applies at fixed sufficiently small error. The upper bound's $`1/\delta`$ factor and logarithms are not asserted to be optimal. No precision converse follows from this compilation argument, and applying a further spectral transformation requires counting its additional calls and error budget. +The output has the constant normalization $`1/\pi`$. The [dimension lower bound](dimension-lower-bound.md) therefore applies at fixed sufficiently small error. The [precision analysis](precision-cost.md) establishes an inverse-error converse for the complete block guarantee. At fixed dimension, its averaged calibration construction attains that order without logarithms. Applying a further spectral transformation requires counting its additional calls and error budget. diff --git a/science/dimension-lower-bound.md b/science/dimension-lower-bound.md index e28044d..453a6fc 100644 --- a/science/dimension-lower-bound.md +++ b/science/dimension-lower-bound.md @@ -138,4 +138,4 @@ The construction's upper bound is $`\widetilde O(d^2/\delta)`$ for a constant-no The hard cap is material: an unbounded repeat-until-success procedure cannot be inserted into this reduction by calling its expected query count a fixed budget. A bounded procedure obtained by truncation may be used after counting the cap and including its abort contribution in the error. -The precision gap cannot be removed by citing unitary inversion alone. Exact deterministic inversion is possible with $`O(d^2)`$ forward unitary queries, as shown by Chen, Mo, Liu, Zhang and Wang, [arXiv:2403.04704v3](https://arxiv.org/abs/2403.04704v3). Consequently that subclass supplies a dimension obstruction, while the additional precision cost of coherentizing general noisy unital channels requires separate analysis. The distinctions from specimen access, exact channel-adjoint transformation and low-noise channel purification are set out in [RELATED_WORK.md](../references/RELATED_WORK.md). +The precision gap cannot be removed by citing unitary inversion alone. Exact deterministic inversion is possible with $`O(d^2)`$ forward unitary queries, as shown by Chen, Mo, Liu, Zhang and Wang, [arXiv:2403.04704v3](https://arxiv.org/abs/2403.04704v3). The unitary subclass supplies a dimension obstruction. The [separate noisy-channel analysis](precision-cost.md) establishes inverse-error lower bounds at fixed dimension. The distinctions from specimen access, exact channel-adjoint transformation and low-noise channel purification are set out in [RELATED_WORK.md](../references/RELATED_WORK.md). diff --git a/science/interpretation.md b/science/interpretation.md index 61546a4..6e5ee7e 100644 --- a/science/interpretation.md +++ b/science/interpretation.md @@ -10,6 +10,6 @@ Thus one obtains $`\Theta(d^2)`$ ordinary calls at fixed sufficiently small accu The known-gate implementation and full-channel error are part of the account. Disposable program preparation uses one ordinary channel call, finite rotations require precision allocation, and controlled/inverse target operations are generated with fresh programs. The ideal output block needs only a constant number of ancillary qubits, whereas the physical synthesis needs $`O(\log d)`$ program and work qubits. Query count, gate count, source calibration and hardware runtime remain distinct. -The matching statement is about dimension. The constructive upper has an inverse-error factor, and the block route adds logarithms. The converse gives no matching inverse-error dependence: unknown unitary inversion can be exact with finitely many queries. General noisy unital channels may impose an additional precision obstruction, but establishing its joint law requires separate analysis. The time dependence of the collision construction is likewise not asserted optimal. +At fixed dimension, [noisy unital dephasing](precision-cost.md) gives a second obstruction. Ordinary calls admit an independent-bit simulation, while coherent evolution accumulates a phase proportional to the dephasing rate. Resolving nearby rates gives a necessary $`t^2/\epsilon`$ term in the stated time regime. The complete block target also pays inverse error, even when its unspecified blocks vary with the channel. Averaging an unbiased calibration before discarding the record attains that block-accuracy order at fixed dimension. These are separate minimax laws. It remains open how dimension, precision and time combine when varied together. Finally, the output is an actual approximate quantum operation. It is not a classical channel estimate, a reconstruction of one expectation value, an exact universal channel adjoint, or a claim of quantum advantage for an application-level task. The [examples](examples.md) show a direct finite-noise recovery capability while preserving those distinctions, and [related work](../references/RELATED_WORK.md) identifies the inherited constructions and lower-bound theorems. diff --git a/science/precision-cost.md b/science/precision-cost.md new file mode 100644 index 0000000..689f627 --- /dev/null +++ b/science/precision-cost.md @@ -0,0 +1,132 @@ +# Precision costs for coherent channel access + +An ordinary use of an unknown unital channel can supply statistical information about its noise rate. The coherent Liouville evolution turns that rate into a phase. This difference fixes the cost of high precision, including when the input dimension is held fixed. + +## Results and access + +Use the [same memoryless forward access and unhalved diamond norm](model.md) as the main compiler. The query cap is a worst-case cap and permits known gates, coherent memory and adaptation. Every simulated use in an argument brings its own query budget. For each $`d\ge2`$ let the worst case range over the unital channels on $`\mathbb C^d`$. + +| Target | Fixed-dimension query complexity | Regime | +| --- | --- | --- | +| Liouville evolution at time $`t`$ | $`\Theta_d(\max\{1,t^2/\epsilon\})`$ | $`0\lt\epsilon\le1/8`$, $`|t|\ge8\pi\epsilon`$ | +| Complete unitary channel with exact designated block $`\mathsf H(L_{\mathcal E})/\pi`$ | $`\Theta_d(1/\delta)`$ | Sufficiently small $`\delta`$ | + +The existing [collision compiler](collision-compiler.md#finite-budget-theorem) supplies the evolution upper bound. The [averaged calibration construction below](#fixed-dimension-block-construction) closes the remaining logarithms in block accuracy at fixed dimension. The [collision-based block construction](block-encoding.md) retains the better dimension bound. For $`|t|\le\epsilon/2`$, the zero-query identity meets the evolution error by $`\|\mathsf H(L_{\mathcal E})\|=1`$. The constant-factor band between these time regimes is open here. + +## A unital hard family + +Choose a known Hermitian unitary $`Z`$ with $`Z|0\rangle=|0\rangle`$ and $`Z|1\rangle=-|1\rangle`$ and let + +```math +\mathcal E_p=(1-p)\,\mathrm{id}+p\,\mathrm{Ad}_Z,\qquad +p\in[1/2,3/4]. +``` + +The family is unital in every dimension. On the known vectorized operator $`|B\rangle\!\rangle`$ with $`B=|0\rangle\langle1|`$, its self-adjoint Liouville matrix has eigenvalue $`1-2p`$. The lift leaves the flag tensored with this vector invariant and acts there as $`(1-2p)X`$, where $`X`$ is the flag Pauli operator. + +A fixed simulator for each ordinary call draws an independent Bernoulli bit with probability $`p`$ and applies the identity or $`Z`$ to the query wire according to the bit. The simulator also works when the wire is entangled with memory. For any strategy with at most $`n`$ queries, presampling $`n`$ bits and ignoring unused bits expresses its final state as a fixed channel of the classical product distribution. Thus its unhalved trace distance between $`p_0=1/2`$ and $`p_1=1/2+h`$ is bounded by twice the corresponding classical total variation. The relative entropy from $`p_0`$ to $`p_1`$ is + +```math +D\bigl(\mathrm{Bern}(p_0)\,\|\,\mathrm{Bern}(p_1)\bigr) +=-\tfrac12\log(1-4h^2)\le\tfrac83 h^2 +\qquad (0\lt h\le1/4). +``` + +The inequality follows from $`-\log(1-x)\le x/(1-x)`$. Additivity and Pinsker's inequality give an unhalved output distance at most $`(4/\sqrt3)\sqrt n\,h`$. Hence a constant output gap requires $`n=\Omega(h^{-2})`$, with no restriction on adaptivity. + +## Evolution lower bound + +Let $`k=\lfloor1/(4\epsilon)\rfloor`$, so $`k\epsilon\le1/4`$ and $`k\ge1/(8\epsilon)`$. Set $`h=\pi/(4k|t|)`$. The stated time regime makes $`h\le1/4`$. Start the flag in $`|0\rangle`$ and the Liouville register in $`|B\rangle\!\rangle`$. After $`k`$ ideal evolutions the flags for the two hypotheses are orthogonal. The first is unchanged and the second has accumulated a rotation of magnitude $`2h k|t|=\pi/2`$ about $`X`$. + +The diamond-norm hybrid bound puts each actual output within $`k\epsilon`$ in trace norm of its ideal output. The actual hypotheses are separated by at least $`2-2k\epsilon\ge3/2`$. If each compiler invocation costs at most $`q`$ calls, the Bernoulli argument applies with $`n=kq`$. Consequently + +```math +q=\Omega\!\left(\frac{1}{kh^2}\right) +=\Omega(kt^2) +=\Omega(t^2/\epsilon). +``` + +This positive lower bound also forces the integer query budget to be at least one. The collision upper bound is $`2\lceil(4d^2+2)t^2/\epsilon\rceil`$. Together the bounds give the stated fixed-dimension evolution cost. + +## Complete block lower bound + +For each hypothesis, let $`V_i`$ be any exact unitary whose designated block is $`\mathsf H(L_{\mathcal E_{p_i}})/\pi`$ and whose channel is within $`\delta`$ of the compiler's output. The guarantee allows the remaining blocks to depend on the channel. On the flag and $`|B\rangle\!\rangle`$ sector, the designated block is zero at $`p_0`$ and has norm $`2h/\pi`$ at $`p_1`$. Compression to that sector gives, for every real $`\phi`$, + +```math +\|V_0-e^{i\phi}V_1\|\ge2h/\pi. +``` + +Let $`W=V_0^\dagger V_1`$. Choose the phase of any eigenvalue of $`W`$ to bring it to one. The bound then implies that two eigenvalues have chord separation at least $`2h/\pi`$. Their shorter angular separation $`\theta`$ lies in $`[2h/\pi,\pi]`$. On a balanced superposition of the two eigenvectors, alternate the unknown forward unitary with the fixed known $`V_0^\dagger`$. Under hypothesis zero the step is the identity. Under hypothesis one it is $`W`$. For $`k=\lceil\pi/(2\theta)\rceil`$ the relative phase $`k\theta`$ lies in $`[\pi/2,\pi]`$ and the ideal output trace-norm gap is at least $`\sqrt2`$. The number of steps satisfies $`k\le \pi^2/(4h)+1`$. + +This is a binary discrimination reduction. The hypothetical pair of exact completions determines the fixed input and the known interleaving gate. The same gates are used under both hypotheses and the compiler is invoked only in its forward direction. + +Take $`h=8\pi^2\delta`$ and $`0\lt\delta\le1/(32\pi^2)`$. Then $`h\le1/4`$ and $`k\delta\le1/32+\delta`$. The two compiled outputs remain a constant distance apart by the diamond hybrid bound. The Bernoulli argument with $`n=kq`$ gives $`q\ge c/(kh^2)=\Omega(1/\delta)`$ for a universal $`c>0`$. + +## Fixed-dimension block construction + +Prepare $`N`$ normalized Choi specimens of $`\mathcal E`$ using one ordinary query each. Write $`D=d^2`$ for their dimension. On each specimen choose a known Haar-random orthonormal basis and measure it. If the outcome vector is $`|v\rangle`$, record the Hermitian estimate + +```math +S_v=(D+1)|v\rangle\langle v|-I_D. +``` + +The outcome density relative to uniform unit vectors is $`D\langle v|J_{\mathcal E}|v\rangle`$. The second moment of uniform rank-one projectors is $`(I+F)/(D(D+1))`$ on two copies, by unitary invariance and support on the symmetric subspace. Taking a partial trace against $`J_{\mathcal E}`$ gives $`\mathbb E S_v=J_{\mathcal E}`$. A finite weighted ensemble of known orthonormal bases with the same second moment also suffices. Such an ensemble exists because the Haar moment lies in the convex hull of basis-averaged moments, a compact set in finite dimension. For the average $`\widehat J`$ of the independent estimates, + +```math +\mathbb E\|\widehat J-J_{\mathcal E}\|_F^2 +\le\frac{D^2+D-1}{N}. +``` + +Reshuffle $`d\widehat J`$ into $`\widehat L`$ with the [same index convention](model.md#fixed-basis-and-vectorization) and set $`\widehat A=\mathsf H(\widehat L)/\pi`$, $`A=\mathsf H(L_{\mathcal E})/\pi`$. Reshuffling preserves Frobenius norm and the lift preserves operator norm. In particular $`\Delta=\widehat A-A`$ has zero mean and $`\mathbb E\|\Delta\|^2=O(d^6/N)`$. + +For any Hermitian $`M`$ with $`\|M\|\le1/2`$ implement the known unitary + +```math +V(M)= +\begin{pmatrix} +M & \sqrt{I-M^2}\\ +\sqrt{I-M^2} & -M +\end{pmatrix}. +``` + +It is Hermitian, squares to identity and has exact designated block $`M`$. Use $`M=\widehat A`$ if $`\|\widehat A\|\le1/2`$ and use $`M=0`$ otherwise. The classical calibration record is discarded. The analysis compares the resulting averaged physical channel to $`\mathrm{Ad}_{V(A)}`$; a per-record guarantee is a different task. + +To bound the averaging error, let $`r=1/2-1/\pi>0`$. On $`\|\Delta\|\le r`$ the whole segment $`A+s\Delta`$, $`0\le s\le1`$, has norm at most $`1/2`$. The power series of $`\sqrt{I-M^2}`$ on this ball has uniformly bounded first and second derivatives in operator norm. Indeed the first derivative of $`M^j`$ in direction $`\Delta`$ is a sum of $`j`$ ordered products, and its second derivative is a sum of $`j(j-1)`$ such products, each with two factors $`\Delta`$. The geometric weights $`(1/2)^{j-2}`$ make the second-derivative bound summable. Applying the product rule to $`V(M)YV(M)^\dagger`$ and using $`\|B(\cdot)C\|_\diamond\le\|B\|\|C\|`$ gives + +```math +\mathrm{Ad}_{V(A+\Delta)} +=\mathrm{Ad}_{V(A)}+\mathcal D_A[\Delta]+\mathcal R_A(\Delta),\qquad +\|\mathcal R_A(\Delta)\|_\diamond\le C\|\Delta\|^2, +``` + +with a bounded linear derivative $`\mathcal D_A`$ and universal constants. In expectation the full linear term vanishes. Its contribution removed on the bad event costs at most a constant times $`\mathbb E[\|\Delta\|\mathbf1_{\{\|\Delta\|>r\}}]\le r^{-1}\mathbb E\|\Delta\|^2`$. The bad-event channels differ by at most two in diamond norm and the event has probability at most $`r^{-2}\mathbb E\|\Delta\|^2`$. Averaging all contributions gives full-channel error $`O(d^6/N)`$. Thus $`O(d^6/\delta)`$ ordinary queries suffice with ideal known gates, and fixed-dimension accuracy is exactly order $`1/\delta`$ when combined with the lower bound. The larger known basis measurements, classical estimates and unitary synthesis are additional implementation costs. + +## Why the hard-family program cannot amplify dimension + +The statistical argument can also expose a limit of a common lower-bound method. Suppose two channels can each be simulated as $`\mathcal E_\tau(X)=\mathcal N(X\otimes\tau)`$ by one fixed CPTP map $`\mathcal N`$ and program states $`\rho,\sigma`$. If **both** simulated channels are unital, then + +```math +\|L_{\mathcal E_\rho}-L_{\mathcal E_\sigma}\| +\le 2\sqrt{2-2\sqrt{F(\rho,\sigma)}} , +\qquad +F(\rho,\sigma)=\|\sqrt{\rho}\sqrt{\sigma}\|_1^2. +``` + +To see this, choose Uhlmann purifications $`|r\rangle,|s\rangle`$ with real overlap $`\sqrt F`$. Absorb the trace of the purification reference into $`\mathcal N`$ and write $`J_w=I\otimes|w\rangle`$. Then + +```math +J_r X J_r^\dagger-J_s X J_s^\dagger +=J_r X J_{r-s}^\dagger+J_{r-s} X J_s^\dagger . +``` + +For test matrices $`X,Y`$ with unit Hilbert–Schmidt norm, let $`M=\mathcal N^\dagger(Y)`$. The trace pairing with the first term has absolute value at most $`\|M^\dagger J_r\|_F\|X J_{r-s}^\dagger\|_F`$. Kadison–Schwarz for the unital adjoint gives + +```math +\|M^\dagger J_r\|_F^2 +\le\mathrm{Tr}\!\left[J_r^\dagger\mathcal N^\dagger(YY^\dagger)J_r\right] +=\mathrm{Tr}\!\left[YY^\dagger\mathcal E_\rho(I)\right]=1. +``` + +For the second term, pair $`M J_s`$ with $`J_{r-s}X`$ and use $`M^\dagger M\preceq\mathcal N^\dagger(Y^\dagger Y)`$ and unitality of $`\mathcal E_\sigma`$. Each term is at most $`\||r\rangle-|s\rangle\|`$. Taking the supremum over $`X,Y`$ gives the inequality. + +This gives a dimension-independent bound on the coherent signal at fixed program fidelity. In particular, the difference of the ideal time-$`t`$ evolution channels has diamond norm at most $`2|t|\|L_{\mathcal E_\rho}-L_{\mathcal E_\sigma}\|`$ by the integral identity for the difference of two exponentials. Tensoring the programs to bound discrimination and amplifying this signal therefore cannot obtain a factor of dimension from an enlarged Liouville perturbation at fixed program fidelity. The earlier [nonunital reset witness](../references/RELATED_WORK.md#the-closest-channel-spectral-construction) can have that enlargement precisely because it lacks the unital normalization above. The simultaneous dimension–precision cost over unital channels remains open. diff --git a/science/resources.md b/science/resources.md index cb14e9f..0a9a28c 100644 --- a/science/resources.md +++ b/science/resources.md @@ -87,4 +87,4 @@ Known clean work is returned after each collision. The unknown program is intent At any fixed sufficiently small error and the fixed lower-bound time $`t=\pi/2`$, both the necessary and sufficient call orders are $`\Theta(d^2)`$. At $`d=2^n`$ this is exponential in the input qubit count. The known-gate implementation has the same dimension power times polynomial factors in $`n`$ and precision logarithms. No comparison with a classical algorithm for a separate scientific output task follows merely from this oracle conversion. -The upper's inverse-precision factor and its time dependence are not matched by the dimension converse. Unitality is a supplied promise, not a property learned for free; model mismatch and imperfect channel calls require their own error budget. If each ordinary call has diamond error at most $`\eta`$ relative to the promised memoryless channel, the whole $`Q`$-call protocol changes by at most $`Q\eta`$. This perturbation statement does not make an arbitrary nonunital channel satisfy the promised target theorem. +The [fixed-dimension precision proof](precision-cost.md) matches the inverse-error order for both targets and the evolution time dependence in its stated regime. Its alternative block construction spends one channel call per independent Choi specimen and uses additional known basis measurements, classical estimation and unitary synthesis. The collision block route retains the better dimension dependence. Unitality is a supplied promise, not a property learned for free; model mismatch and imperfect channel calls require their own error budget. If each ordinary call has diamond error at most $`\eta`$ relative to the promised memoryless channel, the whole $`Q`$-call protocol changes by at most $`Q\eta`$. This perturbation statement does not make an arbitrary nonunital channel satisfy the promised target theorem. diff --git a/verification/README.md b/verification/README.md index 84799ba..00e6d1e 100644 --- a/verification/README.md +++ b/verification/README.md @@ -16,12 +16,17 @@ Run from the repository root: ```bash python3 verification/verify.py --output verification/report.json +python3 verification/verify_precision.py ``` The script exits with status zero only when every declared diagnostic passes. It uses a fixed seed and records Python, NumPy, SciPy, platform, timestamp and residual tolerance in the JSON report. The script requires NumPy and SciPy. +## Precision and time checks + +The separate precision script reconstructs the flag evolution for nearby dephasing rates and compares product total variation with its Pinsker bound. It constructs complete blocks with independently varied ancillary completions and verifies the relative-eigenphase discrimination step. A finite projective design checks the unbiased Choi estimator, and exact binomial averaging checks inverse-copy scaling in a dephasing example. Finally it compares program fidelity with Liouville sensitivity under a common simulator, including a nonunital reset as a negative control. These finite checks complement the [precision proof](../science/precision-cost.md). + ## What is reconstructed For dimensions 2, 3 and 4, four generic complex Haar unitaries are combined with diff --git a/verification/verify_precision.py b/verification/verify_precision.py new file mode 100644 index 0000000..11b0c23 --- /dev/null +++ b/verification/verify_precision.py @@ -0,0 +1,203 @@ +#!/usr/bin/env python3 +"""Deterministic finite checks for the precision and time arguments.""" + +from math import ceil, comb, floor, log, pi, sqrt + +import numpy as np +from scipy.linalg import expm, sqrtm + + +TOLERANCE = 5e-11 + + +def density(vector): + return np.outer(vector, vector.conj()) + + +def trace_norm(matrix): + return float(np.linalg.svd(matrix, compute_uv=False).sum()) + + +def hermitian_lift(matrix): + zero = np.zeros_like(matrix) + return np.block([[zero, matrix], [matrix.conj().T, zero]]) + + +def dephasing_liouville(dimension, probability): + signs = np.ones(dimension) + signs[1] = -1 + return (1 - probability) * np.eye(dimension**2) + probability * np.kron( + np.diag(signs), np.diag(signs) + ) + + +def binomial_probabilities(trials, probability): + return np.array([ + comb(trials, count) * probability**count * (1 - probability)**(trials - count) + for count in range(trials + 1) + ]) + + +def exact_block(matrix): + values, vectors = np.linalg.eigh(matrix) + root = (vectors * np.sqrt(1 - values**2)) @ vectors.conj().T + return np.block([[matrix, root], [root, -matrix]]) + + +def check_dephasing_and_information(): + checks = 0 + for dimension in (2, 3): + data = np.eye(dimension**2)[:, 1] + initial = np.kron([1, 0], data) + for error, time in ((0.005, 0.2), (0.025, 1.0), (0.025, -3.0)): + steps = floor(1 / (4 * error)) + separation = pi / (4 * steps * abs(time)) + assert 0 < separation <= 0.25 + outputs = [] + for rate in (0.5, 0.5 + separation): + lift = hermitian_lift(dephasing_liouville(dimension, rate)) + output = np.linalg.matrix_power(expm(-1j * time * lift), steps) @ initial + outputs.append(output) + assert abs(np.vdot(*outputs)) < TOLERANCE + checks += 1 + + for trials in (1, 5, 32, 128): + for separation in (0.01, 0.08, 0.25): + left = binomial_probabilities(trials, 0.5) + right = binomial_probabilities(trials, 0.5 + separation) + entropy = np.dot(left, np.log(left / right)) + assert abs(entropy + trials * log(1 - 4 * separation**2) / 2) < TOLERANCE + assert np.abs(left - right).sum() <= 4 / sqrt(3) * sqrt(trials) * separation + checks += 1 + return checks + + +def random_unitary(dimension, rng): + entries = rng.normal(size=(dimension, dimension)) + entries = entries + 1j * rng.normal(size=entries.shape) + q, r = np.linalg.qr(entries) + phases = np.diag(r) + return q * phases / abs(phases) + + +def check_block_completions(rng): + checks = 0 + for dimension in (2, 3): + size = 2 * dimension**2 + identity = np.eye(size) + zero = np.zeros_like(identity) + for separation in (0.01, 0.1, 0.25): + completions = [] + for rate in (0.5, 0.5 + separation): + matrix = hermitian_lift(dephasing_liouville(dimension, rate)) / pi + left = np.block([[identity, zero], [zero, random_unitary(size, rng)]]) + right = np.block([[identity, zero], [zero, random_unitary(size, rng)]]) + completion = left @ exact_block(matrix) @ right + assert np.linalg.norm(completion[:size, :size] - matrix) < TOLERANCE + assert np.linalg.norm(completion.conj().T @ completion - np.eye(2 * size)) < TOLERANCE + completions.append(completion) + relative = completions[0].conj().T @ completions[1] + values, vectors = np.linalg.eig(relative) + first, second = np.unravel_index( + abs(values[:, None] - values).argmax(), (2 * size, 2 * size) + ) + angle = abs(np.angle(values[second] / values[first])) + assert angle >= 2 * separation / pi - TOLERANCE + steps = ceil(pi / (2 * angle)) + assert steps <= pi**2 / (4 * separation) + 1 + initial = (vectors[:, first] + vectors[:, second]) / sqrt(2) + output = np.linalg.matrix_power(relative, steps) @ initial + assert trace_norm(density(initial) - density(output)) >= sqrt(2) - TOLERANCE + checks += 1 + return checks + + +def check_calibration(rng): + # In dimension four, computational vectors and four-phase flat vectors + # give a finite version of the same projective second moment as Haar. + dimension = 4 + vectors = [*np.eye(dimension, dtype=complex)] + for first in range(4): + for second in range(4): + for third in range(4): + vectors.append(np.array([1, 1j**first, 1j**second, 1j**third]) / 2) + weights = np.array([1 / 20] * dimension + [1 / 80] * (len(vectors) - dimension)) + projectors = [density(vector) for vector in vectors] + swap = np.eye(dimension**2).reshape( + dimension, dimension, dimension, dimension + ).transpose(1, 0, 2, 3).reshape(dimension**2, dimension**2) + moment = sum(weight * np.kron(proj, proj) for weight, proj in zip(weights, projectors)) + assert np.linalg.norm(moment - (np.eye(dimension**2) + swap) / 20) < TOLERANCE + + random_gate = random_unitary(2, rng) + entangled = np.eye(2).ravel() / sqrt(2) + rotated = (random_gate @ np.eye(2)).ravel() / sqrt(2) + choi = (density(entangled) + 2 * density(rotated)) / 3 + probabilities = np.array([ + weight * dimension * np.trace(proj @ choi).real + for weight, proj in zip(weights, projectors) + ]) + assert abs(probabilities.sum() - 1) < TOLERANCE + estimates = [5 * proj - np.eye(dimension) for proj in projectors] + mean_estimate = sum(weight * estimate for weight, estimate in zip(probabilities, estimates)) + assert np.linalg.norm(mean_estimate - choi) < TOLERANCE + assert max(np.linalg.norm(estimate, "fro")**2 for estimate in estimates) <= 19 + TOLERANCE + + # Exact binomial averaging for a dephasing-channel calibration. Use only + # the known two-dimensional lift sector to isolate its precision behavior. + def sector_completion(probability): + matrix = (1 - 2 * probability) * np.array([[0, 1], [1, 0]]) / pi + return exact_block(matrix) + + rate = 0.37 + initial = np.eye(4)[:, 0] + target = density(sector_completion(rate) @ initial) + scaled_errors = [] + for copies in (16, 32, 64, 128, 256): + average = sum( + probability * density(sector_completion(count / copies) @ initial) + for count, probability in enumerate(binomial_probabilities(copies, rate)) + ) + scaled_errors.append(copies * trace_norm(average - target)) + assert max(scaled_errors) / min(scaled_errors) < 1.1 + return 9 + + +def check_program_bound(rng): + checks = 0 + for dimension in (2, 3, 5): + gates = [random_unitary(dimension, rng) for _ in range(2)] + actions = [np.kron(gate, gate.conj()) for gate in gates] + for separation in (0.01, 0.08, 0.25): + rho = np.array([[0.5, 0.1j], [-0.1j, 0.5]]) + sigma = np.array([[0.5 + separation, 0.15], [0.15, 0.5 - separation]]) + root = sqrtm(rho).astype(complex) + amplitude = np.sqrt(np.maximum(np.linalg.eigvalsh(root @ sigma @ root), 0)).sum() + program_bound = 2 * sqrt(2 - 2 * amplitude) + first = sum(rho[j, j].real * action for j, action in enumerate(actions)) + second = sum(sigma[j, j].real * action for j, action in enumerate(actions)) + assert np.linalg.norm(first - second, 2) <= program_bound + TOLERANCE + checks += 1 + + dimension = 8 + separation = 0.1 + reset_difference = sqrt(dimension) * sqrt(2) * separation + overlap = (sqrt(0.5 * (0.5 + separation)) + sqrt(0.5 * (0.5 - separation))) + assert reset_difference > 2 * sqrt(2 - 2 * overlap) + return checks + 1 + + +def main(): + rng = np.random.default_rng(20261201) + results = { + "dephasing phases and product information": check_dephasing_and_information(), + "complete-unitary witnesses": check_block_completions(rng), + "calibration diagnostics": check_calibration(rng), + "program sensitivity and nonunital control": check_program_bound(rng), + } + for label, count in results.items(): + print(f"{label}: {count} passed") + + +if __name__ == "__main__": + main() From 5b44c5b4c32b5165bb993230beae25426350bb5b Mon Sep 17 00:00:00 2001 From: Ruge Lin Date: Tue, 1 Dec 2026 14:33:23 +0800 Subject: [PATCH 2/3] Keep the time regime intact inside the GitHub table --- science/precision-cost.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/science/precision-cost.md b/science/precision-cost.md index 689f627..28396d1 100644 --- a/science/precision-cost.md +++ b/science/precision-cost.md @@ -8,7 +8,7 @@ Use the [same memoryless forward access and unhalved diamond norm](model.md) as | Target | Fixed-dimension query complexity | Regime | | --- | --- | --- | -| Liouville evolution at time $`t`$ | $`\Theta_d(\max\{1,t^2/\epsilon\})`$ | $`0\lt\epsilon\le1/8`$, $`|t|\ge8\pi\epsilon`$ | +| Liouville evolution at time $`t`$ | $`\Theta_d(\max\{1,t^2/\epsilon\})`$ | $`0\lt\epsilon\le1/8`$, $`\lvert t\rvert\ge8\pi\epsilon`$ | | Complete unitary channel with exact designated block $`\mathsf H(L_{\mathcal E})/\pi`$ | $`\Theta_d(1/\delta)`$ | Sufficiently small $`\delta`$ | The existing [collision compiler](collision-compiler.md#finite-budget-theorem) supplies the evolution upper bound. The [averaged calibration construction below](#fixed-dimension-block-construction) closes the remaining logarithms in block accuracy at fixed dimension. The [collision-based block construction](block-encoding.md) retains the better dimension bound. For $`|t|\le\epsilon/2`$, the zero-query identity meets the evolution error by $`\|\mathsf H(L_{\mathcal E})\|=1`$. The constant-factor band between these time regimes is open here. From 2648712ecb4c35f3af79c30fa3c33afd52186af7 Mon Sep 17 00:00:00 2001 From: Ruge Lin Date: Tue, 1 Dec 2026 14:38:28 +0800 Subject: [PATCH 3/3] Match GitHub norm notation in the precision proof --- science/precision-cost.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/science/precision-cost.md b/science/precision-cost.md index 28396d1..1dd0889 100644 --- a/science/precision-cost.md +++ b/science/precision-cost.md @@ -11,7 +11,7 @@ Use the [same memoryless forward access and unhalved diamond norm](model.md) as | Liouville evolution at time $`t`$ | $`\Theta_d(\max\{1,t^2/\epsilon\})`$ | $`0\lt\epsilon\le1/8`$, $`\lvert t\rvert\ge8\pi\epsilon`$ | | Complete unitary channel with exact designated block $`\mathsf H(L_{\mathcal E})/\pi`$ | $`\Theta_d(1/\delta)`$ | Sufficiently small $`\delta`$ | -The existing [collision compiler](collision-compiler.md#finite-budget-theorem) supplies the evolution upper bound. The [averaged calibration construction below](#fixed-dimension-block-construction) closes the remaining logarithms in block accuracy at fixed dimension. The [collision-based block construction](block-encoding.md) retains the better dimension bound. For $`|t|\le\epsilon/2`$, the zero-query identity meets the evolution error by $`\|\mathsf H(L_{\mathcal E})\|=1`$. The constant-factor band between these time regimes is open here. +The existing [collision compiler](collision-compiler.md#finite-budget-theorem) supplies the evolution upper bound. The [averaged calibration construction below](#fixed-dimension-block-construction) closes the remaining logarithms in block accuracy at fixed dimension. The [collision-based block construction](block-encoding.md) retains the better dimension bound. For $`|t|\le\epsilon/2`$, the zero-query identity meets the evolution error by $`\Vert\mathsf H(L_{\mathcal E})\Vert=1`$. The constant-factor band between these time regimes is open here. ## A unital hard family @@ -27,7 +27,7 @@ The family is unital in every dimension. On the known vectorized operator $`|B\r A fixed simulator for each ordinary call draws an independent Bernoulli bit with probability $`p`$ and applies the identity or $`Z`$ to the query wire according to the bit. The simulator also works when the wire is entangled with memory. For any strategy with at most $`n`$ queries, presampling $`n`$ bits and ignoring unused bits expresses its final state as a fixed channel of the classical product distribution. Thus its unhalved trace distance between $`p_0=1/2`$ and $`p_1=1/2+h`$ is bounded by twice the corresponding classical total variation. The relative entropy from $`p_0`$ to $`p_1`$ is ```math -D\bigl(\mathrm{Bern}(p_0)\,\|\,\mathrm{Bern}(p_1)\bigr) +D\bigl(\mathrm{Bern}(p_0)\,\Vert\,\mathrm{Bern}(p_1)\bigr) =-\tfrac12\log(1-4h^2)\le\tfrac83 h^2 \qquad (0\lt h\le1/4). ``` @@ -53,7 +53,7 @@ This positive lower bound also forces the integer query budget to be at least on For each hypothesis, let $`V_i`$ be any exact unitary whose designated block is $`\mathsf H(L_{\mathcal E_{p_i}})/\pi`$ and whose channel is within $`\delta`$ of the compiler's output. The guarantee allows the remaining blocks to depend on the channel. On the flag and $`|B\rangle\!\rangle`$ sector, the designated block is zero at $`p_0`$ and has norm $`2h/\pi`$ at $`p_1`$. Compression to that sector gives, for every real $`\phi`$, ```math -\|V_0-e^{i\phi}V_1\|\ge2h/\pi. +\Vert V_0-e^{i\phi}V_1\Vert\ge2h/\pi. ``` Let $`W=V_0^\dagger V_1`$. Choose the phase of any eigenvalue of $`W`$ to bring it to one. The bound then implies that two eigenvalues have chord separation at least $`2h/\pi`$. Their shorter angular separation $`\theta`$ lies in $`[2h/\pi,\pi]`$. On a balanced superposition of the two eigenvectors, alternate the unknown forward unitary with the fixed known $`V_0^\dagger`$. Under hypothesis zero the step is the identity. Under hypothesis one it is $`W`$. For $`k=\lceil\pi/(2\theta)\rceil`$ the relative phase $`k\theta`$ lies in $`[\pi/2,\pi]`$ and the ideal output trace-norm gap is at least $`\sqrt2`$. The number of steps satisfies $`k\le \pi^2/(4h)+1`$. @@ -73,13 +73,13 @@ S_v=(D+1)|v\rangle\langle v|-I_D. The outcome density relative to uniform unit vectors is $`D\langle v|J_{\mathcal E}|v\rangle`$. The second moment of uniform rank-one projectors is $`(I+F)/(D(D+1))`$ on two copies, by unitary invariance and support on the symmetric subspace. Taking a partial trace against $`J_{\mathcal E}`$ gives $`\mathbb E S_v=J_{\mathcal E}`$. A finite weighted ensemble of known orthonormal bases with the same second moment also suffices. Such an ensemble exists because the Haar moment lies in the convex hull of basis-averaged moments, a compact set in finite dimension. For the average $`\widehat J`$ of the independent estimates, ```math -\mathbb E\|\widehat J-J_{\mathcal E}\|_F^2 +\mathbb E\Vert\widehat J-J_{\mathcal E}\Vert_F^2 \le\frac{D^2+D-1}{N}. ``` -Reshuffle $`d\widehat J`$ into $`\widehat L`$ with the [same index convention](model.md#fixed-basis-and-vectorization) and set $`\widehat A=\mathsf H(\widehat L)/\pi`$, $`A=\mathsf H(L_{\mathcal E})/\pi`$. Reshuffling preserves Frobenius norm and the lift preserves operator norm. In particular $`\Delta=\widehat A-A`$ has zero mean and $`\mathbb E\|\Delta\|^2=O(d^6/N)`$. +Reshuffle $`d\widehat J`$ into $`\widehat L`$ with the [same index convention](model.md#fixed-basis-and-vectorization) and set $`\widehat A=\mathsf H(\widehat L)/\pi`$, $`A=\mathsf H(L_{\mathcal E})/\pi`$. Reshuffling preserves Frobenius norm and the lift preserves operator norm. In particular $`\Delta=\widehat A-A`$ has zero mean and $`\mathbb E\Vert\Delta\Vert^2=O(d^6/N)`$. -For any Hermitian $`M`$ with $`\|M\|\le1/2`$ implement the known unitary +For any Hermitian $`M`$ with $`\Vert M\Vert\le1/2`$ implement the known unitary ```math V(M)= @@ -89,27 +89,27 @@ M & \sqrt{I-M^2}\\ \end{pmatrix}. ``` -It is Hermitian, squares to identity and has exact designated block $`M`$. Use $`M=\widehat A`$ if $`\|\widehat A\|\le1/2`$ and use $`M=0`$ otherwise. The classical calibration record is discarded. The analysis compares the resulting averaged physical channel to $`\mathrm{Ad}_{V(A)}`$; a per-record guarantee is a different task. +It is Hermitian, squares to identity and has exact designated block $`M`$. Use $`M=\widehat A`$ if $`\Vert\widehat A\Vert\le1/2`$ and use $`M=0`$ otherwise. The classical calibration record is discarded. The analysis compares the resulting averaged physical channel to $`\mathrm{Ad}_{V(A)}`$; a per-record guarantee is a different task. -To bound the averaging error, let $`r=1/2-1/\pi>0`$. On $`\|\Delta\|\le r`$ the whole segment $`A+s\Delta`$, $`0\le s\le1`$, has norm at most $`1/2`$. The power series of $`\sqrt{I-M^2}`$ on this ball has uniformly bounded first and second derivatives in operator norm. Indeed the first derivative of $`M^j`$ in direction $`\Delta`$ is a sum of $`j`$ ordered products, and its second derivative is a sum of $`j(j-1)`$ such products, each with two factors $`\Delta`$. The geometric weights $`(1/2)^{j-2}`$ make the second-derivative bound summable. Applying the product rule to $`V(M)YV(M)^\dagger`$ and using $`\|B(\cdot)C\|_\diamond\le\|B\|\|C\|`$ gives +To bound the averaging error, let $`r=1/2-1/\pi>0`$. On $`\Vert\Delta\Vert\le r`$ the whole segment $`A+s\Delta`$, $`0\le s\le1`$, has norm at most $`1/2`$. The power series of $`\sqrt{I-M^2}`$ on this ball has uniformly bounded first and second derivatives in operator norm. Indeed the first derivative of $`M^j`$ in direction $`\Delta`$ is a sum of $`j`$ ordered products, and its second derivative is a sum of $`j(j-1)`$ such products, each with two factors $`\Delta`$. The geometric weights $`(1/2)^{j-2}`$ make the second-derivative bound summable. Applying the product rule to $`V(M)YV(M)^\dagger`$ and using $`\Vert B(\cdot)C\Vert_\diamond\le\Vert B\Vert\Vert C\Vert`$ gives ```math \mathrm{Ad}_{V(A+\Delta)} =\mathrm{Ad}_{V(A)}+\mathcal D_A[\Delta]+\mathcal R_A(\Delta),\qquad -\|\mathcal R_A(\Delta)\|_\diamond\le C\|\Delta\|^2, +\Vert\mathcal R_A(\Delta)\Vert_\diamond\le C\Vert\Delta\Vert^2, ``` -with a bounded linear derivative $`\mathcal D_A`$ and universal constants. In expectation the full linear term vanishes. Its contribution removed on the bad event costs at most a constant times $`\mathbb E[\|\Delta\|\mathbf1_{\{\|\Delta\|>r\}}]\le r^{-1}\mathbb E\|\Delta\|^2`$. The bad-event channels differ by at most two in diamond norm and the event has probability at most $`r^{-2}\mathbb E\|\Delta\|^2`$. Averaging all contributions gives full-channel error $`O(d^6/N)`$. Thus $`O(d^6/\delta)`$ ordinary queries suffice with ideal known gates, and fixed-dimension accuracy is exactly order $`1/\delta`$ when combined with the lower bound. The larger known basis measurements, classical estimates and unitary synthesis are additional implementation costs. +with a bounded linear derivative $`\mathcal D_A`$ and universal constants. In expectation the full linear term vanishes. Its contribution removed on the bad event costs at most a constant times $`\mathbb E[\Vert\Delta\Vert\mathbf1_{\{\Vert\Delta\Vert>r\}}]\le r^{-1}\mathbb E\Vert\Delta\Vert^2`$. The bad-event channels differ by at most two in diamond norm and the event has probability at most $`r^{-2}\mathbb E\Vert\Delta\Vert^2`$. Averaging all contributions gives full-channel error $`O(d^6/N)`$. Thus $`O(d^6/\delta)`$ ordinary queries suffice with ideal known gates, and fixed-dimension accuracy is exactly order $`1/\delta`$ when combined with the lower bound. The larger known basis measurements, classical estimates and unitary synthesis are additional implementation costs. ## Why the hard-family program cannot amplify dimension The statistical argument can also expose a limit of a common lower-bound method. Suppose two channels can each be simulated as $`\mathcal E_\tau(X)=\mathcal N(X\otimes\tau)`$ by one fixed CPTP map $`\mathcal N`$ and program states $`\rho,\sigma`$. If **both** simulated channels are unital, then ```math -\|L_{\mathcal E_\rho}-L_{\mathcal E_\sigma}\| +\Vert L_{\mathcal E_\rho}-L_{\mathcal E_\sigma}\Vert \le 2\sqrt{2-2\sqrt{F(\rho,\sigma)}} , \qquad -F(\rho,\sigma)=\|\sqrt{\rho}\sqrt{\sigma}\|_1^2. +F(\rho,\sigma)=\Vert\sqrt{\rho}\sqrt{\sigma}\Vert_1^2. ``` To see this, choose Uhlmann purifications $`|r\rangle,|s\rangle`$ with real overlap $`\sqrt F`$. Absorb the trace of the purification reference into $`\mathcal N`$ and write $`J_w=I\otimes|w\rangle`$. Then @@ -119,14 +119,14 @@ J_r X J_r^\dagger-J_s X J_s^\dagger =J_r X J_{r-s}^\dagger+J_{r-s} X J_s^\dagger . ``` -For test matrices $`X,Y`$ with unit Hilbert–Schmidt norm, let $`M=\mathcal N^\dagger(Y)`$. The trace pairing with the first term has absolute value at most $`\|M^\dagger J_r\|_F\|X J_{r-s}^\dagger\|_F`$. Kadison–Schwarz for the unital adjoint gives +For test matrices $`X,Y`$ with unit Hilbert–Schmidt norm, let $`M=\mathcal N^\dagger(Y)`$. The trace pairing with the first term has absolute value at most $`\Vert M^\dagger J_r\Vert_F\Vert X J_{r-s}^\dagger\Vert_F`$. Kadison–Schwarz for the unital adjoint gives ```math -\|M^\dagger J_r\|_F^2 +\Vert M^\dagger J_r\Vert_F^2 \le\mathrm{Tr}\!\left[J_r^\dagger\mathcal N^\dagger(YY^\dagger)J_r\right] =\mathrm{Tr}\!\left[YY^\dagger\mathcal E_\rho(I)\right]=1. ``` -For the second term, pair $`M J_s`$ with $`J_{r-s}X`$ and use $`M^\dagger M\preceq\mathcal N^\dagger(Y^\dagger Y)`$ and unitality of $`\mathcal E_\sigma`$. Each term is at most $`\||r\rangle-|s\rangle\|`$. Taking the supremum over $`X,Y`$ gives the inequality. +For the second term, pair $`M J_s`$ with $`J_{r-s}X`$ and use $`M^\dagger M\preceq\mathcal N^\dagger(Y^\dagger Y)`$ and unitality of $`\mathcal E_\sigma`$. Each term is at most $`\Vert|r\rangle-|s\rangle\Vert`$. Taking the supremum over $`X,Y`$ gives the inequality. -This gives a dimension-independent bound on the coherent signal at fixed program fidelity. In particular, the difference of the ideal time-$`t`$ evolution channels has diamond norm at most $`2|t|\|L_{\mathcal E_\rho}-L_{\mathcal E_\sigma}\|`$ by the integral identity for the difference of two exponentials. Tensoring the programs to bound discrimination and amplifying this signal therefore cannot obtain a factor of dimension from an enlarged Liouville perturbation at fixed program fidelity. The earlier [nonunital reset witness](../references/RELATED_WORK.md#the-closest-channel-spectral-construction) can have that enlargement precisely because it lacks the unital normalization above. The simultaneous dimension–precision cost over unital channels remains open. +This gives a dimension-independent bound on the coherent signal at fixed program fidelity. In particular, the difference of the ideal time-$`t`$ evolution channels has diamond norm at most $`2|t|\Vert L_{\mathcal E_\rho}-L_{\mathcal E_\sigma}\Vert`$ by the integral identity for the difference of two exponentials. Tensoring the programs to bound discrimination and amplifying this signal therefore cannot obtain a factor of dimension from an enlarged Liouville perturbation at fixed program fidelity. The earlier [nonunital reset witness](../references/RELATED_WORK.md#the-closest-channel-spectral-construction) can have that enlargement precisely because it lacks the unital normalization above. The simultaneous dimension–precision cost over unital channels remains open.