Skip to content

Commit

Permalink
density-qvm: provide missing kwargs to DENSITY-QVM
Browse files Browse the repository at this point in the history
  • Loading branch information
notmgsk committed May 12, 2021
1 parent 3666b53 commit de95ead
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/density-qvm.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@
(set-to-zero-state (state qvm))))


(defun make-density-qvm (num-qubits &key (allocation nil) &allow-other-keys)
(make-instance 'density-qvm :number-of-qubits num-qubits
:state (make-density-matrix-state
num-qubits
:allocation allocation)))
(defun make-density-qvm (num-qubits &rest kws &key (allocation nil) &allow-other-keys)
(apply #'make-instance
'density-qvm
:number-of-qubits num-qubits
:state (make-density-matrix-state num-qubits :allocation allocation)
kws))


(defmethod reset-quantum-state ((qvm density-qvm))
Expand Down

0 comments on commit de95ead

Please sign in to comment.