Skip to content

Commit

Permalink
updated to use clos-encounters
Browse files Browse the repository at this point in the history
  • Loading branch information
macrologist authored and stylewarning committed Apr 12, 2024
1 parent 3f9e1e8 commit 786b321
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qvm.asd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
;; General utilities
#:alexandria
;; Abstract classes
#:org.tfeb.hax.abstract-classes
#:clos-encounters
;; IEEE-754 float parsing
#:ieee-floats
;; Parallelization utilities
Expand Down
3 changes: 2 additions & 1 deletion src/error/fowler-noise.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ HIGH | 4 | 3 | 2 | 1 | 0 | LOW
| READOUT | RESET | 2Q | 1Q | IDLE |"
'(unsigned-byte 5))

(define-abstract-class fowler-qvm ()
(defclass fowler-qvm ()
((noise-probability
:initarg :noise-probability
:accessor fowler-qvm-noise-probability
Expand All @@ -34,6 +34,7 @@ HIGH | 4 | 3 | 2 | 1 | 0 | LOW
:accessor fowler-qvm-noise-class
:type fowler-noise
:documentation "Noise events of class <= NOISE-CLASS will be applied."))
(:metaclass abstract-class)
(:documentation "A quantum virtual machine with noise as specified on page 11 of /1208.0928.
This noise model carries a set of flags that select certain subsets of operations (see `FOWLER-NOISE'). When a flag is set, this noise model applies spatially-uniform depolarizing noise to the corresponding operations.")
Expand Down
2 changes: 1 addition & 1 deletion src/error/package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

(defpackage #:qvm.error
(:use #:cl
#:org.tfeb.hax.abstract-classes
#:clos-encounters
#:qvm)
(:import-from #:qvm #:multiprobabilistically)
(:local-nicknames (#:quil #:cl-quil.frontend))
Expand Down
2 changes: 1 addition & 1 deletion src/package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
(defpackage #:qvm
(:documentation "Package containing an implementation of a quantum virtual machine.")
(:use #:cl
#:org.tfeb.hax.abstract-classes)
#:clos-encounters)

(:shadowing-import-from #:mt19937
#:random)
Expand Down

0 comments on commit 786b321

Please sign in to comment.