Skip to content

Commit

Permalink
EXTRACT-KRAUS-OPS: CL-QUIL::MAKE-ROW-MAJOR-MATRIX -> MAGICL:FROM-LIST
Browse files Browse the repository at this point in the history
The function CL-QUIL::MAKE-ROW-MAJOR-MATRIX was removed in
quil-lang/quilc#574.

Switch to using MAGIC:FROM-LIST, instead.
  • Loading branch information
appleby authored and notmgsk committed Mar 2, 2020
1 parent 300a017 commit 1343522
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/configure-qvm.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ statements and convert them into a hash-table with keys
(cl-quil::pragma-qubit-arguments instr))
kraus-ops)
(append existing-ops
(list (cl-quil::make-row-major-matrix
d d
(cl-quil::pragma-matrix-entries instr))))))
(list (magicl:from-list
(cl-quil::pragma-matrix-entries instr)
(list d d)
:type '(complex double-float))))))
;; change to no-op to prevent the QVM from logging
;; warnings about these pragmas
(change-class instr 'cl-quil:no-operation))
Expand Down

0 comments on commit 1343522

Please sign in to comment.