An observed value must lie in the image of . Choose either preimage . The two-to-one function promise and imply that its preimages are exactly and . A computational-basis measurement of the second quantum register projects the joint quantum state onto the unnormalized vector
By the Born rule, . Dividing by its square root gives the conditional first-register pure state
Choosing the other preimage merely interchanges the two summands. The result is a Simon coset state, retaining quantum coherence between the two inputs that share the measured function value. Outcomes outside the image have probability zero and hence no conditional state to normalize.
The promise is Simon's problem. If , then implies , so is an injective function. If , then each value has exactly the two preimages and ; thus is two-to-one and is constant on the two-element cosets of .