We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3666b53 commit de95eadCopy full SHA for de95ead
src/density-qvm.lisp
@@ -63,11 +63,12 @@
63
(set-to-zero-state (state qvm))))
64
65
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)))
+(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)
71
+ kws))
72
73
74
(defmethod reset-quantum-state ((qvm density-qvm))
0 commit comments