Skip to content

Commit de95ead

Browse files
committed
density-qvm: provide missing kwargs to DENSITY-QVM
1 parent 3666b53 commit de95ead

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/density-qvm.lisp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@
6363
(set-to-zero-state (state qvm))))
6464

6565

66-
(defun make-density-qvm (num-qubits &key (allocation nil) &allow-other-keys)
67-
(make-instance 'density-qvm :number-of-qubits num-qubits
68-
:state (make-density-matrix-state
69-
num-qubits
70-
:allocation allocation)))
66+
(defun make-density-qvm (num-qubits &rest kws &key (allocation nil) &allow-other-keys)
67+
(apply #'make-instance
68+
'density-qvm
69+
:number-of-qubits num-qubits
70+
:state (make-density-matrix-state num-qubits :allocation allocation)
71+
kws))
7172

7273

7374
(defmethod reset-quantum-state ((qvm density-qvm))

0 commit comments

Comments
 (0)