Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fwcd/quantumlisp
Quantum computing simulation for Common Lisp
https://github.com/fwcd/quantumlisp
lisp quantum-computing quantum-simulator simulation
Last synced: 26 days ago
JSON representation
Quantum computing simulation for Common Lisp
- Host: GitHub
- URL: https://github.com/fwcd/quantumlisp
- Owner: fwcd
- License: mit
- Created: 2018-06-10T15:50:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-25T08:54:49.000Z (over 6 years ago)
- Last Synced: 2024-10-24T19:37:00.669Z (3 months ago)
- Topics: lisp, quantum-computing, quantum-simulator, simulation
- Language: Common Lisp
- Size: 6.84 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QuantumLisp
Quantum computing simulator for Common Lisp.## Examples
Creating and printing a superposition:
```lisp
(defvar qubits (quantumlisp:superpos (list 1 0)))
(quantumlisp:print-superpos qubits)
```Applying different quantum gates to a superposition:
```lisp
(setq qubits (quantumlisp:swap qubits))
(setq qubits (quantumlisp:sqrt-swap qubits))
(setq qubits (quantumlisp:cnot qubits))
```Collapsing a superposition:
```lisp
(quantumlisp:collapse qubits)
```## Getting Started
An installation of the Quicklisp package manager is required```lisp
(push #p"/YOUR/CLONE/PATH/QuantumLisp/" asdf:*central-registry*)
(ql:quickload "quantumlisp")
```## License
MIT