Skip to content

Repository files navigation

Quantum information and channels, formalized in Lean 4.

PR CI Compile blueprint sorries axioms Lean Mathlib blueprint: no \leanok blueprint: not ready

Blueprint · Documentation · Paper-gap notes

QICLean is a Lean 4 library, built on Mathlib, that formalizes finite-dimensional quantum information theory: the basics of quantum mechanics (density matrices, POVMs, the Schmidt decomposition, purification and steering, Wigner's theorem), quantum channels in their Kraus, Choi, and Stinespring representations, Kadison-Schwarz inequalities, quantum Perron-Frobenius theory (irreducibility, primitivity, peripheral spectrum), GKSL semigroups, entanglement theory (entanglement witnesses, Schmidt number, separability, the partial transpose and reduction criteria), positive-but-not-completely-positive maps, and entropy. The library draws heavily on M. Wolf's lecture notes, Quantum Channels & Operations: A Guided Tour, alongside results formalized from the wider quantum-information literature. Some files contain unfinished proofs (sorry) or results assumed as axioms; the badges above track the current counts.

Relation to TNLean

QICLean was extracted from TNLean, a formalization of tensor-network theory centered on the fundamental theorem of matrix product states. TNLean builds on QICLean as an ordinary Lake dependency.

Getting started

# Fetch pre-built Mathlib artifacts first; never build Mathlib from source
# in a fresh clone.
lake exe cache get
lake build

See CLAUDE.md for the full cache policy and local development workflow, and docs/getting_started.md for a fuller guide: what to install, a table of entry-point modules, a first reading path through the source, how the blueprint is built locally, and the contributing conventions carried over from TNLean.

License

QICLean is released under the Apache License 2.0 (see LICENSE), matching TNLean's license.

About

Quantum information and channels, formalized in Lean 4: quantum states and entanglement theory, channel representations, Kadison-Schwarz theory, quantum Perron-Frobenius and spectral theory, GKSL semigroups, and entropy, following Wolf's Quantum Channels & Operations

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages