Tool Comparisons

How Fanal compares to existing quantum program verification and formalization tools across proof foundations, automation, and expressiveness.

Tool Overview

ToolVenueSystemFocus
CoqQPOPL 2023Coq / MathCompLabelled Dirac + qwhile + quantum Hoare logic
SQIR/VOQCPOPL 2021Coq / QuantumLibVerified quantum circuit optimization
Lean-QuantumInfoarXiv 2024Lean 4 / MathlibQuantum information theory (entropy, channels, GQSL)
QBricksESOP 2021Why3 / SMTSMT-automated circuit-building program verification
QafnyECOOP 2024Dafny / Z3Separation logic for quantum programs
AutoQ 2.0TACAS 2025C++ standaloneTree-automata-based automatic verification
D-HammerCAV 2025C++ / MathematicaAutomated labelled Dirac equational reasoning
FanalIn developmentLean 4 / MathlibFoundational quantum program formalization & verification

Proof Foundation

ToolProof SystemTrust BaseProof Certificates
CoqQCoq / Calculus of ConstructionsCoq kernelYes (Coq proofs)
SQIR/VOQCCoq / Calculus of ConstructionsCoq kernelYes (Coq proofs)
Lean-QuantumInfoLean 4 / CIC with quotientsLean 4 kernelYes (Lean proofs)
QBricksWhy3 / First-order logic + SMTWhy3 + SMT solversPartial (SMT certificates)
QafnyDafny / Hoare logic + Z3Dafny verifier + Z3No
AutoQ 2.0None (algorithmic)Unverified C++ implementationNone
D-HammerNone (decision procedure)Unverified C++ / MathematicaNone
FanalLean 4 / CIC with quotientsLean 4 kernelYes (Lean proofs)

Automation

ToolLevelMechanismUser Effort
CoqQLowManual Coq tacticsHigh — manual proofs
SQIR/VOQCLow–MediumCoq tactics + LtacHigh — manual proofs
Lean-QuantumInfoLowLean tactics + MathlibHigh — manual proofs
QBricksHigh (94%+)SMT solvers (path-sum)Low — mostly automatic
QafnyHighZ3 SMT solverLow — annotations only
AutoQ 2.0Very HighTree automata algorithmsMinimal — fully automatic
D-HammerVery HighDecision procedureMinimal — fully automatic
FanalMedium (developing)dirac_eq tactic + D-Hammer integrationMedium — tactic-assisted

Expressiveness

ToolClassical + QuantumLoopsMeasurementAssertionsCompilation
CoqQBothWhile loopsYesLabelled DiracNo
SQIR/VOQCQuantum onlyNoYesMatrix-basedYes (OpenQASM)
Lean-QuantumInfoQuantum onlyN/AChannelsOperator algebraNo
QBricksBothCircuit-buildingLimitedPath-sumNo
QafnyBothWhile loopsYesSeparation logicYes (SQIR/OpenQASM)
AutoQ 2.0Quantum onlyBoundedNoTree automataNo
D-HammerN/AN/AN/ALabelled DiracNo
FanalBothWhile loopsYesLabelled DiracPlanned

Fanal's Unique Position

  • Only Lean 4 project targeting quantum program verification
  • Unique hierarchical access path register model with value-dependent labels
  • D-Hammer integration path — combining automation with kernel-checked proofs
  • Descriptive/Supportive code separation for AI-assisted development
  • Specification-driven + AI-native development workflow