Fig. 2
From: Improved techniques for preparing eigenstates of fermionic Hamiltonians

Example of a bitonic sort on 8 inputs. The ancillae necessary to record the results as part of implementing each of the comparators are omitted for clarity. Comparators in each dashed box can be applied in parallel for depth reduction