Passed only one test with input with PauliX

Running submission…

          Running on public test set

                Test 1 of 2 failed! 🚫
                    Input: [[[[0.62832, 0.3927, 1.0472, 0.7854],[0.7854, 0.31416, 0.62832, 0.5236]],[[0.31416, 0.7854, 0.7854, 0.3927],[0.31416, 0.3927, 0.31416, 0.3927]]],"PauliY", 0.5236]
                    Expected output: [0.68594, 0.31406]
                    Solution output: [0.5000000000000003, 0.5000000000000003]
                    Failure message: Assertion Error: Not the correct probabilities for the quantum model..

                Test 2 of 2 passed! ✅
                    Input: [[[[1.0472, 0.7854, 3.1416, 0.3927],[1.0472, 0.7854, 3.1416, 0.5236]],[[1.0472, 0.7854, 1.5708, 0.3927],[0.7854, 0.7854, 1.5708, 0.7854]]],"PauliX", 0.7854]
                    Expected output: [0.46653, 0.53347]
                    Solution output: [0.4665297661776312, 0.5334702338223688]

          Running on private test set

                One or more private tests failed. Try again! 🚫

Could you help me?

Hi @ketayon , welcome to the forum!

We have made a thread here in the forum for each challenge. You can ask your question in the thread for the specific challenge you’re working on.

That being said, in your case I can see from the failure message that your code is wrong. The expected output doesn’t match the output from your solution.

The Introduction module of the Xanadu Quantum Codebook or the Measurements section of the PennyLane Documentation can help you find the right answer!