Skip to content

Commit

Permalink
[minor] import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
01110011011101010110010001101111 committed Nov 18, 2023
1 parent 43109a9 commit 9e20154
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torchquantum/layer/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
Op2QAllLayer,
RandomOp1All,
)
from torchquantum.operator.operators import R

__all__ = [
"GlobalR",
Expand All @@ -57,7 +56,7 @@ def __init__(
@tq.static_support
def forward(self, q_device, x=None):
for k in range(self.n_wires):
R()(q_device, wires=k, params=self.params)
tq.R()(q_device, wires=k, params=self.params)


class GlobalRX(GlobalR):
Expand Down

0 comments on commit 9e20154

Please sign in to comment.