Fix bug
This commit is contained in:
@@ -14,8 +14,9 @@ class CuTensorNet(QibotnBackend, NumpyBackend): # pragma: no cover
|
|||||||
|
|
||||||
def __init__(self, runcard):
|
def __init__(self, runcard):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
import cuquantum
|
||||||
from cuquantum import cutensornet as cutn # pylint: disable=import-error
|
from cuquantum import cutensornet as cutn # pylint: disable=import-error
|
||||||
|
|
||||||
if runcard is not None:
|
if runcard is not None:
|
||||||
self.MPI_enabled = runcard.get("MPI_enabled", False)
|
self.MPI_enabled = runcard.get("MPI_enabled", False)
|
||||||
self.NCCL_enabled = runcard.get("NCCL_enabled", False)
|
self.NCCL_enabled = runcard.get("NCCL_enabled", False)
|
||||||
|
|||||||
Reference in New Issue
Block a user