Block encoding · symbolic exact rational family
BE Case 2: cubic diagonal family, hinted route
Use the supplied idea 'first represent the diagonal input x_j, then target x_j^3' without treating that prose hint as a proof.
Read this before the proof dashboard
Learn the difference between a useful mathematical hint and a proof of the resulting quantum circuit.
A human hint says to first encode x_j=j/2^n and then think of the cubic target as x_j^3. That idea is valuable for choosing a route, but it does not by itself establish unitarity or a clean block.
This mirrors how research actually proceeds: algebra suggests a decomposition, while each quantum-access object still needs its own exact certificate.
Read the circuit
What the wires and stages are doing
Construct an exact block encoding of O0=diag(x_j).
On the target diagonal, D_n=O0^3.
The current library separately certifies an exact cubic Householder block rather than pretending the prose hint is a primitive QSVT circuit.
No strict resource comparison is claimed because the two constructions use different branch widths and no betterThan theorem connects them.
The detailed circuit diagrams generated from the case record appear below this tutorial.
Statement → proof → optional Lean
The mathematical claims, in the order a human would prove them
Route theorem
The linear input and cubic output blocks are both exact
Lean certifies the linear diagonal block and the cubic diagonal block as separate exact constructions; the identity D_n=O0^3 explains the hint but does not replace those certificates.
Proof story
- Formalize the hintTurn the prose suggestion into the two precise operator targets O0 and Dn.
- Certify O0Construct a rational Householder clean block with first coordinate x_j.
- Identify the desired polynomialThe target diagonal entry is exactly x_j^3.
- Certify DnUse the independent exact cubic Householder family theorem.
- Keep QSVT honestDo not label a polynomial identity as a synthesized QSVT phase sequence unless that separate route is proved.
Show the Lean proof checkpoints
The mathematical explanation above is the reading layer. These compiled declarations are the proof authority.
Mathematical target
The equation being studied
Lean closes two named endpoints: an exact linear-diagonal Householder input block and an exact cubic-diagonal Householder output block. The algebraic hint chooses a route; each unitary and clean block is still proved independently.
O_0- the input diagonal operator suggested by the hint
D_n- the desired cubic diagonal operator
x_j- the exact rational grid point j/2^n
Circuit anatomy
How the candidate acts
These blocks show logical stages and register responsibilities. They do not pretend an unresolved logical oracle is already a primitive hardware gate.
Input block
exactly encode diag(x_j)
Polynomial route
identify the desired diagonal entries x_j^3
Output block
exact rational Householder completion
Auditable evolution
Candidate and proof progression
The stages show route closure. They are not claimed as a strict resource improvement because no same-tier better-than theorem is attached to this route.
Hint parsed
Route selectedThe prose suggestion is converted into two formal operator contracts.
QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract_complete
Edit and preview this stage →
Copy this stage as quantikz
\begin{quantikz}[column sep=.45cm]
\lstick{$\ket j$} & \gate{O_0:\,x_j} & \gate{p(z)=z^3} & \rstick{$x_j^3$} \qw
\end{quantikz}
Linear input block
Lean certified familyThe input diagonal block has exact unitarity, projection, alpha, and resource fields.
QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract_complete
Edit and preview this stage →
Copy this stage as quantikz
\begin{quantikz}[row sep=.4cm, column sep=.55cm]
\lstick{$\ket0$} & \gate{H(v_j^{(1)})} & \rstick{$x_j\ket0+\ket{\perp_j}$} \qw \\
\lstick{$\ket j$}& \ctrl{-1} & \qw
\end{quantikz}
Cubic output block
Lean certified familyThe desired cubic family is closed independently; the differing branch widths are not ranked here.
QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract_complete
Edit and preview this stage →
Copy this stage as quantikz
\begin{quantikz}[row sep=.4cm, column sep=.55cm]
\lstick{$\ket{0^3}$} & \gate{H(v_j^{(3)})} & \rstick{$x_j^3\ket0+\ket{\perp_j}$} \qw \\
\lstick{$\ket j$} & \ctrl{-1} & \qw
\end{quantikz}
Reader workbench
Edit, preview, then copy
Change symbols, language, proof steps, or the grouped-register circuit locally in your browser. The preview is explanatory; the linked Lean declaration remains the certificate.
Mathematical construction
Proof steps
One step per line. Natural language and inline mathematics are both accepted.
Quantum circuit
Complete packet
Copy the reviewed construction and proof
The packet below is generated from the reviewed case record. The exact primitive authority is the linked Lean source and executable artifact.
Construction and circuit LaTeX
% Requires: \usepackage{quantikz}
\paragraph{Construction.}
\[
O_0=\sum_{j=0}^{2^n-1}x_j|j\rangle\!\langle j|,\quad x_j=\frac{j}{2^n},\qquad D_n=O_0^3=\sum_jx_j^3|j\rangle\!\langle j|.
\]
% Hint parsed
\begin{quantikz}[column sep=.45cm]
\lstick{$\ket j$} & \gate{O_0:\,x_j} & \gate{p(z)=z^3} & \rstick{$x_j^3$} \qw
\end{quantikz}
% Linear input block
\begin{quantikz}[row sep=.4cm, column sep=.55cm]
\lstick{$\ket0$} & \gate{H(v_j^{(1)})} & \rstick{$x_j\ket0+\ket{\perp_j}$} \qw \\
\lstick{$\ket j$}& \ctrl{-1} & \qw
\end{quantikz}
% Cubic output block
\begin{quantikz}[row sep=.4cm, column sep=.55cm]
\lstick{$\ket{0^3}$} & \gate{H(v_j^{(3)})} & \rstick{$x_j^3\ket0+\ket{\perp_j}$} \qw \\
\lstick{$\ket j$} & \ctrl{-1} & \qw
\end{quantikz}
English proof LaTeX
\paragraph{Proof.}
Lean closes two named endpoints: an exact linear-diagonal Householder input block and an exact cubic-diagonal Householder output block. The algebraic hint chooses a route; each unitary and clean block is still proved independently.
\begin{enumerate}
\item The prose suggestion is converted into two formal operator contracts.
\item The input diagonal block has exact unitarity, projection, alpha, and resource fields.
\item The desired cubic family is closed independently; the differing branch widths are not ranked here.
\end{enumerate}
Each advertised certificate is the named Lean declaration linked on this page.
Lean declaration retrieval block
import QuantumBlockEncoding
#check QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract_complete
#check QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract_complete
Show the complete Lean certificate list
Open this when you want to inspect every declaration linked to the case.
Proof authority
Named Lean certificates
These declarations, compiled by the current Lean gate, support the mathematical and resource claims above.
QuantumBlockEncoding.CubicDiagonalOracle.linearDiagonalHouseholderInputBEContract_completeQuantumBlockEncoding/CubicStatePreparation.lean:2261QuantumBlockEncoding.CubicDiagonalOracle.cubicDiagonalHouseholderExactBEContract_completeQuantumBlockEncoding/CubicStatePreparation.lean:2879
Optional executable checks and outputs
Executable verification and exports
Checking and artifact selection are independent. A user may screen with Qiskit, OpenQASM round-trip, both, or neither, then request a different set of output files.
| Backend / artifact | Role | Status | Evidence |
|---|---|---|---|
| Internal canonical evaluator | Reference semantics for primitive canonical IR | open | metrics manifest |
| Qiskit Operator | Gate-by-gate numerical screening | artifact available | tools/export_hard_cubic_householder.py |
| OpenQASM 3 round-trip | Strict serialization, import, and semantic replay | not recorded | QASM and report when generated |
| Lean certificate | Exact proof authority at the page's stated semantic tier | passed | 2 named root(s) |
Exports finite instances of both exact symbolic roots. Numerical comparisons do not certify either family.
- Current runnable artifact
tools/export_hard_cubic_householder.py- Command
python3 tools/export_hard_cubic_householder.py --task QBE-HARD-CUBIC-DIAGONAL-HIER-HINTED-001
- Source
- ASPBE BE Case 2 hinted route
- Contributor
- ASPBE authors
- Current boundary
- The current theorem uses exact Householder completion; it does not yet certify a QSVT primitive implementation.