From 487cde3fb9e8c0d3f5b4b2dc11fe9aa98eb94381 Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Fri, 3 Nov 2023 14:29:44 +0400 Subject: [PATCH] fix --- src/qibo/backends/npmatrices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qibo/backends/npmatrices.py b/src/qibo/backends/npmatrices.py index 217697f006..490489833c 100644 --- a/src/qibo/backends/npmatrices.py +++ b/src/qibo/backends/npmatrices.py @@ -227,8 +227,8 @@ def GeneralizedfSim(self, u, phi): return self.np.array( [ [1, 0, 0, 0], - [0, u[0, 0], u[0, 1], 0], - [0, u[1, 0], u[1, 1], 0], + [0, complex(u[0, 0]), complex(u[0, 1]), 0], + [0, complex(u[1, 0]), complex(u[1, 1]), 0], [0, 0, 0, phase], ], dtype=self.dtype,