Quantum computing simulator for Common Lisp.
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)
An installation of the Quicklisp package manager is required
(push #p"/YOUR/CLONE/PATH/QuantumLisp/" asdf:*central-registry*)
(ql:quickload "quantumlisp")
MIT