quil-lang/magicl

RANDOM-UNITARY doesn't produce complex matrices

Closed this issue ยท 5 comments

the imaginary part is always 0.

the problem is that the RANDOM-GAUSSIAN is producing only one single real. Change to fix would be something like:

:distribution (lambda ()
                                                                 (multiple-value-bind (re im)
                                                                     (alexandria:gaussian-random)
                                                                   (complex re im)))

@stylewarning Did anything come of this or should I push the fix you described?

Was #119 merged?

Was #119 merged?

No, it was closed by @kilimanjaro

@stylewarning u did it