Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency pyqtorch to v1.6.0 #619

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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