quantumjava
quantumjava copied to clipboard
Mary Had a Little Qubit - error in the screenshot
Hello,
I have bought the book and I was training on the exercice "Mary Had a Little Qubit" of chapter 5. I think there is a mistake in the image https://github.com/johanvos/quantumjava/blob/master/ch05/maryqubit/docs/mary3gates.png Indeed, if I read the pipes correctly, here is what happened :
- Initial state : all sheeps are in "off" state
- sheep0 goes through H gate. It goes in a superposition state. 50%
- sheep1 goes through C gate. It is the source of an etanglement state. On the image it is represented by the fact that the dot symbol is on the pipe of sheep1
- sheep0 goes through C gate as well. It becomes entangled with sheep1 and it becomes the "target" of sheep1. On the image it is represented by the fact that the "+" symbol is on the pipe of sheep0. As far as I understand, this means that sheep0 will have the state defined by sheep1. Sheep1 is in off state, then sheep0 should go to off state.
If I execute these steps with the simulator, I get this :
Ship0 : 50% Ship1 : Off
If I take a look to the image, I get this : Ship0 : 50% Ship1 : 50%
If I trust my understanding, I get this : Ship0 : Off Ship1 : Off
Could you please check this case and clarify?
Thanks