I am studying the BB84 protocol and I have some doubts regarding its security.
Consider the following example: Alice wants to send a message to Bob over a public quantum channel, where a third person (Eve) could try to detect the message. The first step for Alice is to compute a string of classical bits in qubits via orthogonal bases $X$ or $Z$. Then, she sends the encoded message over the channel. At this point, suppose Eve has intercepted the message.
It is known that the BB84 protocol is secure as Eve cannot intercept the message without being detected. This happens because she has to apply a set of bases in order to get Alice's message from qubits to bits; the fact is that Eve doesn't know the bases which have been used by Alice, as those are private. Based on that, when she tries to measure the qubits in her random selection of bases, if those are wrong, an altered message will be sent to Bob. We don't have to go further as my question lies in this part of the communication:
- As Eve doesn't know Alice's bases, almost certainly she will use different bases, leading to a different encoded message for Bob which will allow to detect the interception. What happens if she select exactly the same bases as Alice's? I suppose it's not impossible; even if the probability is so small, I still think it could happen.
- Based on 1., if Eve intercepts the whole message correctly because she used the same bases, doesn't this go against the non-cloning theorem of quantum computation, as it would imply creating the same message from unknown states.