Abstract
For spacebased laser communications, when the mean photon number per received optical pulse is much smaller than one, there is a large gap between communications capacity achievable with a receiver that performs individual pulsebypulse detection, and the quantumoptimal “jointdetection receiver” that acts collectively on long codewordblocks of modulated pulses; an effect often termed “superadditive capacity”. In this paper, we consider the simplest scenario where a large superadditive capacity is known: a pureloss channel with a coherentstate binary phaseshift keyed (BPSK) modulation. The two BPSK states can be mapped conceptually to two nonorthogonal states of a qubit, described by an inner product that is a function of the mean photon number per pulse. Using this map, we derive an explicit construction of the quantum circuit of a jointdetection receiver based on a recent idea of “beliefpropagation with quantum messages” (BPQM). We quantify its performance improvement over the Dolinar receiver that performs optimal pulsebypulse detection, which represents the best “classical” approach. We analyze the scheme rigorously and show that it achieves the quantum limit of minimum average error probability in discriminating 8 (BPSK) codewords of a length5 binary linear code with a tree factor graph. Our result suggests that a BPQM receiver might attain the Holevo capacity of this BPSKmodulated pureloss channel. Moreover, our receiver circuit provides an alternative proposal for a quantum supremacy experiment, targeted at a specific application that can potentially be implemented on a small, specialpurpose, photonic quantum computer capable of performing catbasis universal qubit logic.
Similar content being viewed by others
Introduction
“Messagepassing” algorithms are used to efficiently evaluate quantities of interest in problems defined on graphs. They work by passing messages between nodes of the graph. For example, these algorithms have been successfully used for statistical inference, optimization, constraintsatisfaction problems, and the graph isomorphism problem among several other applications^{1,2,3,4,5,6,7,8}. In particular, “beliefpropagation” (BP) is a messagepassing algorithm for efficiently marginalizing joint probability density functions in statistical inference problems. The algorithm derives its name from the fact that the messages used in BP are “local” probabilities or “beliefs” (e.g., of the value of the final quantity of interest). An important application of BP lies in the decoding of linear codes using the posterior bitwise marginals given the outputs of a classical channel^{9}. It is wellknown that BP exactly performs the task of optimal bitwise maximumaposteriori (bitMAP) decoding when the code’s factor graph is a tree. However, since codes with tree factor graphs have poor minimum distance^{9}, BP is also applied to codes whose factor graphs have cycles, e.g, lowdensity paritycheck (LDPC) codes. Although BP does not compute the exact marginals in this case, it is computationally more efficient than MAP, and usually performs quite well. In fact, it has been proven that, for large blocks, BP achieves the optimal MAP performance for spatiallycoupled LDPC codes over the binary erasure channel^{10} and binary memoryless symmetric channels^{11,12}. From a more practical perspective, BPbased decoders are routinely deployed in modern communications and data storage.
Given the success of BP decoding for classical channels, it is natural to ask if it can be generalized to the quantum setting. For example, can one decode classical codes for communications over a classicalquantum (CQ) channel or, more generally, perform efficient inference on graphicallyrepresented classical data encoded in qubits? Consider laser communications based on binary phaseshift keying (BPSK) modulation for sending classical data over a pureloss bosonic channel of transmissivity η ∈ [0, 1]^{13}. During each “use” of the quantum channel, the transmitter modulates each optical pulse, or mode, into one of the two coherent states \(\left\alpha \right\rangle\) or \(\left\alpha \right\rangle\), where \(\alpha \in {\mathbb{R}}\) and the mean photon number per mode equals N_{S} = ∣α∣^{2}. Each channel output symbol is an optical pulse that is in one of the two coherent states \(\left\pm \beta \right\rangle\), where \(\beta =\sqrt{\eta }\alpha\) and mean photon number N = ηN_{S}. These two states are nonorthogonal with an inner product 〈β∣ − β〉 = e^{−2N} ≡ σ. In this case, the coherent states \(\left\pm \beta \right\rangle \,=\,\mathop{\sum }\nolimits_{n \,=\, 0}^{\infty }{e}^{ \beta { }^{2}/2}\frac{{(\pm \beta )}^{n}}{\sqrt{n!}}\leftn\right\rangle\) live in an infinitedimensional Hilbert space spanned by the complete orthonormal number basis \(\left\{\leftn\right\rangle ,n\in {\mathbb{N}}\right\}\). However, since each channel output is always in one \(\left\pm \beta \right\rangle\), for the purposes of designing a receiver, we can embed the subspace spanned by \(\left\pm \beta \right\rangle\) in a twodimensional (qubit) Hilbert space via the inner productpreserving map:
with \(\sigma =\cos \theta\). The resulting channel from a classical encoding variable x to a conditional quantum state, i.e., \([x\,=\,0]\,\mapsto \,\left\theta \right\rangle ,[x\,=\,1]\,\mapsto \,\left\theta \right\rangle\), is often called a (purestate) “CQ” channel in the quantum information theory literature.
When the channel output symbols are detected one at a time, the best possible detection error probability is given by the Helstrom bound^{14,15} on the minimum average error probability of discriminating the alphabet states \(\left\pm \beta \right\rangle\), which is \(p:\,=\,\frac{1}{2}[1\,\,\sqrt{1\,\,{\sigma }^{2}}]\). A structured optical design of a receiver that achieves this performance was invented by Dolinar in 1973^{16}. This receiver induces a binary symmetric channel (BSC) between the quantum channel outputs \(\left\pm \beta \right\rangle\) and the receiver’s guess “±β”, with crossover probability p, thereby enabling the communicating parties to achieve a reliable communication rate given by C_{1} = 1 − h_{2}(p) bits per mode, the Shannon capacity of the BSC. To achieve communication at a rate close to this capacity, one would need to use a code that achieves the Shannon capacity of the BSC, e.g., Arikan’s polar code^{17}, and a suitable decoder. If the receiver detects, i.e., converts from the quantum (optical) to the electrical domain, each quantum channel output one at a time, no amount of classical postprocessing, including feedforward between channel uses, and softinformation processing, can achieve a rate higher than C_{1}. Thus, a capacityapproaching LDPC code for the BSC and a BP decoder can approach but not surpass the rate C_{1}.
However, if one employs a quantum jointdetection receiver that collectively measures the entire block of n channel outputs, then the rate may increase to the Holevo limit, \({C}_{\infty }\,=\,S(\frac{1}{2}\left\beta \right\rangle \ \left\langle \beta \right\,+\,\frac{1}{2}\left\beta \right\rangle \ \left\langle \beta \right)\,=\,{h}_{2}([1\,+\,\sigma ]/2)\) bits per mode, where S(⋅) denotes the von Neumann entropy. In the limit as N → 0 (or equivalently σ → 1), where the mean photon number per mode vanishes, one can show that C_{∞}/C_{1} → ∞ and collective measurement is preferable. This regime of operation is especially important for longhaul freespace terrestrial and deepspace laser communications. In order to fully exploit this large capacity gain, one can use a CQ polar code^{13} with a decoder based on collective measurement of the received quantum state. Alternatively, one can use a codebook comprising M = 2^{nR} random lengthn codewords with R < C_{∞}, where each symbol of each codeword is chosen from an equal prior over the two BPSK symbols. If the receiver employs a joint measurement that discriminates between the codewords sufficiently well, then the probability of decoding error will converge to 0 as n → ∞. Both the optimal measurement and the square root measurement (SRM) are known to faithfully discriminate between roughly \({2}^{n{C}_{\infty }}\) codewords^{18}, as opposed to only \({2}^{n{C}_{1}}\) codewords if symbolbysymbol detection is combined with classical decoding. Given the quantum states of the M codewords, the optimal measurement can be computed by applying the YuenKennedyLax (YKL) conditions^{19} applied to the Gram matrix of the codebook—the MbyM matrix of pairwise inner products of the codewords’ quantum states. This calculation is simpler for linear codes^{20}, especially codes that have certain group symmetries^{21}. Even when it is possible to compute the optimal measurement for the codebook, it may be hard to translate the mathematical description into a physical receiver design^{22}, unless we have a generalpurpose photonic quantum computer^{23}. Therefore, an efficient and physically realizable receiver is of significant practical interest if it can outperform the optimal receiver based on optimal symbolbysymbol measurement.
Renes^{24} recently proposed a quantum generalization of BP for a binaryoutput purestate CQ channel. Renes’ algorithm is welldefined on a tree factor graph and works by passing quantum messages (encoded in qubits) and classical messages (bits) between nodes of the code’s factor graph. Unlike earlier algorithms termed “quantum beliefpropagation”^{25,26}, Renes’ algorithm does not measure the n channel outputs, followed by classical BP on the (classical) syndrome measurements, and hence is not limited to achieving a rate of C_{1}. In order to avoid any confusion with previous quantum BP algorithms, we will refer to Renes’ algorithm as “beliefpropagation with quantum messages” (BPQM).
In^{24}, the first step in developing BPQM was to interpret the messagecombining operations in classical BP as “channel combining” rules that execute a local inference procedure. This step has close connections with the channel combining operation defined by Arikan for polar codes^{17}. The second step was a generalization of these channel combining rules to allow for quantum messages, as in CQ polar codes^{18}, i.e., messages that are qubit density matrices which capture the node’s belief about a message bit. The above rules define a CQ channel that gets induced at each node when (quantum) messages arrive at it. Finally, the third step was to define appropriate unitary operations at the nodes, which process the outputs of the aforesaid induced CQ channels and produce messages to be passed on to subsequent nodes.
While^{24} is a breakthrough paper that provides a phenomenological description of BPQM, it does not assess its performance on an example code or make comparisons with optimal symbolbysymbol measurements. Also, it does not present a proof of decoding optimality, even for CQ codes with a tree factor graph. Finally, it does not prescribe an explicit quantum circuit for BPQM. This paper addresses all of the above open questions and resolves many of them for the chosen example code.
Results and discussion
BPQMbased receiver design and block error rates
We construct an explicit quantum circuit for a BPQMbased jointdetection receiver (blueprint shown under “Methods” section, see Fig. 8), and prove that it achieves the Helstrom limit for discriminating between the eight codewords in our exemplary n = 5 linear BPSK code with a tree factor graph, as shown in Fig. 1. Hence, it outperforms the best achievable performance by the optimal symbolbysymbol receiver measurement followed by a MAP decision. Based on our analysis of BPQM, we introduce a coherent rotation to be performed after decoding bit 1 as part of our receiver design, which is not part of Renes’ original BPQM scheme. This might be important for generalizing BPQM beyond the specific example considered here (see Remark 2). We explicitly compute the density matrices of quantum messages that are passed, and evaluate the performance of BPQM for this example code. For decoding bit 1, we also derive an analytical expression for the BPQM success probability. The ultimate benchmark for decoding a bit is the performance of the Helstrom measurement that optimally distinguishes the density matrices corresponding to the two values of the bit. We show that BPQM is optimal for deciding the value of each of the 5 bits. In Fig. 2, we plot performance curves that show the “global” performance of BPQM for the 5bit code in terms of block (codeword) error rate for the following strategies:

(a)
collective (optimal) Helstrom measurement on all n = 5 channel outputs of the received codeword,

(b)
BPQM on all channel outputs of the received codeword,

(c)
symbolbysymbol (optimal) Helstrom measurement followed by classical (optimal) blockMAP decoding, and

(d)
symbolbysymbol (optimal) Helstrom measurement followed by classical BP decoding.
For the last two schemes, classical decoding is performed for the BSC, with crossover probability \(p\,=\,\frac{1}{2}[1\,\,\sqrt{1\,\,{\sigma }^{2}}]\), that is induced by measuring each channel output with the Helstrom measurement to discriminate between \(\left\pm \theta \right\rangle\).
As expected, the block error probabilities are in increasing order from (a) through (d). The plot shows that BPQM is strictly better than the quantumoptimal symbolbysymbol detection followed by a blockMAP decision at all values of mean photon number per mode, and that it meets the optimal joint Helstrom measurement on the modulated codeword. We confirm this optimality analytically by using the fact that the SRM, also called the pretty good measurement, is optimal for transmitting binary linear codes on the purestate channel^{20} (discussed under “Methods” section). More precisely, we calculate the closedform expression for the SRM block error probability^{27}, in terms of the classical code and associated cosets, and the density matrixbased expression for the BPQM block error probability for this example code. Then, for a range of channel parameters, we compute the values from these expressions and confirm that they agree up to even 15 decimal places. Therefore, while decomposing the SRM itself into an explicit circuit might be challenging, BPQM provides a circuit that still achieves the optimal block error probability for this code. This is an important result because, it demonstrates that, if we can construct a BPQM receiver, then it will outperform any known physically realizable receiver for this channel. We provide more detailed observations on Fig. 2 shortly.
Photon information efficiency
Besides the block error rates, we also compare the mutual information per photon per channel use, also referred to as the photon information efficiency (PIE)^{28,29}, for BPQM, with the Holevo capacity of the purestate channel and the capacity induced by symbolbysymbol Helstrom measurements. In order to do this, we consider a composite channel whose input is k = 3 bits and output is also k = 3 bits, where the channel consists of encoding into the 5bit code, transmitting over the purestate channel, applying the BPQM receiver and identifying the transmitted codeword (equivalently the kbit message). Determining the PIE for the BPQM analytically involves calculating closedform expressions for the transition probabilities of the 2^{k}ary channel (where k = 3 for the considered 5bit code), which involves cumbersome calculations of the relevant density matrices. Instead, we calculate the PIE numerically by performing a Monte Carlo simulation. Figure 3 shows a plot of the PIE of the BPQM receiver along with those corresponding to the Holevo capacity and the symbolbysymbol Helstrom induced BSC capacity. We also compute the PIE for the SRM. The transition probability of decoding a transmitted message t ∈ {0, 1}^{k} as g ∈ {0, 1}^{k} using the SRM is given by^{27}
where \(\hat{s}(h)\) is as defined in (Eq. 77) (under “Methods” section, where the block success rate with the SRM given by (Eq. 76) is evaluated). Therefore, the transition probability only depends on the sum g ⊕ t and hence the channel is symmetric. Using this closed form expression, we compute the mutual information for this kbit channel, normalized by n = 5 (to obtain mutual information per channel use), then normalized by N to obtain the PIE, and also plot it in Fig. 3. We see that both BPQM and SRM produce identical curves, just as they do in block error rates. Finally, we observe that there exists a regime of N, where this explicit small code along with BPQM or SRM demonstrates superadditive capacity that beats the largest PIE obtained from symbolbysymbol Helstrom measurements. The PIE with the BPQM (or SRM) receiver is found to be maximized at N = 6.2 × 10^{−3}, the maximum PIE being 3.021, whereas the corresponding PIE attained by symbolbysymbol Helstrom measurements is 2.862, the ratio of the two numbers being 1.056. (Interestingly, this is higher than the PIE ratio of 1.031 that has been reported for a different 5bit code with 16 codewords and the corresponding SRM in ref. ^{30}.) The superadditive PIE hence makes the case stronger for performing the optimal collective measurement at the channel output using the systematic scheme of BPQM.
In Fig. 2, we had plotted the block error probabilities as a function of the mean photon number per mode for the different measurement strategies. In Fig. 4, we plot both the bit and block error probabilities (and success probabilities, i.e., one minus error probability) for these measurement strategies. For strategy (a), the performance of the collective Helstrom measurement is plotted using the YKL conditions^{19} as discussed, for example, in^{21}. For strategies (c) and (d), classical processing is performed essentially for the BSC induced by measuring each qubit output by the purestate channel. The mean photon number per mode, N, relates to the purestate channel parameter θ as \(\cos \theta ={e}^{2N}\) (e.g., see^{13} for more information on this quantity). We make the following observations from these performance curves.

(1)
The block error rates are in increasing order from strategy (a) to (d), as we might expect. Even though classical BP is performed on a tree FG here, it only implements bitMAP decoding and not blockMAP decoding. This is why it performs worse than block ML (i.e., block MAP with uniform prior on codewords) in this case.

(2)
BPQM performs strictly better than symbolbysymbol optimal detection followed by classical MAP decoding. This gives a clear demonstration that if one physically constructs a receiver for BPQM, then it will be the best known physically realizable receiver for the purestate channel. For example, the Dolinar receiver^{13,16} realizes only strategy (c). One can use our circuits to make such a physical realization.

(3)
BPQM performs as well as the quantum optimal collective Helstrom measurement on the outputs of the channel. This lends evidence to the conclusion that by passing quantum messages, BPQM is able to behave like a collective measurement while still making only singlequbit Pauli measurements during the process. However, more careful analysis is required to characterize this in general for, say, the family of codes with tree FGs.

(4)
As a first selfconsistency check, we observe that the blockML curve asymptotes at roughly 0.875 for low mean photon numbers per mode. This is because, in this regime, the BSC induced by the symbolbysymbol measurement essentially has a bitflip rate of 0.5. Therefore, block ML computes a posterior that is almost uniform on all codewords, and thus the block success probability is \(1/ {\mathcal{C}} \,=\,1/8\,=\,0.125\).

(5)
As another selfconsistency check, we note that the BP curve asymptotes at roughly (1 − 1/32) = 0.9688 for low mean photon numbers per mode. Since BP performs bitMAP on this FG, and the induced BSC in this regime flips bits at a rate of almost 0.5, BP essentially picks each bit uniformly at random, thereby returning a vector that is uniformly at random out of all the possible 2^{5} = 32 vectors of length 5.

(6)
The bit error probability plots show that even though BPQM is optimal for bits x_{2} through x_{5}, it still performs slightly poorly when compared to the performance for x_{1}. This might be attributed to the fact that in the chosen paritycheck matrix, bit x_{1} is involved in both checks whereas the other bits are involved in exactly one of the two checks.
CQ polar codes are known to achieve capacity on CQ channels when paired with a quantum successive cancellation decoder^{13,31}. It remains to be seen if the same is also true for a BPQMbased decoder. Though this is mentioned in^{24}, we think this requires more details in the form of an explicit proof. The quantum optimality of BPQM shown in this paper for the example 5bit code bodes well for BPQM in this regard. It also remains open as to how BPQM can be generalized to FGs with cycles and also for decoding over general CQ channels. We have shown that the coherent rotation we introduced after measuring the first bit plays an important role in BPQM’s optimality (see Remark 2). Hence, one needs to refine Renes’ definition of the BPQM algorithm in more general settings. BPQM also has close connections with the recently introduced notion of channel duality^{32}. The resulting entropic relations could help characterize the performance of a code over a channel using the performance of its dual code over the dual channel. Since the dual of the purestate channel is the classical BSC, we believe it may be possible to extend classical techniques for analyzing BP (on BSC), such as density evolution, to analyze BPQM as well.
Leveraging optical realizations of “cat basis” quantum logic, i.e., single and twoqubit quantum gates in the span of coherent states \(\left\beta \right\rangle\) and \(\left\beta \right\rangle\)^{33,34}, our BPQM quantum circuit can be translated into the first fully structured optical receiver that would attain the quantum limit of minimumerror discrimination of more than two coherent states. Since there is a proven CQ performance gap as discussed above, implementing our receiver on an optical quantum processor provides an alternative proposal for a quantum supremacy experiment that is distinct from the conventional proposals based on random circuits^{35}.
Methods
In this section, we will analyze the BPQM algorithm on the example 5bit code shown in Fig. 1. See Supplementary Note 1 for a review of decoding classical linear codes using the BP algorithm. It is very useful to interpret the node operations in BP as performing local statistical inference over certain induced channels, and this perspective is explained in Supplementary Note 2. This interpretation is also extended to CQ channels as first described by Renes in ref. ^{24}. Then Supplementary Note 3 introduces the purestate channel and describes the BPQM algorithm via its node operations. The relevant node convolution operations are performed in detail in Supplementary Note 6 for completeness.
Decoding bit 1
Let us begin by describing the procedure to decode bit 1 of the 5bit code from Fig. 1. Observe that the codewords belonging to the code are
We assume that all the codewords are equally likely to be transmitted, just as in classical BP. Then the task of decoding the value of the first bit x_{1} involves distinguishing between the density matrices \({\rho }_{1}^{(0)}\) and \({\rho }_{1}^{(1)}\), which are uniform mixtures of the states corresponding to the codewords that have x_{1} = 0 and x_{1} = 1, respectively, i.e.,
These density matrices can be written in terms of the FN channel convolution in (Eq. 19) of the Supplementary material as \({\rho }_{1}^{{x}_{1}}\,=\,{\rho }_{\pm }\,=\,\left\pm \theta \right\rangle \ {\left\langle \pm \theta \right}_{1}\otimes [W \,\boxed\ast\, W]{({x}_{1})}_{23}\otimes [W \,\boxed\ast\, W]{({x}_{1})}_{45}\), where we use the notation \(\pm \equiv {(1)}^{{x}_{1}},\,{x}_{1}\in \{0,1\}\).
The BPQM circuit for decoding x_{1} is shown in Fig. 5 along with the density matrix in each stage of the circuit denoted by (a) through (e).

(a)
\({\rho }_{\pm ,a}\,=\,\left\pm \theta \right\rangle \ {\left\langle \pm \theta \right}_{1}\otimes [W \,\boxed\ast \,W]{({x}_{1})}_{23}\otimes [W\, \boxed\ast\, W]{({x}_{1})}_{45}\).

(b)
\({\rho }_{\pm ,b}\,=\,\left\pm \theta \right\rangle \ {\left\langle \pm \theta \right}_{1}\otimes {\sum }_{j\,\in\, \{0,1\}}{p}_{j}\left\pm {\theta }_{j}^{ \boxed\ast }\right\rangle \ {\left\langle \pm {\theta }_{j}^{ \boxed\ast }\right}_{2}\otimes \leftj\right\rangle \ {\left\langle j\right}_{3}\otimes {\sum }_{k\,\in\, \{0,1\}}{p}_{k}\left\pm {\theta }_{k}^{ \boxed\ast }\right\rangle \ {\left\langle \pm {\theta }_{k}^{ \boxed\ast }\right}_{4}\otimes \leftk\right\rangle \ {\left\langle k\right}_{5}\).

(c)
\({\rho }_{\pm ,c}\,=\,\left\pm \theta \right\rangle \ {\left\langle \pm \theta \right}_{1}\otimes {\sum }_{j,k\,\in\, {\{0,1\}}^{2}}{p}_{j}{p}_{k}\left\pm {\theta }_{j}^{ \boxed\ast }\right\rangle \ {\left\langle \pm {\theta }_{j}^{ \boxed\ast }\right}_{2}\otimes \left\pm {\theta }_{k}^{ \boxed\ast }\right\rangle \ {\left\langle \pm {\theta }_{k}^{ \boxed\ast }\right}_{3}\otimes \leftj\right\rangle \ {\left\langle j\right}_{4}\otimes \leftk\right\rangle \ {\left\langle k\right}_{5}\).

(d)
\({\sigma }_{\pm }\,=\,{\sum }_{j,k\,\in\, {\{0,1\}}^{2}}{p}_{j}{p}_{k}\left\pm \theta \right\rangle \ {\left\langle \pm \theta \right}_{1}\otimes \left\pm {\theta }_{jk}^{ \circledast }\right\rangle \ {\left\langle \pm {\theta }_{jk}^{ \circledast }\right}_{2}\otimes \left0\right\rangle \ {\left\langle 0\right}_{3}\otimes \leftjk\right\rangle \ {\left\langle jk\right}_{45}\), where the applied unitary operation is \(U:\,=\,{\sum }_{j,k\,\in\, {\{0,1\}}^{2}}{U}_{ \circledast }{({\theta }_{j}^{ \boxed\ast },{\theta }_{k}^{ \boxed\ast })}_{23}\otimes \leftjk\right\rangle \ {\left\langle jk\right}_{45}\) and \(\cos {\theta }_{jk}^{ \circledast }:=\cos {\theta }_{j}^{ \boxed\ast }\cos {\theta }_{k}^{ \boxed\ast }\).

(e)
\({{{\Psi }}}_{\pm }\,=\,{\sum }_{j,k\,\in\, {\{0,1\}}^{2}}{p}_{j}{p}_{k}\left\pm {\varphi }_{jk}^{ \circledast }\right\rangle \ {\left\langle \pm {\varphi }_{jk}^{ \circledast }\right}_{1}\otimes \left0\right\rangle \ {\left\langle 0\right}_{2}\otimes \left0\right\rangle \ {\left\langle 0\right}_{3}\otimes \leftjk\right\rangle \ {\left\langle jk\right}_{45}\), where the applied unitary operation is \(V:\,=\,{\sum }_{j,k\,\in\, {\{0,1\}}^{2}}{U}_{ \circledast }{(\theta ,{\theta }_{jk}^{ \circledast })}_{12}\otimes \leftjk\right\rangle \ {\left\langle jk\right}_{45}\) and \(\cos {\varphi }_{jk}^{ \circledast }:\,=\,\cos \theta \cos {\theta }_{jk}^{ \circledast }\).
We emphasize that at each stage, the density matrix is the expectation over all pure states obtained there that correspond to transmitted codewords with the first bit taking value x_{1} ∈ {0, 1}. The operations U and V are effectively twoqubit unitary operations, albeit controlled ones, and this phenomenon extends to any factor graph. Evidently, BPQM compresses all the quantum information into system 1 and the problem reduces to distinguishing between \({{{\Psi }}}_{\pm }^{(1)}\,=\,{\sum }_{j,k\,\in\, {\{0,1\}}^{2}}{p}_{j}{p}_{k}\left\pm {\varphi }_{jk}^{ \circledast }\right\rangle \ {\left\langle \pm {\varphi }_{jk}^{ \circledast }\right}_{1}\), since the other systems are either trivial or completely classical and independent of x_{1}. Finally, system 1 is measured by projecting onto the Pauli X basis, which we know from the discussion in Supplementary Note 3.2 after (31) to be the Helstrom measurement to optimally distinguish between the states \({{{\Psi }}}_{\pm }^{(1)}\).
It is pertinent that the optimal success probability of distinguishing between the density matrices \({\rho }_{1}^{(0)}\) and \({\rho }_{1}^{(1)}\) using a collective Helstrom measurement is given by
The action of BPQM until the final measurement is unitary and the trace norm \({\left\Vert \cdot \right\Vert }_{1}\) is invariant under unitaries. Thus, BPQM does not lose optimality until the final measurement. Since the final measurement is also optimal for distinguishing the two possible states at that stage (e), BPQM is indeed optimal in decoding the value of x_{1}. Thus, despite not performing a collective measurement, but rather only a singlequbit measurement at the end of a sequence of unitaries motivated by the FG structure and induced channels in classical BP, BPQM is still optimal to determine whether x_{1} = 0 or 1. The performance curves plotted in Fig. 6 demonstrate this optimality.
Remark 1 Observe that in this quantum scenario, \({\rho }_{1}^{(x)}\) behave like a “posterior” for bit x_{1}. However, these can be written down even before transmitting over the channel since they do not depend on the output of the channel. Hence, it is unclear if there is a better notion of a true posterior which we can then show to be “marginalized” by BPQM.
We now analyze the performance of the receiver in decoding bit 1. The probability to decode it as \({\hat{x}}_{1}=0\) is
Therefore, since there are four codewords each that have x_{1} = 0 and x_{1} = 1, the prior for bit x_{1} is 1/2 and the probability of success for BPQM in decoding the bit x_{1} is
where we have used the fact that since all channels are identically W, we have \(\cos {\theta }_{1}^{ \boxed\ast }=0\). We can calculate
Substituting back, we get the BPQM probability of success for bit x_{1} to be
which is the curve plotted as “Theory: BPQM \({P}_{{\rm{succ}},1}^{{\rm{BPQM}}}\)” in Fig. 6.
Before measuring system 1, the state of system 1 is essentially \({{{\Psi }}}_{\pm }^{(1)}\,=\,{p}_{0}^{2}\left\pm {\varphi }_{00}^{ \circledast }\right\rangle \ \left\langle \pm {\varphi }_{00}^{ \circledast }\right\,+\,(1\,\,{p}_{0}^{2})\left\pm \right\rangle \ \left\langle \pm \right\), since \(\cos {\varphi }_{jk}^{ \circledast }=0\) whenever either j or k equals 1 (or both) and hence \(\left\pm {\varphi }_{jk}^{ \circledast }\right\rangle \ \left\langle \pm {\varphi }_{jk}^{ \circledast }\right\,=\,\left\pm \right\rangle \ \left\langle \pm \right\). So, \({p}_{0}^{2}\) is the probability that the system “confuses” the decoder, and projection onto the X basis essentially replaces the system with \(\left{m}_{1}\right\rangle \ \left\langle {m}_{1}\right\), where \({m}_{1}\,=\,{(1)}^{{\hat{x}}_{1}}\,\in\, \{+,\}\). The full postmeasurement state is given by quantum mechanics to be
Note that in Fig. 5, we need to apply a Hadamard after the Zbasis measurement in order to ensure that the effective projector is \(H\left{\hat{x}}_{1}\right\rangle \ \left\langle {\hat{x}}_{1}\right\ H\,=\,\left{m}_{1}\right\rangle \ \left\langle {m}_{1}\right\).
Let us denote the overall unitary operation performed in Fig. 5 until stage (e) as \({B}_{1}^{{\rm{BPQM}}}\). As mentioned earlier, the Helstrom measurement to optimally distinguish between \({\rho }_{1}^{(0)}\) and \({\rho }_{1}^{(1)}\) is given by the POVM \(\{{{{\Pi }}}_{1}^{\,\text{Hel}\,},{\mathbb{I}}{{{\Pi }}}_{1}^{\,\text{Hel}\,}\}\), where
BPQM performs the final Helstrom measurement given by the POVM \(\{{\tilde{{{\Pi }}}}_{1}^{\,\text{Hel}\,},{\mathbb{I}}{\tilde{{{\Pi }}}}_{1}^{\,\text{Hel}\,}\}\), where
Thus, we can express the eigenvectors for \(({\rho }_{1}^{(0)}\,\,{\rho }_{1}^{(1)})\) as \(\lefti\right\rangle \,=\,{\left({B}_{1}^{{\rm{BPQM}}}\right)}^{\dagger }\leftj\right\rangle\). This further implies that
Hence, in order to identically apply the Helstrom measurement \({{{\Pi }}}_{1}^{\,\text{Hel}\,}\), BPQM needs to first apply \({B}_{1}^{{\rm{BPQM}}}\), then measure the first qubit in the Xbasis, and finally invert \({B}_{1}^{{\rm{BPQM}}}\) on the postmeasurement state \({{{\Phi }}}_{{m}_{1}}\) above. Although this is optimal for bit 1, next we will see that it is beneficial to coherently rotate \({{{\Phi }}}_{{m}_{1}}\) before inverting \({B}_{1}^{{\rm{BPQM}}}\), which sets up a better state discrimination problem for decoding bit 2.
Decoding bits 2 and 3 (or 4 and 5)
Next, in order to execute BPQM to decode bit x_{2}, we would ideally hope to change the state \({{{\Phi }}}_{{m}_{1}}\) back to the channel outputs. However, this is impossible after having performed the measurement. In the original BPQM algorithm^{24}, the procedure to be performed at this stage is ambiguous, so we describe a strategy that treads closely along the path of performing the Helstrom measurement for bit 2 as well, i.e., optimally distinguishing \({\rho }_{2}^{(0)}\) and \({\rho }_{2}^{(1)}\) evolved through \({\tilde{A}}_{1}^{{\rm{BPQM}}}:={\left({B}_{1}^{{\rm{BPQM}}}\right)}^{\dagger }\left[\left{m}_{1}\right\rangle \ {\left\langle {m}_{1}\right}_{1}\otimes {({I}_{16})}_{2345}\right]{B}_{1}^{{\rm{BPQM}}}\).
In order to be able to run BPQM for bit x_{1} in reverse to get “as close” to the channel outputs as possible, we need to make sure that the state \({{{\Phi }}}_{{m}_{1}}\) is modified to be compatible with the (angles used to define the) unitaries V and U in Fig. 5. Since we can keep track of the intermediate angles deterministically, we can conditionally rotate subsystem 1 to be \(\left{m}_{1}{\varphi }_{00}^{ \circledast }\right\rangle \ {\left\langle {m}_{1}{\varphi }_{00}^{ \circledast }\right}_{1}\) for \(\leftjk\right\rangle \ {\left\langle jk\right}_{45}\,=\,\left00\right\rangle \ {\left\langle 00\right}_{45}\). Note again that in Ψ_{±}, when either of j or k is 1 (or both), \({\varphi }_{jk}^{ \circledast }={\rm{\pi }}/2\) and hence \(\left\pm {\varphi }_{jk}^{ \circledast }\right\rangle \ \left\langle \pm {\varphi }_{jk}^{ \circledast }\right\,=\,\left\pm \right\rangle \ \left\langle \pm \right\). Therefore, if \({\hat{x}}_{1}\) is the wrong estimate for x_{1}, then \(\left\langle {m}_{1} \pm \right\rangle =0\) and the superposition in \({{{\Phi }}}_{{m}_{1}}\) collapses to a single term with j = k = 0.
More precisely, we can implement the unitary operation (see Supplementary Note 5 for a decomposition of \({K}_{{m}_{1}}\))
where K_{+} and K_{−} are unitaries chosen to satisfy \({K}_{+}\left+\right\rangle \,=\,\left{\varphi }_{00}^{ \circledast }\right\rangle\) and \({K}_{}\left\right\rangle \,=\,\left{\varphi }_{00}^{ \circledast }\right\rangle\), respectively. We can easily complete these partially defined unitaries with the conditions \({K}_{+}\left\right\rangle \,=\,\sin \frac{{\varphi }_{00}^{ \circledast }}{2}\left0\right\rangle \,\,\cos \frac{{\varphi }_{00}^{ \circledast }}{2}\left1\right\rangle\) and \({K}_{}\left+\right\rangle \,=\,\sin \frac{{\varphi }_{00}^{ \circledast }}{2}\left0\right\rangle \,+\,\cos \frac{{\varphi }_{00}^{ \circledast }}{2}\left1\right\rangle\). Applying \({M}_{{m}_{1}}\) to \({{{\Phi }}}_{{m}_{1}}\) we get the desired state (compare to state Ψ_{±} in stage (e) of Fig. 5)
Now the BPQM circuit for bit x_{1}, shown in Fig. 5, can be run in reverse from before the final measurement, i.e., from stage (e) back to stage (a). Hence, the overall operation on the input state in Fig. 5 is
Then we expect the state to be almost the same as the channel outputs, except that system 1 will deterministically be in state \(\left{m}_{1}\theta \right\rangle \ {\left\langle {m}_{1}\theta \right}_{1}\). However, a simple calculation shows that this is not completely true since the additional factor \(\frac{{\left\left\langle {m}_{1} \,\pm\, {\varphi }_{jk}^{ \circledast }\right\rangle \right}^{2}}{\,\text{Tr}\,\left[{{{\Psi }}}_{\pm }^{(1)}\left{m}_{1}\right\rangle \ \left\langle {m}_{1}\right\right]}\) prevents the density matrix to decompose into a tensor product of two 2qubit density matrices at stage (b) of Fig. 5. Specifically, when we take \({\tilde{{{\Psi }}}}_{{m}_{1}}\) at stage (e) back to stage (b) by inverting the BPQM operations, we arrive at the state
Lemma 1 Let \(C:={({I}_{2})}_{1}\otimes {\text{CNOT}}_{2\to 3}\otimes {\text{CNOT}}_{4\to 5}\) and \(\left{{{\Gamma }}}_{{\hat{x}}_{1}}\right\rangle :=\cos \frac{{\theta }_{0}^{ \boxed\ast }}{2}\left00\right\rangle \,+\,{(1)}^{{\hat{x}}_{1}}\sin \frac{{\theta }_{0}^{ \boxed\ast }}{2}\left11\right\rangle\). Then
Proof We know from the definition of the factor node convolution operation of BPQM that
This in turn implies that \(C{\rho }_{{m}_{1},b}{C}^{\dagger }\,=\,\left{m}_{1}\theta \right\rangle \ {\left\langle {m}_{1}\theta \right}_{1}\otimes [W \boxed\ast W]{({\hat{x}}_{1})}_{23}\otimes [W \boxed\ast W]{({\hat{x}}_{1})}_{45}\). Ignoring the first qubit and the constant factor for simplicity, observe that
We have used the fact that except when j = k = 0, assuming \({\hat{x}}_{1}={x}_{1}\), \(\langle {m}_{1} \,\pm\, {\varphi }_{jk}^{ \circledast }\rangle =\langle {m}_{1} {m}_{1}{\varphi }_{jk}^{ \circledast }\rangle \,=\,\langle {m}_{1} {m}_{1}\rangle \,=\,1\). Finally, using \({\text{CNOT}}_{2\to 3}({{m}_{1}{\theta }_{0}^{ \boxed\ast }\rangle }_{2}\otimes {0\rangle }_{3})\,=\,{{{\Gamma }}}_{{\hat{x}}_{1}}\rangle\), the result follows for both cases \({\hat{x}}_{1}\,=\,{x}_{1}\) and \({\hat{x}}_{1}\,\ne\, {x}_{1}\).◼
Therefore, after reversing the operations of BPQM for bit x_{1}, the 5qubit system is in the state
since \({P}_{{\rm{succ}},1}^{{\rm{BPQM}}}\,=\,{p}_{0}^{2}\cdot 0.5(1\,+\,\sin {\varphi }_{00}^{ \circledast })\,+\,(1\,\,{p}_{0}^{2})\).
At this point, we have decoded \({\hat{x}}_{1}\,=\,0\) if m_{1} = + and \({\hat{x}}_{1}\,=\,1\) if m_{1} = −. We can absorb the value of \({\hat{x}}_{1}\) in the FG by updating the parity checks c_{1} and c_{2} to impose \({x}_{2}\oplus {x}_{3}={\hat{x}}_{1}\) and \({x}_{4}\oplus {x}_{5}={\hat{x}}_{1}\), respectively. Now we have two disjoint FGs as shown in Fig. 7. It suffices to decode x_{2} and x_{4} since \({\hat{x}}_{3}\,=\,{\hat{x}}_{2}\oplus {\hat{x}}_{1}\) and \({\hat{x}}_{5}\,=\,{\hat{x}}_{4}\oplus {\hat{x}}_{1}\). Also, due to symmetry, it suffices to analyze the success probability of decoding x_{2} (resp. x_{4}) and x_{3} (resp. x_{5}). For this reduced FG, we need to split \({\tilde{\rho }}_{{m}_{1},a}\) into two density matrices corresponding to the hypotheses x_{2} = 0 and x_{2} = 1. If we revisit the density matrices \({\rho }_{1}^{(0)}\) and \({\rho }_{1}^{(1)}\), we observe that the 5qubit system at the channel output is exactly \(\frac{1}{2}{\rho }_{1}^{(0)}+\frac{1}{2}{\rho }_{1}^{(1)}\). Hence, for x_{2}, we accordingly split \([W \,\boxed\ast\, W]{({\hat{x}}_{1})}_{23}\) in \({\tilde{\rho }}_{{m}_{1},a}\) and arrive at the two hypotheses states
In Supplementary Note 4, we discuss how these hypotheses must be processed, which makes the next steps of BPQM intuitively clear (see Supplementary Fig. 3). However, the success probability derived from this analysis for bits 2–5 turns out to be significantly higher than the quantum optimal scheme for each bit at the channel output (see Supplementary Fig. 4). This indicates that the state discrimination problem for bit 2 discussed above is more ideal than the actual problem in hand. Hence, next we analyze the true state discrimination problem for bit 2 (or 4) and clarify the observed performance in Supplementary Fig. 4.
Analysis of BPQM optimality for decoding bit 2 (or 4)
At the channel output, it is clear that the optimal strategy to decode bit 2 is to perform the Helstrom measurement that distinguishes between \({\rho }_{2}^{(0)}\) and \({\rho }_{2}^{(1)}\). However, since we performed BPQM operations to decode bit 1 first, these two density matrices would have evolved through that process. Therefore, the correct analysis is to derive the resulting states and then subject them to the BPQM strategy for decoding bit 2 that was discussed above. For simplicity, we only track the density matrix \({\rho }_{2}^{(0)}\) through the different stages in Fig. 8. In Fig. 9, we provide the full expanded BPQM circuit for decoding all bits, and this can be turned into a circuit composed of standard quantum operations by using the decompositions in Figs. 10 and 11. The corresponding states for \({\rho }_{2}^{(1)}\) can easily be ascertained from these. It will be convenient to express
For brevity, we will use the notation CX_{ij} := CNOT_{i→j} and Swap_{34} := CX_{34} CX_{43} CX_{34}. Then we can write
Next, we make an Xbasis measurement on the first qubit, and for convenience we assume that the measurement result is m_{1} = +. The analysis for m_{1} = − is very similar and follows by symmetry. We verified numerically that \(\,\text{Tr}\,\left[\left+\right\rangle \ {\left\langle +\right}_{1}\cdot {\rho }_{2,e}^{(0)}\right]\,=\,0.5\), which we might intuitively expect since \({\rho }_{2,e}^{(0)}\) is the density matrix for x_{2} = 0 and x_{2} is independent from x_{1}. Since m_{1} = +, we follow the measurement with the conditional rotation M_{+} in (Eq. 21) to obtain
This is the state at stage (f) in Fig. 8. Hence, for x_{2} = 0, the density matrix we have when \({\hat{x}}_{1}=0\) and we reverse the BPQM operations on \({{{\Phi }}}_{2,{m}_{1} = +}^{(0)}\) is
This is the state at stage (g) in Fig. 8. So, this is the actual density matrix that BPQM encounters for x_{2} = 0 after having estimated \({\hat{x}}_{1}=0\). When compared with the earlier analysis, we observe numerically that this is close to \({\tilde{{{\Phi }}}}_{{x}_{2} = {\hat{x}}_{1}}({\hat{x}}_{1})\) but is not exactly the same. For example, when θ = 0.1π, we find that \({\Vert {\tilde{\rho }}_{2,{m}_{1} \,=\, +}^{(0)}{\tilde{{{\Phi }}}}_{{x}_{2} \,=\, 0}(0)\Vert }_{\text{Fro}}=0.0542\), where “Fro” denotes the Frobenius norm, and only two of the distinct entries differ (slightly). Similarly,
However, most importantly, we observe that \(\frac{1}{2}{\tilde{\rho }}_{2,{m}_{1} \,=\, +}^{(0)}\,+\frac{1}{2}{\tilde{\rho }}_{2,{m}_{1} \,=\, +}^{(1)}\,=\,\frac{1}{2}{\tilde{{{\Phi }}}}_{{x}_{2} \,=\, 0}(0)\,+\,\frac{1}{2}{\tilde{{{\Phi }}}}_{{x}_{2} \,=\, 1}(0)\). This explains that while the full density matrix \({\tilde{\rho }}_{{m}_{1},a}\) was correct, we had split it incorrectly to arrive at the two hypotheses \({\tilde{{{\Phi }}}}_{{x}_{2} \,=\, {\hat{x}}_{1}}({\hat{x}}_{1})\) and \({\tilde{{{\Phi }}}}_{{x}_{2}\,\ne\, {\hat{x}}_{1}}({\hat{x}}_{1})\). Now, the Helstrom measurement that optimally distinguishes between \({\tilde{\rho }}_{2,{m}_{1} \,=\, +}^{(0)}\) and \({\tilde{\rho }}_{2,{m}_{1} = +}^{(1)}\) only depends on
By symmetry of m_{1} = + and m_{1} = −, the optimal success probability to decide bit 2 is given by
Since L is not unitary, we cannot directly apply the unitary invariance of the trace norm to conclude that there is no degradation in performance when compared to optimally distinguishing \({\rho }_{2}^{(0)}\) and \({\rho }_{2}^{(1)}\) at the channel output. However, we observe numerically (even up to 12 significant digits) that the operations in L indeed ensure that \({\left\Vert L\left({\rho }_{2}^{(0)}\,\,{\rho }_{2}^{(1)}\right){L}^{\dagger }\right\Vert }_{1}\,=\,{\left\Vert {\rho }_{2}^{(0)}\,\,{\rho }_{2}^{(1)}\right\Vert }_{1}\). Moreover, we also observe that the BPQM operations for bit 2 given in Supplementary Fig. 3 achieve the same success probability, i.e., using the notation \(\pm \equiv {(1)}^{{x}_{2}}\) we have
Finally, the simulation results in Fig. 4 clearly show that the overall block error rate of BPQM coincides with that of the quantum optimal joint Helstrom limit. It remains open to rigorously prove all of these observations.
Overall performance of BPQM
We can calculate the probability that the full codeword \(\underline{x}\) is decoded correctly as
The first term in (Eq. 55) is clearly \({P}_{{\rm{succ}},1}^{{\rm{BPQM}}}\,=\,{P}_{{\rm{succ}},1}^{\,\text{Hel}\,}\). The second term, however, is different from \({P}_{{\rm{succ}},2}^{{\rm{BPQM}}}\,=\,{P}_{{\rm{succ}},2}^{\,\text{Hel}\,}\) because of the conditioning on x_{1} being estimated correctly, whereas in the above analysis we had implicitly averaged over \({\hat{x}}_{1}\,=\,{x}_{1}\) and \({\hat{x}}_{1}\,\ne\, {x}_{1}\). Nevertheless, we can use a similar strategy as above to derive an expression for the second term. Here, we want to condition on x_{1} being estimated correctly, i.e., \({\hat{x}}_{1}\,=\,{x}_{1}\), and derive the hypothesis states for x_{2} under this scenario. Similarly, for the third term, the additional conditioning on \({\hat{x}}_{2}\,=\,{x}_{2}\) makes it not equal to the second term, although x_{2} and x_{4} are placed symmetrically in the factor graph of the code. But it still holds that \({P}_{{\rm{succ}},2}^{{\rm{BPQM}}}{ }_{{\hat{x}}_{1} = {x}_{1} = 0}\,=\,{P}_{{\rm{succ}},4}^{{\rm{BPQM}}}{ }_{{\hat{x}}_{1} = {x}_{1} = 0}\). We perform these two analyses next and then combine them to calculate the full block success probability of BPQM.
We will first analyze the decoding of bit 2 conditioned on bit 1. Let \(({\rho }_{2}^{(00)},{\rho }_{2}^{(01)}),({\rho }_{2}^{(10)},{\rho }_{2}^{(11)})\) be two pairs of hypothesis states for x_{2}, at the channel output, where the first pair is conditioned on x_{1} = 0 and the second on x_{1} = 1, and this information is known to the receiver. It is clear, for example, that \({\rho }_{2}^{(0{x}_{2})}\,=\,\left\theta \right\rangle {\left\langle \theta \right}_{1}\otimes \left{(1)}^{{x}_{2}}\theta \right\rangle \ {\left\langle {(1)}^{{x}_{2}}\theta \right}_{2}\otimes \left{(1)}^{{x}_{2}}\theta \right\rangle \ {\left\langle {(1)}^{{x}_{2}}\theta \right}_{3}\otimes [W \,\boxed\ast\, W]{(0)}_{45}\). After similar calculations as before, we finally obtain
This is the state at stage (g) in Fig. 8. So, this is the actual density matrix that BPQM encounters for x_{2} = 0 after having estimated correctly that \({\hat{x}}_{1}\,=\,{x}_{1}=0\) (and reversed the first set of operations). Similarly,
The Helstrom measurement that optimally distinguishes between \({\tilde{\sigma }}_{2,{m}_{1} \,=\, +}^{(00)}\) and \({\tilde{\sigma }}_{2,{m}_{1} \,=\, +}^{(01)}\) achieves the success probability
We verified numerically that the final processing of BPQM, after (g) in Fig. 8, also achieves the same success probability, i.e.,
Using a similar procedure as above, we can verify the analogous result for x_{2} conditioned on x_{1} = 1 and \({\hat{x}}_{1}\,=\,{x}_{1}\,=\,1\).
Next, we will analyze the decoding of bit 4 conditioned on bits 1 and 2. For convenience, let us assume that x_{1} = x_{2} = 0 in the transmitted codeword. Note that, due to symmetry, this choice will not affect the analysis and the final probability of success for x_{4} conditioned on correct estimation of x_{1} and x_{2} will be independent of this fixed choice. Then, at the channel output, the candidate states for x_{4} are given by
Let U_{1} = VUSwap_{34} CX_{45} CX_{23} and \({\rho }_{4,1}^{(00{x}_{4})}\,=\,{U}_{1}{\rho }_{4}^{(00{x}_{4})}{U}_{1}^{\dagger }\). If \({p}_{1,4}^{(00{x}_{4})}\,=\,\,\text{Tr}\,\left[\left+\right\rangle \ {\left\langle +\right}_{1}\cdot {\rho }_{4,1}^{(00{x}_{4})}\right]\) is the probability of measuring x_{1} = 0, then conditioned on this correct measurement, we arrive at the following candidate states after the next set of BPQM operations:
If \({p}_{2,4}^{(00{x}_{4})}\,=\,\,\text{Tr}\,\left[\left+\right\rangle \ {\left\langle +\right}_{2}\cdot {\rho }_{4,2}^{(00{x}_{4})}\right]\) is the probability of measuring x_{2} = 0, conditioned on \({\hat{x}}_{1}={x}_{1}\), then conditioned on this correct measurement, we arrive at the following candidate states after the x_{2} measurement:
Therefore, any measurement that optimally distinguishes between x_{4} = 0 and x_{4} = 1 conditioned on \({\hat{x}}_{1}\,=\,{x}_{1}\) and \({\hat{x}}_{2}\,=\,{x}_{2}\) must satisfy the same probability of success as the Helstrom measurement on \(({\rho }_{4,3}^{(000)},{\rho }_{4,3}^{(001)})\). We verified that measuring the 4th qubit in the X basis on \({\rho }_{4,3}^{(00{x}_{4})}\) indeed satisfies this and hence BPQM is optimal in estimating x_{4} conditioned on estimating x_{1} and x_{2} correctly, i.e.,
However, we also observe that
Therefore, the overall BPQM success probability is given by
This success probability exactly equals the value from the closedform expression one obtains using the fact that the SRM is optimal for channel coding over the purestate channel^{20,27}:
where y_{h} is any vector in the coset of \({{\mathcal{C}}}^{\perp }\) corresponding to \(h\in {{\mathbb{Z}}}_{2}^{k}\). Alternatively, one can also use the YKL conditions^{19,21} to derive the optimal error rates.
For example, let us pick θ = 0.05π which corresponds to the mean photon number per mode N ≈ 0.00619. Then the optimal error probability from the SRMbased closedform expression is 0.758171401618323 up to numerical precision. Similarly, the density matrixbased expression (Eq. 73) produces the number 0.758171401618325 whose small difference can be attributed to numerical error. Furthermore, we have
Note that \({P}_{{\rm{succ}},2}^{{\rm{BPQM}}}{\left\right.}_{{\hat{x}}_{1} = {x}_{1} = 0}={P}_{{\rm{succ}},4}^{{\rm{BPQM}}}{\left\right.}_{{\hat{x}}_{1} = {x}_{1} = 0}\) but the additional conditioning on \({\hat{x}}_{2}\,=\,{x}_{2}\) makes a difference for x_{4}. The overall bit error probabilities for the 5 bits are given by
To check simulation results averaged over B = 10^{6} codeword transmissions, we set the confidence level to be 1 − α = 0.98 and calculate the accuracy β of the error estimate. These quantities are related as
where Q(⋅) is the “Q function” of the Gaussian distribution and p is the true error probability we are trying to estimate (numerically).

(1)
For the block error rate, p ≈ 0.7582, we obtain β ≈ 0.2671% which means the answer is in the window [0.7561, 0.7602]. The simulation produced the value 0.7573 which is well within this window. When we used only B = 10^{5} codeword transmissions we obtained the value 0.7558. For this setting, again with 98% confidence, the window for β ≈ 0.8448% is [0.7518, 0.7646], so the simulation result is well within this window.

(2)
For x_{1}, the result is well within β ≈ 0.3629% from the actual number p ≈ 0.4111 since the window is [0.4096, 0.4126] and the simulation gives 0.4111.

(3)
For x_{2} through x_{5} (which all have the same overall error probability), the results are well within β ≈ 0.3606% from the actual number p = 0.4160 since the window is [0.4145, 0.4175] and the simulation yields 0.4163 for x_{2}, 0.4168 for x_{3}, 0.4150 for x_{4}, and 0.4163 for x_{5}.
Remark 2 We also observe that if we ignore the coherent rotation after measuring x_{1}, then the success probabilities of the remaining bits decrease significantly to
Due to this, the overall block error rate increases to roughly 0.7790. Therefore, it is clear that the coherent rotation plays an important and nontrivial role in the optimality of BPQM (for this code).
Remark 3 The above analyses demonstrate that even though the measurement for each bit is irreversible, BPQM still decides each bit optimally in this 5bit example code. In particular, the order in which the bits are decoded does not seem to affect the performance. This needs to be studied further and we need to analyze if BPQM always achieves the codeword Helstrom limit for all codes with tree factor graphs. We emphasize that, while in classical BP there is no question of ordering and one makes hard decisions on all the bits simultaneously after several BP iterations, it appears that quantum BP always has a sequential nature due to the unitarity of operations and the nocloning theorem. This resembles “successivecancellation” type decoders more than BP. Due to these facts, we expect that extending classical ideas for analyzing BP, such as density evolution^{9}, will require some caveats in the quantum setting.
In connection to this, Renes has recently developed a precise notion of duality between channels, and shown that classical channels need to be embedded in CQ channels in order to define their duals^{32}. An interesting fact that follows from this framework is that the dual of the purestate channel is the classical BSC. Since we know that density evolution is a welldefined analysis technique for BP on BSCs, albeit sophisticated, it will be interesting to see if duality allows one to borrow from this literature and analyze BPQM on purestate channels.
Code availability
The computer programs to generate the data produced in our simulations are made available at https://github.com/nrenga/bpqm.
References
Yedidia, J. S., Freeman, W. T. & Weiss, Y. Understanding belief propagation and its generalizations. Exploring Artificial Intelligence in the New Millennium, Vol. 8, 236–239 (Morgan Kaufmann Publishers Inc., San Francisco, CA, United States, 2003).
Yedidia, J. S., Freeman, W. T. & Weiss, Y. Constructing free energy approximations and generalized belief propagation algorithms. IEEE Trans. Inform. Theory 51, 2282–2312 (2005).
Globerson, A. & Jaakkola, T. Fixing maxproduct: Convergent message passing algorithms for MAP LPrelaxations. In Advances in Neural Information Processing Systems, 553–560 (MIT Press, 2008).
Lu, Y., Montanari, A. & Prabhakar, B. Counter braids: asymptotic optimality of the message passing decoding algorithm. In Proc. 41st Annual Allerton Conf. on Communication, Control, and Computing, 209–216 (IEEE, 2008).
Donoho, D. L., Maleki, A. & Montanari, A. Message passing algorithms for compressed sensing: I. motivation and construction. In Proceedings of IEEE Information Theory Workshop, 1–5 (IEEE, Cairo, Egypt, 2010).
Bayati, M. & Montanari, A. The Dynamics of Message Passing on Dense Graphs, with Applications to Compressed Sensing, Vol. 57, 764–785 (IEEE Transactions on Information Theory, 2011).
Yedidia, J. S. Messagepassing algorithms for inference and optimization. J. Stat. Phys. 145, 860–890 (2011).
Mansour, M. A messagepassing algorithm for graph isomorphism. Preprint at http://arxiv.org/abs/1704.00395 (2017).
Richardson, T. J. & Urbanke, R. L. Modern Coding Theory (Cambridge University Press, New York, NY, 2008).
Kudekar, S., Richardson, T. J. & Urbanke, R. L. Threshold saturation via spatial coupling: why convolutional LDPC ensembles perform so well over the BEC. IEEE Trans. Inform. Theory 57, 803–834 (2011).
Kudekar, S., Richardson, T. & Urbanke, R. L. Spatially coupled ensembles universally achieve capacity under belief propagation. IEEE Trans. Inform. Theory 59, 7761–7813 (2013).
Kumar, S., Young, A. J., Macris, N. & Pfister, H. D. Threshold saturation for spatiallycoupled LDPC and LDGM codes on BMS channels. IEEE Trans. Inform. Theory 60, 7389–7415 (2014).
Guha, S. & Wilde, M. M. Polar coding to achieve the Holevo capacity of a pureloss optical channel. In Proceedings of IEEE International Symposium on Information Theory, 546–550 https://arxiv.org/abs/1202.0533 (2012).
Helstrom, C. W. Quantum detection and estimation theory. J. Stat. Phys. 1, 231–252 (1969).
Helstrom, C. W., Liu, J. W. & Gordon, J. P. Quantummechanical communication theory. Proc. of the IEEE 58, 1578–1598 (1970).
Dolinar Jr., S. An optimum receiver for the binary coherent state quantum channel. MIT Res. Lab. Electron. Q. Prog. Rep. 111, 115–120 (1973).
Arıkan, E. Channel polarization: a method for constructing capacityachieving codes for symmetric binaryinput memoryless channels. IEEE Trans. Inform. Theory 55, 3051–3073 (2009).
Wilde, M. M. Quantum Information Theory (Cambridge University Press, 2013).
Yuen, H., Kennedy, R. & Lax, M. Optimum testing of multiple hypotheses in quantum detection theory. IEEE Trans. Inform. Theory 21, 125–134 (1975).
Eldar, Y. C. & Forney, G. D. On quantum detection and the squareroot measurement. IEEE Trans. Inform. Theory 47, 858–872 (2000).
Krovi, H., Guha, S., Dutton, Z. & da Silva, M. P. Optimal measurements for symmetric quantum states with applications to optical communication. Phys. Rev. A 92, 062333 (2015).
Barthel, T. & Lu, J. Fundamental limitations for measurements in quantum manybody systems. Phys. Rev. Lett. 121, 080406 (2018).
Da Silva, M. P., Guha, S. & Dutton, Z. Achieving minimumerror discrimination of an arbitrary set of laserlight pulses. Phys. Rev. A 87, 052320 (2013).
Renes, J. M. Belief propagation decoding of quantum channels by passing quantum messages. New J. Phys. 19, 072001 (2017).
Hastings, M. Quantum belief propagation: an algorithm for thermal quantum systems. Phys. Rev. B 76, 201102 (2007).
Leifer, M. S. & Poulin, D. Quantum graphical models and belief propagation. Ann. Phys. 323, 1899–1946 (2008).
Rengaswamy, N. & Pfister, H. D. A semiclassical proof of duality between the classical BSC and the quantum PSC. Preprint at http://arxiv.org/abs/2103.09225 (2021).
Kunz, L., Jarzyna, M., Zwoliński, W. & Banaszek, K. Lowcost limit of classical communication with restricted quantum measurements. New J. Phys. 22, 043010 (2020).
Guha, S. Structured optical receivers to attain superadditive capacity and the holevo limit. Phys. Rev. Lett. 106, 240502 (2011).
Sasaki, M., Kato, K., Izutsu, M. & Hirota, O. Quantum channels showing superadditivity in classical capacity. Phys. Rev. A 58, 146 (1998).
Wilde, M. M. & Guha, S. Polar codes for classicalquantum channels. IEEE Trans. Inform. Theory 59, 1175–1187 (2013).
Renes, J. M. Duality of channels and codes. IEEE Trans. Inform. Theory 64, 577–592 (2018).
Ralph, T. C., Gilchrist, A., Milburn, G. J., Munro, W. J. & Glancy, S. Quantum computation with optical coherent states. Phys. Rev. A 68, 042319 (2003).
Gilchrist, A. et al. Schrödinger cats and their power for quantum information processing. J. Opt. B: Quantum Semiclassical Opt. 6, S828 (2004).
Arute, F. et al. Quantum supremacy using a programmable superconducting processor. Nature 574, 505–510 (2019).
Kay, A. Tutorial on the Quantikz package. Preprint at http://arxiv.org/abs/1809.03842 (2018).
Nielsen, M. A. & Chuang, I. L. Quantum Computation and Quantum Information (Cambridge University Press, 2010).
Acknowledgements
The authors acknowledge helpful discussions with Prof. Bane Vasic, Prof. Mark Neifeld, Prof. Iman Marvian, Kevin Stubbs, Sarah Brandsen, and Nithin Raveendran. The authors would like to thank Dr. Zachary Dutton for sharing his code to numerically evaluate the YKL limit of decoding a general binary linear code^{21}. The authors would also like to thank the reviewers for helpful feedback, in particular for the suggestion to compute the mutual information per photon for BPQM. K.P.S. and S.G. acknowledge the support of a National Science Foundation (NSF) project “CIF: Medium: Iterative Quantum LDPC Decoders”, award number: 1855879, and the Office of Naval Research (ONR) MURI program on Optical Computing, grant number N000141410505. The work of N.R. and H.P. was supported in part by the National Science Foundation (NSF) under grant no. 1718494, 1908730, and 1910571. Any opinions, findings, conclusions, and recommendations expressed in this material are those of the authors and do not necessarily reflect the views of these sponsors.
Author information
Authors and Affiliations
Contributions
All authors were actively involved in the discussions leading to and during this research. Specifically, H.D.P. initiated the study of ref. ^{32} which lead to analyzing the BPQM algorithm presented in ref. ^{24}. N.R. conducted the detailed analysis of the BPQM algorithm and the specific interpretation of it via the classical BP algorithm, aided by continuous discussions with H.D.P. S.G. and K.P.S. primarily contributed to the optical communications aspect of this work, in particular to the calculation of the YuenKennedyLax (YKL) limit. They also provided the insight that the BPQM reversal after the coherent rotation following measurement of the first bit is imperfect. They were continuously involved in discussions about the algorithm and its interpretation.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Rengaswamy, N., Seshadreesan, K.P., Guha, S. et al. Belief propagation with quantum messages for quantumenhanced classical communications. npj Quantum Inf 7, 97 (2021). https://doi.org/10.1038/s41534021004221
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41534021004221
This article is cited by

Quantum receiver enhanced by adaptive learning
Light: Science & Applications (2022)