PennyLane Challenge: Returning probabilities

Use this topic to ask your questions about the PennyLane Challenge: Returning probabilities.

The run function in this challenge performs part of the challenge. Specifically, the challenge description says

qml.probs(wire) returns a probability for each of the different computational basis states, but we are only interested in the probability that the qubit is in the ground state ∣0⟩∣ Therefore, you will need to select the probability the qubit is in the state ∣0⟩

However, the run function already does output = simple_circuit(angle)[0], which means returning just qml.probs(0) would be an accepted answer even though the description suggests otherwise.

Hi @Kamal_Mohamed, you’re right, thanks for the feedback!