Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 675 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 675 Bytes

QuantumLisp

Quantum computing simulator for Common Lisp.

Examples

Creating and printing a superposition:

(defvar qubits (quantumlisp:superpos (list 1 0)))
(quantumlisp:print-superpos qubits)

Applying different quantum gates to a superposition:

(setq qubits (quantumlisp:swap qubits))
(setq qubits (quantumlisp:sqrt-swap qubits))
(setq qubits (quantumlisp:cnot qubits))

Collapsing a superposition:

(quantumlisp:collapse qubits)

Getting Started

An installation of the Quicklisp package manager is required

(push #p"/YOUR/CLONE/PATH/QuantumLisp/" asdf:*central-registry*)
(ql:quickload "quantumlisp")

License

MIT