Codercise I.5.3 why my code is not right? Can someone give me a hint?

dev = qml.device(“default.qubit”, wires=1)

@qml.qnode(dev)
def many_rotations():
“”"Implement the circuit depicted above and return the quantum state.

Returns:
    array[complex]: The state of the qubit after the operations.
"""

##################
# YOUR CODE HERE #
###################

# IMPLEMENT THE CIRCUIT
qml.Hadamard(wires=0)
qml.RZ(np.pi/2, wires=0)
qml.adjoint(qml.RZ(np.pi/4, wires=0))
qml.RZ(0.3, wires=0)
qml.adjoint(qml.RZ(np.pi/2, wires=0))
# RETURN THE STATE

return qml.state()

Hi @Horacio ,

You can use the S and T gates in PennyLane with qml.S and qml.T. You can learn more about these and other operators here in the docs. :smiley:

Hi @CatalinaAlbornoz,
ich complete it 2 hour ago. just forget to write. Thank you :grinning:

That’s great to hear @Horacio !