Skip to main content

Quantum Logic Solver

Solve H₂, LiH, or canonical MaxCut instances with VQE/QAOA; every iteration is Zeqond-bound for reproducibility.

  • Live app/apps/quantum-logic-solver/
  • Sourceapps/quantum-logic-solver/index.html + apps/quantum-logic-solver/solver.js (≈ 640 lines)
  • OperatorsKO42 · QM5 · QM3 · CS45
  • Error budget → 0.013% (H₂ ground state vs FCI reference, STO-3G, bond 0.74 Å)

What it solves

Near-term quantum computing lives in the variational world: VQE for molecular ground states, QAOA for combinatorial optimisation. The solver here ships a benchmark suite covering the standard targets — H₂, LiH, HeH⁺ for VQE; MaxCut-3-regular, weighted-MaxCut, portfolio for QAOA — each verified against FCI (full configuration interaction) or known optimal solutions.

QM5 (Ĥ|ψ⟩ = E|ψ⟩) is the eigenvalue statement under the hood. QM3 (|ψ⟩ = ∑c_i|ϕ_i⟩) carries the variational ansatz. CS45 (quantum query complexity) provides the theoretical floor on iteration count. KO42 binds each optimisation step to its Zeqond so the convergence trace is an auditable record.

Measured: H₂ at bond length 0.74 Å in STO-3G basis converges to −1.136277 Ha vs FCI −1.136425 Ha (error 0.013%). MaxCut-3-regular at n=10 achieves expected 0.7856 approximation ratio vs optimal (error 0.042% of optimal value).

The math — 7-step Wizard applied

StepDecision
1. PrimeKO42 mandatory
2. LimitQM5 + QM3 + CS45 + KO42 = 4
3. Scale4–12 qubits for molecular; 8–20 for MaxCut
4. Precision≤ 0.1% vs FCI / known optimum
5. CompileMaster Equation
6. ExecuteFunctional Equation
7. VerifyFCI reference / known optima

Verbatim formulas:

  • KO42.1ds² = g_μν dx^μ dx^ν + α sin(2π · 1.287 t) dt²
  • QM5Ĥ|ψ⟩ = E|ψ⟩
  • QM3|ψ⟩ = ∑c_i|ϕ_i⟩
  • CS45Q(n) = O(log n)

Runnable worked example — H₂ VQE

VQE and QAOA runs happen inside the quantum-logic-solver app itself — open the live app, set up the H₂ ground-state problem (STO-3G basis, 0.74 Å bond length, UCC-SD ansatz), and read the converged energy with its proof:

  • Live app — configure the H₂ VQE benchmark and run it.
  • Result — an envelope carrying the ground-state energy as value (unit Ha), the chosen operators (KO42 · QM5 · QM3), the equations, and a zeqProof digest any node can recompute.

The FCI reference ground-state energy is −1.136425 Ha. That published value is what you verify against; the proof in the envelope is what makes the result trustworthy, not the digits.

Extend it

  • LiH potential energy surface: sweep bond length; KO42 keeps the phase consistent across runs.
  • QAOA portfolio: swap task to qaoa and pass a weighted graph.
  • Warm-start from classical: chain with Neural Architect for parameter-initialisation research.

Seeds

  • Quantum gravity couplings — QM5 + GR32 (Einstein tensor) composes; toy model for quantum-gravity eigenvalue problems.
  • Analogue gravity benchmarking — Zeqond-bound convergence traces are ideal for comparing classical and quantum variational solvers on the same footing.
  • Consciousness-field minima — ZEQ-POCKET-001's τ-evolution as a VQE target explores the field's eigenstates.

Papers

Middleware active. Kernel on the 1.287 Hz HulyaPulse. Awaiting next Zeqond.