Skip to content

Commit

Permalink
linting fix (#2369)
Browse files Browse the repository at this point in the history
  • Loading branch information
antalszava authored Mar 23, 2022
1 parent 482cd08 commit 75e4c40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pennylane/tape/tape.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
import contextlib
import copy
from threading import RLock
import warnings

import numpy as np

import pennylane as qml
from pennylane.queuing import AnnotatedQueue, QueuingContext, QueuingError
Expand Down Expand Up @@ -1235,6 +1232,7 @@ def to_openqasm(self, wires=None, rotations=True, measure_all=True, precision=No
if op.inverse:
op.inv()

# pylint: disable=no-member
# decompose the queue
operations = tape.expand(depth=2, stop_at=lambda obj: obj.name in OPENQASM_GATES).operations

Expand Down

0 comments on commit 75e4c40

Please sign in to comment.