From 02732f21dcf8a5209fb90f958f7e0921007567b6 Mon Sep 17 00:00:00 2001 From: JdelArco98 Date: Fri, 26 Apr 2024 09:05:59 +0200 Subject: [PATCH] fix U.export_to() personalized --- src/tequila/circuit/qpic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tequila/circuit/qpic.py b/src/tequila/circuit/qpic.py index 18faaffa..be2e394e 100644 --- a/src/tequila/circuit/qpic.py +++ b/src/tequila/circuit/qpic.py @@ -224,7 +224,7 @@ def export_to(circuit, 'always_use_generators': True, 'group_together': "BARRIER" } - elif not hasattr("style", "items"): + elif not hasattr(style, "items"): raise Exception( "style needs to be `tequila`, or `standard` or `generators` or a dictionary, you gave: {}".format( str(style)))