From 48e61cef3d90dde09d3575ca7e441d0e1b57bfcb Mon Sep 17 00:00:00 2001 From: madcpf Date: Thu, 1 Aug 2024 16:02:48 -0700 Subject: [PATCH] format --- unitary/alpha/quantum_world.py | 6 +++--- unitary/alpha/quantum_world_test.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/unitary/alpha/quantum_world.py b/unitary/alpha/quantum_world.py index c977692b..dcfcb527 100644 --- a/unitary/alpha/quantum_world.py +++ b/unitary/alpha/quantum_world.py @@ -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 diff --git a/unitary/alpha/quantum_world_test.py b/unitary/alpha/quantum_world_test.py index 2c45cf39..274137a7 100644 --- a/unitary/alpha/quantum_world_test.py +++ b/unitary/alpha/quantum_world_test.py @@ -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 """ )