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

Suppress repititive debug warnings in tests #1976

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kt474
Copy link
Member

@kt474 kt474 commented Oct 16, 2024

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
Copy link
Collaborator

jyu00 commented Oct 17, 2024

Do we know why this warning is being issued?

@kt474
Copy link
Member Author

kt474 commented Nov 19, 2024

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.

if (
name not in all_instructions
or name not in prop_name_map
or prop_name_map[name] is None
or qubits not in prop_name_map[name]
):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants