fix: remove runcard argument from qmatchatea backend and fix self.precision in the same backend
This commit is contained in:
@@ -26,7 +26,7 @@ class MetaBackend:
|
|||||||
if platform == "cutensornet": # pragma: no cover
|
if platform == "cutensornet": # pragma: no cover
|
||||||
return CuTensorNet(runcard)
|
return CuTensorNet(runcard)
|
||||||
elif platform == "quimb": # pragma: no cover
|
elif platform == "quimb": # pragma: no cover
|
||||||
return QuimbBackend(runcard)
|
return QuimbBackend()
|
||||||
elif platform == "qmatchatea": # pragma: no cover
|
elif platform == "qmatchatea": # pragma: no cover
|
||||||
from qibotn.backends.qmatchatea import QMatchaTeaBackend
|
from qibotn.backends.qmatchatea import QMatchaTeaBackend
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ class QMatchaTeaBackend(QibotnBackend, NumpyBackend):
|
|||||||
self.name = "qibotn"
|
self.name = "qibotn"
|
||||||
self.platform = "qmatchatea"
|
self.platform = "qmatchatea"
|
||||||
|
|
||||||
|
# Default precision
|
||||||
|
self.precision = "double"
|
||||||
|
|
||||||
# Set default configurations
|
# Set default configurations
|
||||||
self.configure_tn_simulation()
|
self.configure_tn_simulation()
|
||||||
self._setup_backend_specifics()
|
self._setup_backend_specifics()
|
||||||
@@ -87,7 +90,6 @@ class QMatchaTeaBackend(QibotnBackend, NumpyBackend):
|
|||||||
|
|
||||||
# TODO: once MPI is available for Python, integrate it here
|
# TODO: once MPI is available for Python, integrate it here
|
||||||
self.qmatchatea_backend = qmatchatea.QCBackend(
|
self.qmatchatea_backend = qmatchatea.QCBackend(
|
||||||
backend="PY", # The only alternative is Fortran, but we use Python here
|
|
||||||
precision=qmatchatea_precision,
|
precision=qmatchatea_precision,
|
||||||
device=qmatchatea_device,
|
device=qmatchatea_device,
|
||||||
ansatz=self.ansatz,
|
ansatz=self.ansatz,
|
||||||
|
|||||||
Reference in New Issue
Block a user