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

Set default logging level for tests #2105

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kt474
Copy link
Member

@kt474 kt474 commented Jan 16, 2025

Summary

This log shows up thousands of times in our tests, we can set the default log level to INFO.

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]
):

Also added measurements to circuits in test_sampler to avoid the UserWarning.

Details and comments

Fixes #1910
Fixes #2034

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.

Disable some user warnings in tests The tests issue many warnings
1 participant