You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix test flake in pauli_string_measurement_with_readout_mitigation_test (#7459)
Avoid possible KeyError in
`test_process_pauli_measurement_results_raises_error_on_missing_calibration`
Problem: Random Pauli strings generated in the test may not contain all
qubits
as is assumed in the `empty_calibration_result_dict` key.
Solution: Make dictionary with the qubits present in Pauli strings.
Fixes spurious test failure
```
pytest --randomly-seed=532866775 \
cirq-core/cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py \
-k test_process_pauli_measurement_results_raises_error_on_missing_calibration
```
Also fix
- unnecessarily repeated list construction
- unintentional dropping of circuits in a loop
- Nit - sync docstring with function arguments
0 commit comments