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

demote noisy warning to the debug logger #7124

Merged
merged 2 commits into from
Oct 12, 2021
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import copy
import logging
import warnings

import numpy as np

Expand Down Expand Up @@ -110,7 +109,7 @@ def _substitution_checks(self, dag, old_run, new_circ, new_basis):
if rewriteable_and_in_basis_p and len(old_run) < len(new_circ):
# NOTE: This is short-circuited on calibrated gates, which we're timid about
# reducing.
warnings.warn(
logger.debug(
"Resynthesized \n\n"
+ "\n".join([str(node.op) for node in old_run])
+ "\n\nand got\n\n"
Expand Down