From e7b5d26edd48eeac61d86f3e81da64d7e1110109 Mon Sep 17 00:00:00 2001 From: KetpuntoG <65235481+KetpuntoG@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:14:20 +0200 Subject: [PATCH] Update state_preparation.py --- pennylane/ops/qubit/state_preparation.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pennylane/ops/qubit/state_preparation.py b/pennylane/ops/qubit/state_preparation.py index 3400a5f8c58..adc22fc3189 100644 --- a/pennylane/ops/qubit/state_preparation.py +++ b/pennylane/ops/qubit/state_preparation.py @@ -159,7 +159,6 @@ class StatePrep(StatePrepBase): >>> @qml.qnode(dev) ... def example_circuit(): ... qml.StatePrep(np.array([1, 0, 0, 0]), wires=range(2)) - ... qml.StatePrep(np.array([1, 0, 0, 0]), wires=range(2)) ... return qml.state() >>> print(example_circuit()) [1.+0.j 0.+0.j 0.+0.j 0.+0.j]