My initial circuit is as follows:
def U(params, wires):
qml.RY(params[0], wires=wires[0])
but I want to plus one gate on wire[1] as follows, May I ask how can I increase the gate?(If I don’t directly qml.RY(params[1], wires=wires[1]) this line of code),I want the initial circuit to perform the added action.
def U(params, wires):
qml.RY(params[0], wires=wires[0])
qml.RY(params[1], wires=wires[1])