From my understanding, after phase flip only the marked state will be negative and every state should be positive. But it's not.

I think my initial state enter image description here And marked stateenter image description here Are correct.
And after inversion about mean, i think it should inverse the marked state to around +5/8 and other state reduce to +3/8
but the marked state is -5/8 instead. enter image description here

Does anyone have any idea about this? Thank you in advance.

  • 1
    $\begingroup$ Can you provide the code you've used to create and draw these circuits, along with the state you're looking for? $\endgroup$ Nov 24, 2022 at 17:48
  • 1
    $\begingroup$ It’s hard to see see what you’re doing. The oracle should negate the marked state, and the diffuser should flip everything around the new mean. $\endgroup$ Nov 24, 2022 at 18:56


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.