---
title: Displaced-Parity Sampling
url: https://www.emergentmind.com/topics/displaced-parity-sampling
type: topic
---

# Displaced-Parity Sampling

Displaced-Parity Sampling denotes several distinct constructions in contemporary theory and quantum optics. In the literature represented here, it refers, first, to parity-only observation under systematic label misalignment in distribution testing, where an ordered sample reveals only the least significant bit of each draw and nearby labels may be “displaced” or confused on a path or cycle; and, second, to phase-space sampling of the displaced photon-number parity operator in linear optics and cat-state certification, where parity is measured after a displacement and thereby samples the Wigner function at chosen phase-space points [2304.01374] [1402.0531] [2606.22641].

## 1. Scope and basic formalism

In the parity-trace setting, the basic observable is the parity function
$$
b(i)= i \bmod 2,
$$
applied to an ordered i.i.d. sample \(S=(X_1,\dots,X_m)\) from an unknown distribution over \([n]\). The tester does not observe the labels \(X_t\) themselves; it observes only the binary sequence \(Y_t=b(X_t)\), while preserving order. The associated distance notion is total variation,
$$
\|p-q\|_{\mathrm{TV}}=\frac12\sum_i |p(i)-q(i)|.
$$
Over \([2n]\), the analysis separates odd and even parts and studies the resulting run structure of the binary trace [2304.01374].

In the quantum-optical setting, the core operators are the displacement operator and the parity operator,
$$
D(\alpha)=\exp(\alpha a^\dagger-\alpha^* a), \qquad \Pi = (-1)^{\hat n},
$$
with \(\hat n=a^\dagger a\). The displaced-parity operator is
$$
\Pi(\alpha)=D(\alpha)\Pi D^\dagger(\alpha).
$$
For a single mode, the Wigner function is linked to displaced parity by
$$
W(\alpha)=\frac{2}{\pi}\operatorname{Tr}[\Pi(\alpha)\rho],
$$
while the catability work adopts the convention
$$
\langle \hat\Pi^{(\beta)}\rangle = \pi\, W_\rho(\beta).
$$
In both conventions, expectation values of displaced parity sample the Wigner function at the chosen phase-space point [1402.0531] [2606.22641].

The displacement in these usages is therefore not the same object. In [2304.01374], displacement is a mislabeling or local confusability abstraction on a path or cycle. In [1402.0531] and [2606.22641], displacement is the phase-space operator \(\hat D(\alpha)\) acting on bosonic modes.

## 2. Parity-trace distribution testing and the displaced-label abstraction

The formal testing problem asks whether an unknown distribution \(p\) is uniform, given only the parity sequence \((Y_1,\dots,Y_m)\): decide whether \(p=U_n\) versus \(\|p-U_n\|_{\mathrm{TV}}\ge \epsilon\) with success probability at least \(2/3\), using as few samples as possible. Much of the analysis is performed over \([2n]\), writing the odd and even partial distributions as
$$
\pi = \pi(p,q) = (p_1,q_1,p_2,q_2,\dots,p_n,q_n),
$$
so that the observed trace is a binary string whose alternating runs of \(1\)s and \(0\)s encode information about \(\pi\) through run lengths [2304.01374].

The displaced-label interpretation is formalized by the confused collector model. Here the base graph \(G=(V,E)\) is a path or cycle on \(n\) vertices, and a resolution parameter \(\eta\in(0,1]\) controls how accurately adjacent vertices are separated. Each edge is included with probability \(1-\eta\) to form a random subgraph \(H\). One then draws \(m\) i.i.d. samples from \(p\) over \(V\), but each sample is labeled only by the representative of its connected component in \(H\). Samples from indistinguishable joined vertices therefore collapse to the same label. As \(\eta\) decreases, nearby labels are more often confused [2304.01374].

The parity trace over \([2n]\) becomes a weighted confused collector on a cycle of odd positions. Edges between adjacent odd vertices are included with probability
$$
e^{-m q_i}= \Pr[\operatorname{Poi}(m q_i)=0],
$$
namely the event that no even index between them appears in the trace. The resulting connected components are the observable buckets, and parity runs are precisely these connected components. This means that the observed order carries coarse adjacency information while suppressing absolute position. A plausible implication is that order becomes the critical surrogate for identity once labels are systematically misaligned.

## 3. Tight uniformity testing under the parity trace

The main technical theorem gives a tight sample complexity for parity-trace uniformity testing:
$$
m=\widetilde{\Theta}\!\left(\left(\frac{n}{\epsilon}\right)^{4/5}+\frac{\sqrt n}{\epsilon^2}\right).
$$
The \(\sqrt n/\epsilon^2\) term is the classical \(\chi^2\)/collision term from fully labeled uniformity testing, while the new \((n/\epsilon)^{4/5}\) term is the parity-trace bottleneck. The crossover occurs at \(\epsilon\approx n^{-1/4}\): for \(\epsilon\lesssim n^{-1/4}\), \(\sqrt n/\epsilon^2\) dominates, whereas for \(\epsilon\gtrsim n^{-1/4}\), \((n/\epsilon)^{4/5}\) dominates [2304.01374].

The upper-bound algorithm has three steps. The first is a bias test: count the total number \(N\) of \(1\)s, and reject if \(N/m\) differs significantly from \(1/2\), with threshold \(\gamma/\sqrt m\). The second is a concentration test on the circularized trace: compute the maximum run length among \(1\)s and \(0\)s, and reject if the maximum run length exceeds \(\alpha \log n\). The third is a collision-based run statistic. If \(X_1,\dots,X_b\) are the positive run lengths of \(1\)s in the circular trace, define
$$
Y=\frac1m\sum_{i=1}^b X_i(X_i-1)
 = \frac1m\left(T^\top \Phi T-\|T\|_1\right),
$$
where \(T_j\sim \operatorname{Poi}(m p_j)\) is the hidden odd-count vector and \(\Phi\) is the join matrix indicating whether odd indices lie in the same connected component. The tester rejects when \(Y\) exceeds the expected uniform baseline by at least \(\beta \epsilon^2 m^2/n^2\) [2304.01374].

The analysis proceeds through expectation separation and variance control. With \(\phi=\mathbb E[\Phi]\), one has
$$
\mathbb E[Y]= m\, p^\top \phi p.
$$
On a path, \(\phi\) is Toeplitz; on a cycle, it is circulant. Writing \(p=\tilde p + z\), where \(\tilde p\) is the “uniform conjugate” of \(q\), gives
$$
\mathbb E[Y]= m\, \tilde p^\top \phi \tilde p + m\, z^\top \phi z \pm (\text{small}),
$$
so the separation from uniformity is driven by \(z^\top \phi z\). The associated concentration bound in the parity-trace model is
$$
\Pr(|Y-\mathbb E[Y]|\ge t)\le
\frac{\frac1m + z^\top \phi z}{t^2}\cdot \mathrm{polylog}\, n.
$$
The approximate uniform conjugate is built so that each connected component induced by \(q\) has approximately equal expected odd mass \(\tau\), with
$$
\tau(m,q)=\frac{1-\|q\|_1}{\sum_{i=1}^n \tanh(m q_i/2)}.
$$
This reduction makes the spectral term \(z^\top \phi z\) central to both the mean and variance analyses [2304.01374].

The lower bound is based on a domino construction. The domain \([2n]\) is partitioned into \(n/2\) consecutive dominoes of length \(4\), each covering \((p_i,q_i,p_{i+1},q_{i+1})\). The even parts are fixed as \(q_i=1/(2n)\). In the YES case, each domino is uniform. In the NO case, each domino independently receives one of the two local biases
$$
\left(\frac{1-\epsilon}{2n},\frac{1+\epsilon}{2n}\right)
\quad\text{or}\quad
\left(\frac{1+\epsilon}{2n},\frac{1-\epsilon}{2n}\right),
$$
with equal probability. Dominoes with at most two samples reveal no information about the \(\pm\epsilon\) sign; only \(3\)-way or higher collisions matter. The resulting mutual-information bound is
$$
I(Z:T)= O\!\left(\frac{\epsilon^4 m^5}{n^4}\cdot \mathrm{polylog}\, n\right),
$$
which, via Fano’s inequality, yields
$$
m=\widetilde{\Omega}\!\left(\left(\frac{n}{\epsilon}\right)^{4/5}\right)
$$
in the regime \(\epsilon\gtrsim n^{-1/4}\). Combined with the standard fully labeled lower bound \(m=\Omega(\sqrt n/\epsilon^2)\), this gives the full lower bound
$$
m=\widetilde{\Omega}\!\left(\left(\frac{n}{\epsilon}\right)^{4/5}+\frac{\sqrt n}{\epsilon^2}\right).
$$

## 4. Consequences for confused collectors, property testing, and trace reconstruction

The parity-trace abstraction yields direct results for the confused collector on cycles and paths. For \(\epsilon \gtrsim \widetilde{\Omega}(n^{-1/4})\) and \(\eta \gtrsim \widetilde{\Omega}(n^{-1/5}\epsilon^{-4/5})\), testing uniformity on \(V\) requires
$$
m=\widetilde{O}\!\left(\frac{\sqrt n}{\epsilon^2 \eta^{3/2}}\right).
$$
This interpolates between the standard \(\Theta(\sqrt n/\epsilon^2)\) rate at \(\eta=1\) and \(\widetilde O((n/\epsilon)^{4/5})\) when \(\eta\) is as small as the theorem allows. The displacement here arises because connected components join contiguous vertices, so the tester must exploit ordering and collision-like statistics to undo local confusability [2304.01374].

The same framework yields equivalences between parity-trace distribution testing and distribution-free sample-based property testing for density properties. A labeled distribution \((f,\pi)\) induces an alternation sequence and a density sequence \(\pi_{f,\pi}\); membership in a density property depends only on that sequence. The equivalence is stated using an edit distance on fractional strings of the form
$$
1^{\pi(1)}0^{\pi(2)}1^{\pi(3)}\dots,
$$
where insert/delete zero-length blocks and rearrangement of adjacent equal blocks are free, while changing block length by \(\delta\) costs \(|\delta|/2\). Two distributions are indistinguishable under parity trace iff this edit distance is \(0\). Within this framework, testing support size \(k\) under parity trace matches distribution-free sample-based testing of \(k\)-alternating functions, giving the first tight equivalence between distribution testing and property testing for a non-symmetric property. The promised uniformly \(2k\)-alternating problem has sample complexity
$$
\widetilde{\Theta}\!\left(\left(\frac{k}{\epsilon}\right)^{4/5}+\frac{\sqrt k}{\epsilon^2}\right),
$$
and the reductions recover lower bounds \( \Omega(k/(\epsilon\log k))\) for \(k\)-alternating functions on \([N]\) and \(\Omega(n/(\epsilon\log n))\) for halfspaces on \(\mathbb R^n\) [2304.01374].

There is also a black-box reduction to property testing in trace reconstruction. If \(\operatorname{del}(x,\rho)\) denotes the deletion channel on \(x\in\{0,1\}^N\) with retention rate \(\rho\), then a single trace can be “Poissonized” to a parity trace of \(\psi^{-1}(x)\), where
$$
\psi(\pi)=1^{\pi(1)N}0^{\pi(2)N}1^{\pi(3)N}\dots,
$$
and \(\lambda=\log(1/(1-\rho))\) matches a \(\operatorname{Poi}(N\lambda)\) sample. This yields, among other consequences, a one-trace tester for whether \(x\) is a uniform \(n\)-block string versus \(\epsilon\)-far in relative edit distance, with expected trace size
$$
\rho N = O\!\left(\frac{n}{\epsilon}+\frac{n}{\epsilon^2\log n}\right),
$$
and a tester for whether \(x\) is an \(n\)-block string versus \(\epsilon\)-far with expected trace size \(O(n/\epsilon)\). A lower bound gives \(k\rho N\ge \Omega(n/\log n)\) for any \(k\)-trace tester. The multiple-trace uniform-\(n\)-block problem admits a matching lower bound
$$
k\rho N=\widetilde{\Omega}\!\left(\frac{n^{4/5}}{\epsilon^{4/5}}+\frac{\sqrt n}{\epsilon^2}\right).
$$
This suggests that the parity-trace abstraction functions as a transport mechanism between distribution testing, sample-based property testing, and trace reconstruction rather than as an isolated model.

## 5. Linear-optical displaced parity and computational complexity

In linear optics, displaced-parity sampling arises from displaced photon-number detection. At the outputs of an interferometer, one applies mode-wise displacements \(D(\beta_j)\), implementable by unbalanced homodyne, and then performs number-resolving detection. From the resulting distribution \(P(\vec n\mid \vec \beta)\), the parity statistic is obtained by coarse-graining modulo \(2\):
$$
P_{\mathrm{parity}}(\vec\beta)=
\sum_{\vec n} (-1)^{\sum_j n_j}\, P(\vec n\mid \vec\beta),
$$
equivalently
$$
\langle \Pi(\vec\beta)\rangle
= \sum_{\vec n} (-1)^{\sum_j n_j} P(\vec n\mid \vec\beta)
= \left(\frac{\pi}{2}\right)^m W(\vec\beta).
$$
Since displaced parity is a linear functional of displaced number sampling, it does not introduce additional post-processing complexity beyond number sampling. In boson sampling’s no-collision regime \(m=\Omega(n^2)\), where each mode contains at most one photon with high probability, per-mode parity is identical to on-off detection [1402.0531].

For displaced single-photon Fock states (DSPFS), the single-mode input is \(D(\alpha)\lvert 1\rangle\), and the \(m\)-mode input is
$$
\lvert \psi_{\mathrm{in}}\rangle^{\mathrm{DSPFS}}
=
\left(\prod_{i=1}^n D_i(\alpha^{(i)}) a_i^\dagger\right)\lvert 0_1,\dots,0_m\rangle.
$$
Under a passive linear-optical interferometer \(\hat U\),
$$
\hat U a_i^\dagger \hat U^\dagger = \sum_{j=1}^m U_{ij} b_j^\dagger,
\qquad
\hat U \Big(\prod_{i=1}^n D_i(\alpha^{(i)})\Big)\hat U^\dagger
=
\prod_{j=1}^m D_j(\beta^{(j)}),
\qquad
\beta^{(j)}=\sum_{i=1}^n U_{ij}\alpha^{(i)}.
$$
Applying the counter-displacement \(\prod_j D_j(-\beta^{(j)})\) exactly removes the coherent offsets and yields the usual AA output superposition with amplitudes proportional to matrix permanents,
$$
\gamma_S \propto \operatorname{Per}(U_{S,T}).
$$
Consequently, sampling with DSPFS inputs and displaced detection is in the same complexity class as AA boson sampling for all displacement values. In the no-collision regime, per-mode parity after cancellation samples the same bitstrings as standard boson sampling. Total parity, by contrast, is fixed to \((-1)^n\) and is therefore uninformative [1402.0531].

For single-photon-added coherent states (SPACS), the normalized single-mode state is
$$
\lvert \alpha,1\rangle
=
\frac{a^\dagger \lvert \alpha\rangle}{\sqrt{1+|\alpha|^2}}
=
D(\alpha)\,\frac{\lvert 1\rangle+\alpha^*\lvert 0\rangle}{\sqrt{1+|\alpha|^2}}.
$$
With equal amplitudes \(\alpha^{(i)}=\alpha\), output cancellation leads to a superposition over total photon-number sectors \(i=0,\dots,n\), with probabilities
$$
P_i = (\mathcal N')^2 \binom{n}{i} (|\alpha|^2)^{n-i},
\qquad
P_n = (\mathcal N')^2 = \left[\frac{1}{1+|\alpha|^2}\right]^n.
$$
This produces a computational-complexity transition. If \(|\alpha|^2\le 1/n\), then \(P_n\) remains inverse-polynomial, and at \(|\alpha|^2=1/n\),
$$
\lim_{n\to\infty} P_n = \frac1e \approx 36\%.
$$
If \(|\alpha|^2=1/n^2\), then \(P_n\to 1\), so the AA term dominates. By contrast, when \(|\alpha|^2\) scales as \(n^2\) or larger, the vacuum sector dominates,
$$
P_0 = \left[\frac{|\alpha|^2}{1+|\alpha|^2}\right]^n \to 1,
$$
and the output becomes classically simulatable. The same transition carries over to displaced parity sampling: in the small-\(|\alpha|\) regime, post-selection on the \(n\)-photon sector retains AA hardness, whereas in the large-\(|\alpha|\) regime displaced-parity expectations become trivial and the output is Gaussian-like [1402.0531].

## 6. Parity-less Kerr cats and generalized catability

In the certification of parity-less Kerr cat states, displaced-parity sampling is used because Kerr cats cannot be distinguished by parity at the origin. The construction begins with the nullifier
$$
\hat O_C(\alpha)=
(\hat a^{\dagger 2}-\alpha^{*2})(\hat a^2-\alpha^2),
$$
whose nullspace is spanned by \(\lvert \alpha\rangle\) and \(\lvert -\alpha\rangle\). Earlier catability used
$$
\hat O_P(\gamma,s)=\gamma(1-s\hat\Pi),
$$
but for Kerr cats the parity term is replaced by displaced parity,
$$
\hat O_P(\beta,\gamma,s)=\gamma(1-s\hat \Pi^{(\beta)}),
\qquad
\hat \Pi^{(\beta)}=\hat D(\beta)\hat\Pi \hat D^\dagger(\beta)
= e^{i\pi(\hat a^\dagger-\beta^*)(\hat a-\beta)}.
$$
The resulting approximate nullifier is
$$
\hat O(\alpha,\beta,\gamma,s)=
\hat O_C(\alpha)+\gamma(1-s\hat \Pi^{(\beta)}).
$$
Here the displacement \(\beta\) is chosen to target the shifted interference fringes characteristic of parity-less Kerr cats [2606.22641].

For equatorial cat states
$$
\lvert C_\theta(\alpha)\rangle
=
\frac{1}{\sqrt M}\big(\lvert \alpha\rangle + e^{i\theta}\lvert -\alpha\rangle\big),
\qquad
M=2\big(1+\cos\theta\, e^{-2|\alpha|^2}\big),
$$
the displaced-parity expectation used for \(\beta\)-selection is
$$
f(\alpha,\beta,\theta)=
\langle C_\theta(\alpha)\rvert \hat\Pi^{(\beta)} \lvert C_\theta(\alpha)\rangle.
$$
The paper gives
$$
f(\alpha,\beta,\theta)=
\frac{g(\alpha,\beta,\theta)+g(\alpha,-\beta,-\theta)}{M},
$$
with
$$
g(\alpha,\beta,\theta)=
\exp\{-2|\alpha-\beta|^2\}
+
e^{i\theta}\exp\{-2|\beta|^2+2\beta\alpha^*-2\beta^*\alpha\}.
$$
Under \(\operatorname{Re}(\alpha)=0\) and \(\operatorname{Im}(\beta)=0\), one obtains the simplified forms quoted in the source, and for Kerr cats \(\theta=\pm \pi/2\),
$$
f(\alpha,\beta,\pm)=
e^{-2\beta^2}\big(e^{-2|\alpha|^2}\pm \sin(4\alpha_R\beta)\big).
$$
This makes \(\beta\) a direct control parameter for locating the central positive or negative fringe [2606.22641].

Because \(\pi W(\beta)\neq \pm 1\) for general \(\beta\), the paper introduces a normalized nullifier
$$
\hat O_N(\alpha,\beta,\gamma,s)=
\hat O_C(\alpha)+\gamma\big(N^{(\beta)}-s\hat\Pi^{(\beta)}\big),
$$
where
$$
N^{(\beta)}=\pi W(\beta)=
\langle C_\theta(\alpha)\rvert \hat\Pi^{(\beta)} \lvert C_\theta(\alpha)\rangle.
$$
This normalization yields expectation values that approach zero on ideal Kerr cats. The work also identifies an exact anti-linear nullifier based on complex conjugation \(\hat K\), with
$$
\hat O_P^{\mathrm{Im}(\alpha)}(\gamma,s)=\gamma(i-s\hat K)
\quad\text{for}\quad \operatorname{Re}(\alpha)=0,
$$
and
$$
\hat O_P^{\mathrm{Re}(\alpha)}(\gamma,s)=\gamma(i-s\hat\Pi \hat K)
\quad\text{for}\quad \operatorname{Im}(\alpha)=0.
$$
These nullify ideal Kerr cats in expectation but are not directly measurable, so displaced parity serves as the practical surrogate [2606.22641].

The measurement protocol evaluates \(\langle \hat O_N\rangle\) from photon-number statistics at a finite set of displacements. Writing
$$
p_n(\mu)=
\operatorname{Tr}\big[\hat D^\dagger(\mu)\lvert n\rangle\langle n\rvert \hat D(\mu)\rho\big],
$$
one has the estimator
$$
\langle \hat\Pi^{(\beta)}\rangle =
\sum_n p_n(-\beta)(-1)^n,
$$
and the source gives an explicit decomposition of \(\hat O_N\) and of \(\langle \hat O_N\rangle\) in terms of \(p_n(0)\), \(p_n(\alpha)\), \(p_n(-\alpha)\), and \(p_n(-\beta)\). The displacement settings \(\{0,+\alpha,-\alpha,-\beta\}\) therefore suffice. The generalized catability is
$$
\xi(\alpha)=
\min_\gamma
\frac{\operatorname{Tr}\big(\rho \hat O_N(\alpha,\beta,\gamma,s)\big)}
{\min_{\lvert \psi\rangle\in\mathscr H}
\langle \psi \rvert \hat O_N(\alpha,\beta,\gamma,s)\lvert \psi\rangle},
\qquad
\xi=\min_\alpha \xi(\alpha),
$$
with \(\xi<1\) witnessing cat-like non-Gaussianity. Loss is modeled by the pure-loss channel with Kraus operators
$$
\hat M_k(\eta)=
\sqrt{\frac{(1-\eta^2)^k}{k!}}\,
\eta^{\hat n}\,\hat a^k,
\qquad
\rho(\eta)=\sum_k \hat M_k(\eta)\rho \hat M_k^\dagger(\eta).
$$
The numerical benchmarks use \(\alpha=2i\), optimize \(\beta\approx \pm 0.185\), set \(s=+1\), and report that the generalized catability is more resilient to optical loss than fidelity-based certification, especially for smaller \(|\alpha|\) [2606.22641].

## 7. Distinctions, limitations, and open directions

The main distinction across these usages is operational. In distribution testing, displaced-parity sampling is fundamentally a model of partial observability with preserved order: the tester sees only parity bits and run lengths, and the difficulty comes from systematic misalignment of nearby labels. The cited work explicitly relies on i.i.d. sampling, on order preservation, and on path or cycle structure; it identifies extensions to trees, identity and closeness testing under parity trace, multi-bit traces, and other channels such as insertions and substitutions as open problems [2304.01374].

In linear optics, the principal distinction is between total parity and per-mode parity. Total parity is often too coarse: it is fixed for DSPFS and becomes trivial in the large-\(|\alpha|\) SPACS regime. Per-mode parity in the no-collision regime, by contrast, coincides with on-off detection and therefore preserves the hardness of AA boson sampling after displacement cancellation. This suggests that the computational content of displaced-parity sampling depends sharply on whether parity is used as a global scalar observable or as a mode-resolved bitstring [1402.0531].

In Kerr-cat certification, the generalized nullifier with displaced parity is approximate when written as \(\hat O(\alpha,\beta,\gamma,s)\), because \(\lambda_{\min}\neq 0\); the normalized version \(\hat O_N\) corrects this by inserting the ideal target value \(N^{(\beta)}\). The same work emphasizes further limitations: accurate phase-stable calibration of \(\beta\) is essential, finite-sample statistics and detector nonidealities introduce variance and bias, the anti-linear nullifier based on \(\hat K\) is not directly measurable, and explicit sample-complexity bounds are not provided. A plausible implication is that displaced-parity sampling is most powerful when it targets a small number of physically motivated phase-space points rather than attempting full tomography [2606.22641].

Source: https://www.emergentmind.com/topics/displaced-parity-sampling