Qiskit / qiskit-ibm-runtime

IBM Client for Qiskit Runtime
https://docs.quantum.ibm.com/api/qiskit-ibm-runtime
Apache License 2.0
161 stars 157 forks source link

Suppress repititive debug warnings in tests #1976

Open kt474 opened 1 month ago

kt474 commented 1 month ago

Summary

This warning is in our unit and integration tests 10,000+ times making logs difficult to read/debug.

backend_converter.convert_to_target:DEBUG:2024-10-16 04:32:46,181: Gate calibration for instruction u3 on qubits (51,) is found in the PulseDefaults payload. However, this entry is not defined in the gate mapping of Target. This calibration is ignored.

Details and comments

Fixes #

jyu00 commented 1 month ago

Do we know why this warning is being issued?

kt474 commented 1 week ago

Do we know why this warning is being issued?

The backend PulseDefaults instruction_schedule_map, has the instructions u1, u2, u3. These gates are not in the backend configuration basis_gates or supported_instructions. So this check triggers the log (127 times) every time the backend is initiated. https://github.com/Qiskit/qiskit-ibm-runtime/blob/5270a0b8115cc08b844751c7d507f96415360dca/qiskit_ibm_runtime/utils/backend_converter.py#L274-L279