Let be the traversable squares and the exits. Sample the state space at the end of each complete round, so a live state is with . The given starting positions specify the initial state. The board and exits are fixed problem data, rather than changing components of the state space.
The rabbit has at most five actions: stay or move to one of its traversable orthogonally adjacent squares. A search transition model first applies that action, giving , and immediately checks for capture at . Otherwise hold fixed and apply the fox rule twice, checking for capture after each step. A capture is terminal failure; it must not be overlooked merely because the fox could subsequently move elsewhere. A surviving successor is . Equivalently, omit actions whose complete-round outcome is capture.
The goal test is the rabbit is on an exit after surviving the fox's entire turn: and no capture occurred in that round. Merely entering an exit before the fox moves is insufficient. Each surviving search transition model step has cost one when minimizing rounds.
Only legal moves are considered when applying the stated horizontal preference: try a legal horizontal step that reduces horizontal separation, otherwise a legal vertical step that reduces vertical separation, otherwise stay. If a blocked preferred direction is instead interpreted as forcing a stay immediately, the counterexamples below and all completeness and optimality conclusions remain valid.
The two conditions on a density matrix are positive semidefiniteness and unit trace:
Here positive semidefinite includes being a Hermitian matrix, with for every vector . Equivalently, a density matrix is Hermitian with nonnegative eigenvalues summing to one.
Use Hadamard conjugation of a controlled gate to obtain the Controlled-Z gate:
Conjugating by Pauli X gates on both qubits moves its negative entry from to :
Finally , so a two-qubit diffusion circuit is
In temporal order, apply Hadamard gates on both qubits, Pauli X gates on both, a Hadamard gate on the second, a controlled-NOT gate , a Hadamard gate on the second, Pauli X gates on both, then Hadamard gates on both. Every gate is permitted. The overall minus sign is the allowed global phase, so this implements the required inversion about the mean for Grover search algorithm.
Use the entanglement-assisted promised equality protocol. Alice applies the phase oracle on , and Bob applies on . These are unitary operators because their diagonal entries have modulus one. After Alice sends to Bob, the joint pure state is
Let be the original maximally entangled state. If is the Hamming distance, then
Bob performs the projective measurement with projectors and . Under the promise,
He declares equal strings for the first outcome and distance for the other. This is exact because the promised outputs occupy orthogonal subspaces. A basic measurement also suffices: extend to an orthonormal basis and group all its other outcomes together. Alice transmits one -dimensional system, realizable using qubits; need not be a power of two.
Use entanglement-assisted discrimination of a Pauli basis. Define the known single-qubit unitary operator by and . Prepare the device input and a reference ancilla qubit in
Apply the unknown device once to , then apply the known inverse to . Since
the possible two-qubit outputs are
These are the four mutually orthogonal Bell states. A Bell-basis measurement therefore identifies the device with certainty. Explicitly, apply a controlled-NOT gate , then a Hadamard gate on , followed by computational-basis measurements. The readouts identify , respectively. Thus one use of the device and one reference qubit suffice.
Use the Pauli X eigenstates and . Their probability amplitudes are
The Born rule gives
The two probabilities sum to one. Their dependence on the relative quantum phase is the quantum interference between the two components in the computational basis.

There are unlisted articles, also show them or only show them.