liveBook · Manning

Non-solution state

As explained in Quantum Programming in Depth

A non-solution state is the normalized superposition of basis states in the search space that do not satisfy the problem condition.

The non-solution state is the normalized superposition of every search-space basis state x for which f(x) = 0: |non-solutions⟩ = 1/√(N−M) Σ₍f(x)=0₎ |x⟩. With M solutions among N states, it contains N−M basis states. It is orthogonal to the solution state because each basis state belongs to exactly one group. section 7.2.1

Grover’s search algorithm treats all non-solutions identically, allowing the evolving state to be represented using only the solution and non-solution axes. The phase oracle reflects the state about the non-solution axis before reflection about the mean rotates it toward the solution state. section 7.2.1

Figure 7.5 The main states used in Grover’s search algorithm. \(\ket{\textrm{mean}}\) is the superposition of all basis states in the search space (that is, states that correspond to bit strings that are potential solutions to the problem). These bit strings can be split in two groups: the ones that are solutions (included in the superposition \(\ket{\textrm{solutions}}\)) and the ones that are not (\(\ket{\textrm{non-solutions}}\)). The angle \(\theta\) is defined by the number of problem solutions and the size of the search space.
figure

Use the state-space diagram to compare the mean, solution, and non-solution superpositions and relate their amplitudes to N and M. section 7.2.1

How Quantum Programming in Depth covers it

How deep it goes
Defines the normalized state, counts its basis states, establishes orthogonality, and reduces the algorithm’s states to two axes.
Examples
Uses bit strings satisfying f(x) = 0 and a geometric state-space diagram separating them from solution bit strings.
What it assumes
Assumes a search space of N basis states, a Boolean condition f, and a nonzero solution count M.
What you can do after
Understand how Grover’s oracle and diffusion operations act uniformly on non-solution amplitudes.
How it connects
Connects non-solution states to Grover’s search algorithm, solution states, phase oracles, quantum superposition, and reflection about the mean.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quantum Programming in Depth. The section links point to the parts of the book it draws on.