Skip to content

Commit

Permalink
Update dependency pyqtorch to v1.6.0 (#619)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Nov 20, 2024
1 parent 66219fb commit 65feb22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies = [
"jsonschema",
"nevergrad",
"scipy",
"pyqtorch==1.5.2",
"pyqtorch==1.6.0",
"pyyaml",
"matplotlib",
"Arpeggio==2.0.2",
Expand Down
6 changes: 3 additions & 3 deletions qadence/mitigations/readout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []
Expand Down

0 comments on commit 65feb22

Please sign in to comment.