diff --git a/unitary/alpha/qudit_effects.py b/unitary/alpha/qudit_effects.py index 0ca1f2b1..a7b816f1 100644 --- a/unitary/alpha/qudit_effects.py +++ b/unitary/alpha/qudit_effects.py @@ -132,9 +132,6 @@ class Superpose(QuantumEffect): all pure states. """ - def __init__(self): - pass - def effect(self, *objects): for q in objects: if q.qubit.dimension == 2: @@ -152,5 +149,5 @@ class QuditSuperpose(Superpose): Will be removed in 2024. """ - def __init__(self, dimension: int): + def __init__(self): super().__init__() diff --git a/unitary/alpha/qudit_effects_test.py b/unitary/alpha/qudit_effects_test.py index 02cc384b..432f54f6 100644 --- a/unitary/alpha/qudit_effects_test.py +++ b/unitary/alpha/qudit_effects_test.py @@ -81,7 +81,7 @@ def test_qudit_superpose(): board = alpha.QuantumWorld(sampler=cirq.Simulator(), compile_to_qubits=False) piece = alpha.QuantumObject("t", StopLight.GREEN) board.add_object(piece) - alpha.QuditSuperpose(3)(piece) + alpha.QuditSuperpose()(piece) results = board.peek([piece], count=100) assert any(result == [StopLight.RED] for result in results) assert any(result == [StopLight.YELLOW] for result in results)