Skip to content

Commit bb9de64

Browse files
fix: GST tests
1 parent aab1d45 commit bb9de64

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

poetry.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/qibo/transpiler/unitary_decompositions.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def u3_decomposition(unitary, backend):
3232
minus = backend.np.angle(su2[1, 0])
3333
phi = plus + minus
3434
lam = plus - minus
35-
return theta, phi, lam
35+
# explicit conversion to float to avoid issue on GPU
36+
return float(theta), float(phi), float(lam)
3637

3738

3839
def calculate_psi(unitary, backend, magic_basis=magic_basis):

0 commit comments

Comments
 (0)