Update README.md
This commit is contained in:
parent
9b8584bd6f
commit
f702251949
10
README.md
10
README.md
@ -1,4 +1,10 @@
|
||||
# cl-quantum
|
||||
|
||||
This is just some experiments with quantum computing emulation that I am doing
|
||||
for a school project.
|
||||
`cl-quantum` is a quantum circuit simulator for common lisp. It also has a basic
|
||||
vector and matrix algebra library included. `cl-quantum` has external
|
||||
requirements to use the main simulator, however, `cl-ppcre` is required to parse
|
||||
back pretty-printed states. `cl-quantum` has been tested with SBCL 2.4.9 on
|
||||
ArchLinux and was able to perform a simple Grover's search algorithm with 11
|
||||
qbits in about 5 minutes.
|
||||
|
||||
I wrote this for a final project for my PHYSICS-103 class a LACC.
|
||||
|
@ -16,10 +16,10 @@ bits and finds when the state is equal to TARGET."
|
||||
;; Setup
|
||||
(loop for i below bits do (:h i))
|
||||
|
||||
;; Oracle
|
||||
(loop
|
||||
repeat (count-grover-iterations bits 1)
|
||||
do
|
||||
;; Oracle
|
||||
(loop for i below bits
|
||||
for cur = (logand (ash target (- i)) 1)
|
||||
when (zerop cur)
|
||||
|
Loading…
Reference in New Issue
Block a user