fix: probabilities method in result class

This commit is contained in:
MatteoRobbiati
2025-02-04 11:20:46 +01:00
parent 8b7bb9ee7c
commit 65b60e0fb9
2 changed files with 9 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ class QMatchaTeaBackend(QibotnBackend):
circuit,
initial_state=None,
nshots=None,
prob_type="U",
prob_type=None,
return_array=False,
**prob_kwargs,
):
@@ -123,6 +123,10 @@ class QMatchaTeaBackend(QibotnBackend):
f"Backend {self.name}-{self.platform} currently does not support initial state.",
)
if prob_type == None:
prob_type = "U"
prob_kwargs = {"num_samples": 500}
# To be sure the setup is correct and no modifications have been done
self._setup_qmatchatea_backend()