Skip to main content
QUICK REVIEW

[Paper Review] Linear-algebraic lambda-calculus

Pablo Arrighi, Gilles Dowek|arXiv (Cornell University)|Jan 25, 2005
Quantum Computing Algorithms and ArchitectureComputer Science26 references8 citations
TL;DR

This paper introduces a homogeneous, linear-algebraic lambda-calculus where all functions are linear operators by construction, using a term rewrite system to provide both operational and axiomatic semantics. The calculus enforces linearity in the sense of linear algebra—preventing cloning but allowing copying—offering a unified framework for quantum computation without distinguishing classical from quantum resources.

ABSTRACT

With a view towards models of quantum computation and/or the interpretation of linear logic, we define a functional language where all functions are linear operators by construction. A small step operational semantic (and hence an interpreter/simulator) is provided for this language in the form of a term rewrite system. The linear-algebraic lambda-calculus hereby constructed is linear in a different (yet related) sense to that, say, of the linear lambda-calculus. These various notions of linearity are discussed in the context of quantum programming languages. KEYWORDS: quantum lambda-calculus, linear lambda-calculus, $λ$-calculus, quantum logics.

Motivation & Objective

  • To develop a functional language where all functions are linear operators by construction, suitable for modeling quantum computation.
  • To provide a homogeneous framework that unifies classical and quantum resources by treating classical data as basis states of quantum systems.
  • To avoid the duality of classical control and quantum data found in prior quantum lambda calculi by embedding classical control within the linear algebraic structure.
  • To ensure that only linear, and potentially unitary, operations are expressible through semantic enforcement via term rewriting and distributivity rules.
  • To explore connections between linear algebraic linearity and linear logic, particularly in the context of the Geometry of Interaction.

Proposed method

  • Define a two-sorted first-order language with sorts for scalars (K) and vectors (E), including constants for 0, 1, and the zero vector, and operations for addition, scalar multiplication, and tensor product.
  • Construct a term rewrite system (TRS) that reduces any vector expression to a unique normal form as a linear combination of base vectors, ensuring confluence and determinism.
  • Implement lambda abstraction using de Bruijn indices to encode variable binding as integers, enabling efficient and unambiguous substitution.
  • Enforce linearity by prioritizing distributivity of addition over substitution, which prevents non-linear operations like cloning (e.g., λx. x⊗x) while allowing copying.
  • Use a ring of dyadic floats with √2 and i to avoid division issues in the scalar domain, enabling exact representation of quantum amplitudes.
  • Integrate conditional branching via matching in the rewrite system, allowing control flow without introducing classical control structures separate from quantum states.

Experimental results

Research questions

  • RQ1How can a functional language be designed so that all functions are linear operators by construction, without relying on type systems?
  • RQ2What term rewrite system can provide both operational and axiomatic semantics for such a language, ensuring confluence and normal forms?
  • RQ3How can quantum control flow be expressed without distinguishing classical from quantum resources, while preserving linearity?
  • RQ4What is the relationship between linearity in linear algebra and linearity in linear logic or the linear lambda-calculus?
  • RQ5Can a homogeneous quantum functional language be constructed that avoids the need for explicit classical control structures or '!'-suspension?

Key findings

  • The term rewrite system ensures that all vector expressions reduce to a unique normal form as a linear combination of base vectors, guaranteeing determinism and confluence.
  • The calculus enforces linearity in the sense of linear algebra by making addition distributive over substitution with higher priority, which prevents cloning (e.g., λx. x⊗x) but allows copying.
  • Erasure is permitted, as the calculus does not restrict to unitary operations by default, though unitarity can be enforced via additional well-formedness conditions.
  • The language is homogeneous: classical data are represented as basis states, eliminating the need for separate classical control structures or '!'-types.
  • The approach provides a natural interpretation of quantum operations as contractions in tensor calculus, with applications resembling tensor network contractions.
  • The framework opens a path toward a linear-algebraic interpretation of linear logic, particularly in the spirit of Girard’s Geometry of Interaction, though further work is needed to solidify this connection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.