Z is y0 transposed

master
Jan Petykiewicz 1 year ago
parent 01e7aae41e
commit 2a9e482e44

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

Loading…
Cancel
Save