Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
madcpf committed Aug 1, 2024
1 parent e845d54 commit 48e61ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions unitary/alpha/quantum_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def copy(self) -> "QuantumWorld":
for remap in self.qubit_remapping_dict:
new_dict = {}
for key_obj, value_obj in remap.items():
new_dict[
new_world.get_object_by_name(key_obj.name)
] = new_world.get_object_by_name(value_obj.name)
new_dict[new_world.get_object_by_name(key_obj.name)] = (
new_world.get_object_by_name(value_obj.name)
)
new_world.qubit_remapping_dict.append(new_dict)
new_world.qubit_remapping_dict_length = self.qubit_remapping_dict_length.copy()
return new_world
Expand Down
8 changes: 4 additions & 4 deletions unitary/alpha/quantum_world_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,10 +1013,10 @@ def test_print_entanglement_table(simulator, compile_to_qubits):
assert (
f.getvalue()
in """
red1 green red2
red1 0.0 0.0 0.0
green 0.0 0.0 0.0
red2 0.0 0.0 0.0
red1 green red2
red1 0.0 0.0 0.0
green 0.0 0.0 0.0
red2 0.0 0.0 0.0
"""
)

Expand Down

0 comments on commit 48e61ce

Please sign in to comment.