package qcaml

  1. Overview
  2. Docs
Experimental OCaml library for quantum computing simulation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.7.tar.gz
md5=d7eb2f035e630f64250607f08bf1aa51
sha512=7b4e637016793f5ef3370e39f021a50cd9cda24a31a125d1bcbb45bb214140b0b4f4038bea41d3b0361f54f642439cde845f055afe9a67435049d4672df3dbf6

doc/CHANGELOG.html

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Later

  • Multi-qubit systems
  • Entangling gates (CNOT, Toffoli, SWAP)
  • Circuit builder API
  • QASM export functionality

[0.1.7] - 2026-01-16

### Added

  • Implementation of rotation gates (Rx, Rz, Ry)

Removed

  • Eliminating unnecessary explicit dune constraint in dune-project

0.1.6 - 2026-01-06

Added

  • raylib dependency

Changed

  • Migrating to ocaml-raylib for bloch sphere visualisation

Removed

  • OpenGL/glut dependency
  • discover.ml file

0.1.5 - 2025-12-13

Added

  • S (phase) gate
  • T (π/8) gate
  • Unit tests for S and T gates

Changed

  • Improved .gitignore to exclude .vscode directory

0.1.4 - 2025-12-13

Fixed

  • macOS ARM64 support: Fixed OpenGL/GLUT header detection on Apple Silicon Macs by using /opt/homebrew/include instead of /usr/local/include
  • FreeBSD compatibility: Fixed incorrect macOS detection that was breaking FreeBSD builds.

0.1.3 - 2025-11-2

Changed

  • Update dune version lower bound to 3.17

0.1.2 - 2025-11-2

Fixed

  • Fixed a critical build failure on Windows/MinGW platforms caused by platform-specific OpenGL library naming differences.

0.1.1 - 2025-11-1

Fixed

  • Y gate test
  • Type error in apply_gate.ml line 8 - Qubit.print () q returns string but Printf.printf expects a format string

0.1.0 - 2025-10-29

Added

  • Initial public release
  • Single qubit state representation with complex amplitudes
  • Qubit state constructors: zero(), one(), plus(), minus()
  • Pauli gates: X, Y, Z
  • Hadamard gate (H)
  • Quantum measurement with probabilistic collapse
  • Interactive Bloch sphere visualization using OpenGL/GLUT
  • Complex number module with arithmetic operations
  • Comprehensive test suite using Alcotest
  • Example programs demonstrating library usage
  • Apache 2.0 license

Known Limitations

  • Single-qubit operations only (no multi-qubit support)
  • Limited gate set
  • No circuit builder API yet
  • Bloch sphere visualization can be a little buggy