Skip to content

Commit 2c28c30

Browse files
committed
Linter changes
1 parent b319b7d commit 2c28c30

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

examples/netqasm/teleport/teleport.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
set_simulator("simulaqron")
44

5-
from netqasm.runtime.application import default_app_instance
6-
from netqasm.sdk.external import NetQASMConnection
7-
from netqasm.sdk import Qubit, EPRSocket
5+
from netqasm.runtime.application import default_app_instance # noqa: E402
6+
from netqasm.sdk.external import NetQASMConnection # noqa: E402
7+
from netqasm.sdk import Qubit, EPRSocket # noqa: E402
8+
9+
from simulaqron.run.run import run_applications # noqa: E402
810

9-
from simulaqron.run.run import run_applications
1011

1112
def run_alice():
1213
epr_socket: EPRSocket = EPRSocket("Bob")
@@ -33,6 +34,7 @@ def run_bob():
3334
meas = entangled_qubit.measure()
3435
return meas
3536

37+
3638
if __name__ == "__main__":
3739
apps = default_app_instance(
3840
[

simulaqron/toolbox/stabilizer_states.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __repr__(self):
217217
return "StabilizerState(np." + self._group.__repr__() + ")"
218218

219219
def __str__(self):
220-
to_return = f"Stabilizer state on {self.num_qubits} with the following stabilizer generators:\n"
220+
to_return = f"Stabilizer state on {self.num_qubits} with the following stabilizer generators: \n"
221221
for row_str in self.to_string().split('\n'):
222222
to_return += f"\t{row_str}\n"
223223
return to_return[:-1]

tests/slow/sdk/test_two_qubit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,5 +244,5 @@ def test_teleport(self, network):
244244
("Bob", teleport_bob)
245245
]
246246
)
247-
results = run_applications(apps, use_app_config=False, enable_logging=False, num_rounds=self.iterations)
248-
#print(results)
247+
_ = run_applications(apps, use_app_config=False, enable_logging=False, num_rounds=self.iterations)
248+
#print(_)

0 commit comments

Comments
 (0)