Skip to content

Commit

Permalink
Update quantum_world.py
Browse files Browse the repository at this point in the history
  • Loading branch information
madcpf authored May 13, 2024
1 parent ec37dd3 commit 8129a51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unitary/alpha/quantum_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,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

0 comments on commit 8129a51

Please sign in to comment.