From dd31bf1c760cfa56846f52cf766b7502731cfe90 Mon Sep 17 00:00:00 2001 From: GenericP3rson Date: Fri, 4 Aug 2023 12:40:23 -0300 Subject: [PATCH] [minor] fix lint for qft --- torchquantum/algorithm/qft.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/torchquantum/algorithm/qft.py b/torchquantum/algorithm/qft.py index f8773678..704736e0 100644 --- a/torchquantum/algorithm/qft.py +++ b/torchquantum/algorithm/qft.py @@ -3,6 +3,7 @@ __all__ = ["QFT"] + class QFT(object): def __init__( self, n_wires: int = None, wires: Iterable = None, do_swaps=True @@ -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."""