From aa01a53615f43fcd47358469b61241b377e4e2df Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:14:38 +0000 Subject: [PATCH 1/2] Update dependency pyqtorch to v1.6.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7cbf030f..0c237be0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ dependencies = [ "jsonschema", "nevergrad", "scipy", - "pyqtorch==1.5.2", + "pyqtorch==1.6.0", "pyyaml", "matplotlib", "Arpeggio==2.0.2", From efa26621a3422e022c7f05cdea49548e6f006b1e Mon Sep 17 00:00:00 2001 From: Charles MOUSSA Date: Wed, 20 Nov 2024 18:39:46 +0100 Subject: [PATCH 2/2] fix noise_matrix --- qadence/mitigations/readout.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qadence/mitigations/readout.py b/qadence/mitigations/readout.py index bb24fc27..c4683639 100644 --- a/qadence/mitigations/readout.py +++ b/qadence/mitigations/readout.py @@ -95,10 +95,10 @@ def mitigation_minimization( if readout_noise is None: raise ValueError("Specify a noise source of type NoiseProtocol.READOUT.") n_shots = sum(samples[0].values()) - noise_matrices = readout_noise.confusion_matrices - if readout_noise.confusion_matrices.numel() == 0: + noise_matrices = readout_noise.confusion_matrix + if noise_matrices.numel() == 0: readout_noise.create_noise_matrix(n_shots) - noise_matrices = readout_noise.confusion_matrices + noise_matrices = readout_noise.confusion_matrix optimization_type = mitigation.options.get("optimization_type", ReadOutOptimization.MLE) corrected_counters: list[Counter] = []