Skip to content

Commit

Permalink
black format
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdilkes committed Aug 29, 2023
1 parent a7b7d4c commit a5e4a09
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions pytket/pytket/backends/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def valid_circuit(self, circuit: Circuit) -> bool:
def _check_all_circuits(
self, circuits: Iterable[Circuit], nomeasure_warn: Optional[bool] = None
) -> bool:

if nomeasure_warn is None:
nomeasure_warn = not (
self._supports_state
Expand Down Expand Up @@ -265,7 +264,6 @@ def process_circuits(
valid_check: bool = True,
**kwargs: KwargTypes,
) -> List[ResultHandle]:

"""
Submit circuits to the backend for running. The results will be stored
in the backend's result cache to be retrieved by the corresponding
Expand Down
2 changes: 1 addition & 1 deletion pytket/pytket/circuit/decompose_classical.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def _decompose_expressions(circ: Circuit) -> Tuple[Circuit, bool]:
modified = True
continue
if optype == OpType.Barrier:
# add_gate doesn't work for metaops
# add_gate doesn't work for metaops
newcirc.add_barrier(args)
else:
newcirc.add_gate(op, args, **kwargs)
Expand Down
1 change: 0 additions & 1 deletion pytket/tests/classical_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@ def qubit_register(
index=strategies.integers(min_value=0, max_value=32),
)
def test_registers(reg: Union[BitRegister, QubitRegister], index: int) -> None:

unit_type = Qubit if type(reg) is QubitRegister else Bit
if index < reg.size:
assert reg[index] == unit_type(reg.name, index)
Expand Down
2 changes: 1 addition & 1 deletion pytket/tests/qasm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_conditional_gates() -> None:
circ.Measure(0, 0)
circ.Measure(1, 1)
circ.Z(0, condition_bits=[0, 1], condition_value=2)
circ._add_conditional_barrier([0,1],[0],[1], 1)
circ._add_conditional_barrier([0, 1], [0], [1], 1)
circ.Measure(0, 0, condition_bits=[0, 1], condition_value=1)
qasm_out = str(curr_file_path / "qasm_test_files/testout5.qasm")
circuit_to_qasm(circ, qasm_out)
Expand Down

0 comments on commit a5e4a09

Please sign in to comment.