Skip to content

Commit

Permalink
[minor] fix lint for qft
Browse files Browse the repository at this point in the history
  • Loading branch information
01110011011101010110010001101111 committed Aug 4, 2023
1 parent a54b0b7 commit dd31bf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torchquantum/algorithm/qft.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

__all__ = ["QFT"]


class QFT(object):
def __init__(
self, n_wires: int = None, wires: Iterable = None, do_swaps=True
Expand All @@ -23,7 +24,9 @@ def __init__(

def construct_qft_circuit(self) -> tq.QuantumModule:
"""Construct the QFT circuit."""
return tq.layer.QFTLayer(n_wires=self.n_wires, wires=self.wires, do_swaps=self.do_swaps)
return tq.layer.QFTLayer(
n_wires=self.n_wires, wires=self.wires, do_swaps=self.do_swaps
)

def construct_inverse_qft_circuit(self) -> tq.QuantumModule:
"""Construct the inverse of a QFT circuit."""
Expand Down

0 comments on commit dd31bf1

Please sign in to comment.