By orthonormality of the computational basis,There is one nonzero term, the term with . In particular, the uniform coefficient is unchanged when passing from the ket to its bra because it is real.
Summing part (i) over the unmarked indices gives . The Grover diffusion operator therefore acts asThis is an identity for an unnormalized subset sum; it does not require replacing its norm by one.
For the marked subset, by the same summation of the individual inner products. ConsequentlyThe cardinality is here. Its sign will reverse when this expression is used for the oracle's negative marked component.
Articles by others on the same topic
There are currently no matching articles.