Z is y0 transposed

master
Jan Petykiewicz 11 months ago
parent 01e7aae41e
commit 2a9e482e44

@ -561,7 +561,7 @@ def eigsolve(
if y0 is None:
Z = numpy.random.rand(*y_shape) + 1j * numpy.random.rand(*y_shape)
else:
Z = numpy.array(y0, copy=False)
Z = numpy.array(y0, copy=False).T
while True:
Z *= num_modes / norm(Z)

Loading…
Cancel
Save