Z is y0 transposed

This commit is contained in:
Jan Petykiewicz 2023-05-23 12:51:12 -07:00
parent 01e7aae41e
commit 2a9e482e44

View File

@ -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)