feat(Computability): quantum computing foundations

Open
#688 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@exAClior is already working on this.

Since Jul 1, 2026.

  • #689 by @exAClior — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet

Research direction

Start by reading the existing definitions under Cslib/Computability/, especially the automata, Turing machine, and URM entries, then inspect the proposed Cslib/Computability/Quantum/ namespace. Define quantum registers, pure states, and unitary gates so they together express the quantum circuit model; done means the foundational definitions are added and consistent with the library’s existing style.

Written by the indexing model from the issue text.

Description

Motivation

The CSLib whitepaper lists quantum computation as an in-scope model of computation, but CSLib currently has no quantum computing definitions. The Computability/ directory covers automata, Turing machines, and URMs — quantum computing is a natural next entry.

Proposal

Add foundational definitions for the quantum circuit model under Cslib/Computability/Quantum/:

  • Quantum registers — finite-dimensional basis type (qubits as the standard case)
  • Pure states — unit vectors in a complex Hilbert space over a register
  • Unitary gates — norm-preserving operators that evolve quantum states

Together these define the quantum circuit model — the standard framework for describing quantum algorithms.

Dominant language
Lean
Stars
862
Forks
242
Avg merge
1d 4h
Merged PRs (30d)
55

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leanprover/cslib

All issues in leanprover/cslib

Similar issues

More Quantum Computing issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.