Skip to content

Commit

Permalink
fix: using cupy's expm
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Feb 24, 2025
1 parent 2be96c3 commit eac2ed7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qibojit/backends/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def kernel_loader(name, ktype):
# set the engine of the quantum info operators
self.qinfo.ENGINE = cp

from cupyx.scipy.linalg import expm

self.qinfo.expm = expm

def set_precision(self, precision):
super().set_precision(precision)
if self.dtype == "complex128":
Expand Down

0 comments on commit eac2ed7

Please sign in to comment.