Skip to content

Commit 786b321

Browse files
O'Keefe, Colin Bstylewarning
authored andcommitted
updated to use clos-encounters
1 parent 3f9e1e8 commit 786b321

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

qvm.asd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
;; General utilities
1818
#:alexandria
1919
;; Abstract classes
20-
#:org.tfeb.hax.abstract-classes
20+
#:clos-encounters
2121
;; IEEE-754 float parsing
2222
#:ieee-floats
2323
;; Parallelization utilities

src/error/fowler-noise.lisp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ HIGH | 4 | 3 | 2 | 1 | 0 | LOW
2222
| READOUT | RESET | 2Q | 1Q | IDLE |"
2323
'(unsigned-byte 5))
2424

25-
(define-abstract-class fowler-qvm ()
25+
(defclass fowler-qvm ()
2626
((noise-probability
2727
:initarg :noise-probability
2828
:accessor fowler-qvm-noise-probability
@@ -34,6 +34,7 @@ HIGH | 4 | 3 | 2 | 1 | 0 | LOW
3434
:accessor fowler-qvm-noise-class
3535
:type fowler-noise
3636
:documentation "Noise events of class <= NOISE-CLASS will be applied."))
37+
(:metaclass abstract-class)
3738
(:documentation "A quantum virtual machine with noise as specified on page 11 of /1208.0928.
3839
3940
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.")

src/error/package.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
(defpackage #:qvm.error
77
(:use #:cl
8-
#:org.tfeb.hax.abstract-classes
8+
#:clos-encounters
99
#:qvm)
1010
(:import-from #:qvm #:multiprobabilistically)
1111
(:local-nicknames (#:quil #:cl-quil.frontend))

src/package.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
(defpackage #:qvm
66
(:documentation "Package containing an implementation of a quantum virtual machine.")
77
(:use #:cl
8-
#:org.tfeb.hax.abstract-classes)
8+
#:clos-encounters)
99

1010
(:shadowing-import-from #:mt19937
1111
#:random)

0 commit comments

Comments
 (0)