Introduction
Universal quantum computation with continuous variables requires non-Gaussian resources [1 , 2 , 3 , 4 ] . In trapped ions and superconducting circuits, non-Gaussian states such as Gottesman–Kitaev–Preskill (GKP) states are prepared by coupling a harmonic oscillator, such as a motional mode of a trapped ion or a microwave resonator, to a qubit [5 , 6 ] . In propagating optical fields, bulk nonlinearities are too weak to create non-Gaussian states deterministically, so they are instead prepared conditionally [7 , 8 , 9 , 10 ] . Typically, squeezed light is sent through an interferometer, and some modes of the resulting multimode Gaussian state, the heralding modes , are measured with photon-number-resolving (PNR) detectors Figure 1 (a). The pattern of registered photon numbers then heralds a non-Gaussian state in the remaining signal modes . This approach leads to optical cat states [11 , 12 , 13 , 14 ] and GKP states [15 , 16 , 17 , 18 , 19 , 20 , 21 ] , which are fundamental in fault-tolerant photonic architectures [22 , 23 , 24 ] .
Figure 1. Heralded preparation and damping. (a) Squeezed vacua (optionally displaced) with squeezing parameters r i r_i r i pass a passive interferometer U U U and form the source ∣ G ~ A , β ⟩ |\widetilde{G}_{A,\beta}\rangle ∣ G A , β ⟩ of one signal mode and m m m heralding modes. Photon-number-resolving (PNR) detectors register n = ( n 1 , … , n m ) n=(n_1,\ldots,n_m) n = ( n 1 , … , n m ) and leave the signal mode in the state proportional to ⟨ n ∣ G ~ A , β ⟩ \langle n|\widetilde{G}_{A,\beta}\rangle ⟨ n ∣ G A , β ⟩ . (b) The source ∣ G ~ A , β ⟩ |\widetilde{G}_{A,\beta}\rangle ∣ G A , β ⟩ followed by noiseless filters e − γ j n ^ j e^{-\gamma_j\hat{n}_j} e − γ j n ^ j on the heralding modes equals the source ∣ G ~ Λ A Λ , Λ β ⟩ |\widetilde{G}_{\Lambda A\Lambda,\Lambda\beta}\rangle ∣ G Λ A Λ , Λ β ⟩ with Λ = diag ( 1 , e − γ 1 , … , e − γ m ) \Lambda=\operatorname{diag}(1,e^{-\gamma_1},\ldots,e^{-\gamma_m}) Λ = diag ( 1 , e − γ 1 , … , e − γ m ) , with θ j = − 2 γ j \theta_j=-2\gamma_j θ j = − 2 γ j in Eq. (4) . The heralded state is the same as without the filters, and the filters need not be built, because squeezers and an interferometer prepare the damped source directly (dashed blue box).
Designing an optimal state-generation scheme means choosing the squeezing, the interferometer and the detection pattern for a given target state. This is done by numerical optimization [25 , 26 , 27 , 28 , 29 ] based on efficient and accurate simulation of the heralded states [30 , 31 ] . The states are then characterized, for example, by their stellar rank [32 , 33 , 34 , 35 ] , by nonlinear squeezing [36 , 37 , 38 ] , and by other measures of non-Gaussianity and quality [39 , 40 , 41 ] .
The rate of preparation is set by the heralding probability p S p_S p S , the probability that the detectors register the chosen pattern, which generally decreases with the number of detected photons [42 ] . Hanamura et al. Hanamura et al. [43 ] noticed that p S p_S p S can be raised without changing the target. The heralding modes can be damped by a noiseless filter, which multiplies the amplitude of k k k photons in a heralding mode by the k k k th power of a factor smaller than one. Absorbed into the Gaussian input, the damping changes p S p_S p S but leaves the heralded state unchanged, and Hanamura et al. optimized it numerically.
For one heralding mode, the optimal damping has a closed form [42 ] . For m m m heralding modes, the conditions for a stationary point of p S p_S p S are m m m polynomial equations in the m m m damping parameters X j X_j X j (one per heralding mode), which Ref. [44 ] solved for up to four heralding modes and observed that p S p_S p S has a single maximum on the set of physical damping parameters and left open whether this property holds in general [44 Sec. 4] .
Note that the filter does not need an experimental implementation. It is instead intended as a tool to efficiently parametrize and find the optimal Gaussian source state, which is then prepared directly, with different squeezing and a different interferometer. Generally, non-Gaussian state preparation then consists of two nested stages: target-state design over the control parameters that fix the heralded state, and, for a given candidate, damping optimization over the damping parameters to maximize the heralding probability.
Here we show that the damping optimization problem can be solved efficiently. We prove that, with ideal PNR detection of a single pattern and fixed control parameters, every stationary point of p S p_S p S , treated as a function of damping parameters, is a global maximum, with or without displacement of the source. The optimal damping can therefore be found efficiently, even for many heralding modes. Damping forms an exponential family of probability distributions [45 , 46 ] , and the heralding probability is the probability that a member of this family assigns to the registered pattern n \boldsymbol{n} n . As a function of the logarithmic damping parameters, θ j = ln X j \theta_j = \ln X_j θ j = ln X j , this probability is the likelihood of θ \theta θ . For an exponential family its logarithm is concave, so every local maximum is global.
The same structure has appeared in other contexts. Banchi, Quesada, and Arrazola Banchi, Quesada, and Arrazola [47 ] trained Gaussian boson samplers [48 ] and found that the derivative of a pattern probability with respect to a scaling factor is proportional to n j − ⟨ n ^ j ⟩ n_j-\langle\hat{n}_j\rangle n j − ⟨ n ^ j ⟩ . Their distribution of patterns is an exponential family in the logarithms of the scaling factors, so its log-likelihood is concave in these parameters. Kulesza and Taskar Kulesza and Taskar [49 ] proved that the log-likelihood of a determinantal point process with kernel diag ( q ) S diag ( q ) \operatorname{diag}(q)S\operatorname{diag}(q) diag ( q ) S diag ( q ) is concave when q q q depends linearly on the parameters, which is the form of the damped sources below. Our main contributions and results are as follows. We show that, for any supported pattern (W n > 0 W_n > 0 W n > 0 ), ln p S \ln p_S ln p S is concave on the convex set of admissible θ \theta θ for every pure Gaussian source, and strictly concave unless some subset of heralding modes is in a pure state (Thm. 1). Every stationary point of p S p_S p S is therefore a global maximum. When every heralding mode is coupled directly to the signal mode and registers at least one photon, the maximum exists and is unique (Cor. 1). At the maximum, the mean photon number of every heralding mode equals its registered photon number, and we call this condition mean matching . Newton’s method finds the maximum in a few steps of O ( m 3 ) O(m^3) O ( m 3 ) arithmetic operations each, independently of the number of detected photons. Optimality can then be checked using mean photon numbers of the heralding modes.
A bound on the squeezing keeps the problem convex. For m m m heralding modes with n n n photons each, the maximal p S p_S p S decays as n − ( m + 1 ) / 2 n^{-(m+1)/2} n − ( m + 1 ) /2 for a heralded Fock state, and a squeezing bound makes this decay exponential. With lossy detectors, damping changes the fidelity of the heralded state, but p S p_S p S still has at most one maximum for one heralding mode. For several heralding modes several maxima can appear as the efficiency decreases.
The rest of the paper is organized as follows. Section II introduces the Gaussian source parametrization, the damping operator, and our standing assumptions. Section III establishes the exponential-family structure for ideal detection, proves concavity and uniqueness, and describes the Newton solver. Section IV treats optimization under a squeezing bound, § 1.4 analyzes photon-number scaling, and Sec. VI studies imperfect detection. Section VII concludes, while proofs and numerical details are given in the Appendices and Supplemental Material. Our implementation is available in Ref. [50 ] .
Sources and damping parameters
Gaussian sources and heralding
We consider a pure Gaussian state of one signal mode, labeled 0, and m m m heralding modes, labeled 1 , … , m 1,\ldots,m 1 , … , m , and call it the source . It can be written as [44 ]
∣ G ~ A , β ⟩ = exp ( 1 2 ∑ j , k = 0 m a ^ j † A j k a ^ k † + ∑ j = 0 m β j a ^ j † ) ∣ 0 ⟩ , (1) |\widetilde{G}_{A,\beta}\rangle= \exp\left(\frac{1}{2}\sum_{j,k=0}^{m}\hat{a}_j^\dagger A_{jk}\hat{a}_k^\dagger+\sum_{j=0}^{m}\beta_j\hat{a}_j^\dagger\right)|0\rangle, \tag*{(1)} ∣ G A , β ⟩ = exp 2 1 j , k = 0 ∑ m a ^ j † A j k a ^ k † + j = 0 ∑ m β j a ^ j † ∣0 ⟩ , (1)
where a ^ j † \hat{a}_j^\dagger a ^ j † are creation operators, ∣ 0 ⟩ |0\rangle ∣0 ⟩ the vacuum of all m + 1 m+1 m + 1 modes, A A A is a complex symmetric ( m + 1 ) × ( m + 1 ) (m+1)\times(m+1) ( m + 1 ) × ( m + 1 ) matrix, and the vector β ∈ C m + 1 \beta\in\mathbb{C}^{m+1} β ∈ C m + 1 determines the displacement. The tilde indicates that the state is not normalized. It can be normalized iff the largest singular value σ max ( A ) \sigma_{\max}(A) σ m a x ( A ) of A A A is smaller than one (App. B), then
⟨ G ~ A , β ∣ G ~ A , β ⟩ = exp Re [ β † ( I − A A † ) − 1 ( β + A β ∗ ) ] [ det ( I − A A † ) ] 1 / 2 . (2) \langle\widetilde{G}_{A,\beta}|\widetilde{G}_{A,\beta}\rangle=
\frac{\exp\operatorname{Re}\left[\beta^\dagger(I-AA^\dagger)^{-1}(\beta+A\beta^*)\right]}{\left[\det(I-AA^\dagger)\right]^{1/2}}. \tag*{(2)} ⟨ G A , β ∣ G A , β ⟩ = [ det ( I − A A † ) ] 1/2 exp Re [ β † ( I − A A † ) − 1 ( β + A β ∗ ) ] . (2)
This state can be obtained by sending single-mode squeezed vacua with squeezing r i r_i r i through a passive interferometer U U U and displacing its outputs (Figure 1 (a)).
This follows from the Takagi factorization [51 ] , [52 ] , Cor. 4.4.4(c) A = U diag ( σ 1 , … , σ m + 1 ) U T A=U\operatorname{diag}(\sigma_1,\ldots,\sigma_{m+1})U^T A = U diag ( σ 1 , … , σ m + 1 ) U T , where U U U is unitary and the singular values of A A A are σ i = tanh r i \sigma_i=\tanh r_i σ i = tanh r i . We call the squeezed vacua the normal modes of the source and quote their squeezing 10 log 10 e 2 r i 10\log_{10}e^{2r_i} 10 log 10 e 2 r i dB. The limit σ max ( A ) → 1 \sigma_{\max}(A)\to1 σ m a x ( A ) → 1 corresponds to infinite squeezing of at least one normal mode.
The heralding modes are measured with ideal PNR detectors. If they register the Fock-state pattern n = ( n 1 , … , n m ) n=(n_1,\ldots,n_m) n = ( n 1 , … , n m ) , the signal mode is left in the state proportional to
⟨ n ∣ G ~ A , β ⟩ ≡ ( 1 0 ⊗ ⟨ n 1 ∣ ⊗ ⋯ ⊗ ⟨ n m ∣ ) ∣ G ~ A , β ⟩ . \langle n|\widetilde{G}_{A,\beta}\rangle\equiv(\mathbb{1}_0\otimes\langle n_1|\otimes\cdots\otimes\langle n_m|)|\widetilde{G}_{A,\beta}\rangle. ⟨ n ∣ G A , β ⟩ ≡ ( 1 0 ⊗ ⟨ n 1 ∣ ⊗ ⋯ ⊗ ⟨ n m ∣ ) ∣ G A , β ⟩ .
The heralding probability is the probability of this event,
p S = ∣ ⟨ n ∣ G ~ A , β ⟩ ∣ 2 ⟨ G ~ A , β ∣ G ~ A , β ⟩ . (3) p_S=\frac{\left|\langle n|\widetilde{G}_{A,\beta}\rangle\right|^2}{\langle\widetilde{G}_{A,\beta}|\widetilde{G}_{A,\beta}\rangle}. \tag*{(3)} p S = ⟨ G A , β ∣ G A , β ⟩ ⟨ n ∣ G A , β ⟩ 2 . (3)
Damping and control parameters
Damping multiplies every creation operator a ^ j † \hat{a}_j^\dagger a ^ j † of a heralding mode by e θ j / 2 e^{\theta_j/2} e θ j /2 , where θ j \theta_j θ j is the logarithmic damping parameter and X j = e θ j X_j=e^{\theta_j} X j = e θ j the damping parameter . Applied to some reference source ∣ G ~ B , b ⟩ |\widetilde{G}_{B,b}\rangle ∣ G B , b ⟩ with the matrix B B B and the displacement vector b b b , it gives the damped source (1) with [43 , 44 ]
A = Λ B Λ , β = Λ b , Λ = diag ( 1 , e θ 1 / 2 , … , e θ m / 2 ) . (4) A=\Lambda B\Lambda,\quad\beta=\Lambda b,\quad\Lambda=\operatorname{diag}(1,e^{\theta_1/2},\ldots,e^{\theta_m/2}). \tag*{(4)} A = Λ B Λ , β = Λ b , Λ = diag ( 1 , e θ 1 /2 , … , e θ m /2 ) . (4)
Damping a damped source by θ ′ \boldsymbol{\theta}' θ ′ gives damping θ + θ ′ \boldsymbol{\theta}+\boldsymbol{\theta}' θ + θ ′ of the reference, so all damped sources form one family, and any member of it can serve as the reference. The reference itself need not be normalizable. Equivalently, ∣ G ~ A , β ⟩ = Λ ^ ( θ ) ∣ G ~ B , b ⟩ |\widetilde{G}_{A,\beta}\rangle=\widehat{\Lambda}(\boldsymbol{\theta})|\widetilde{G}_{B,b}\rangle ∣ G A , β ⟩ = Λ ( θ ) ∣ G B , b ⟩ with the damping operator
Λ ^ ( θ ) = ∏ j = 1 m e θ j n ^ j / 2 , (5) \widehat{\Lambda}(\boldsymbol{\theta})=\prod_{j=1}^{m}e^{\theta_j\hat{n}_j/2}, \tag*{(5)} Λ ( θ ) = j = 1 ∏ m e θ j n ^ j /2 , (5)
where n ^ j \hat{n}_j n ^ j is the photon-number operator of heralding mode j j j . Every Fock amplitude then acquires a factor that depends only on k = ( k 1 , … , k m ) \boldsymbol{k}=(k_1,\ldots,k_m) k = ( k 1 , … , k m ) , the photon numbers of the heralding modes,
⟨ k 0 , k ∣ G ~ A , β ⟩ = e k ⋅ θ / 2 ⟨ k 0 , k ∣ G ~ B , b ⟩ , (6) \langle k_0,\boldsymbol{k}|\widetilde{G}_{A,\beta}\rangle=e^{\boldsymbol{k}\cdot\boldsymbol{\theta}/2}\langle k_0,\boldsymbol{k}|\widetilde{G}_{B,b}\rangle, \tag*{(6)} ⟨ k 0 , k ∣ G A , β ⟩ = e k ⋅ θ /2 ⟨ k 0 , k ∣ G B , b ⟩ , (6)
where k 0 k_0 k 0 is the photon number of the signal mode and k ⋅ θ = ∑ j k j θ j \boldsymbol{k}\cdot\boldsymbol{\theta}=\sum_j k_j\theta_j k ⋅ θ = ∑ j k j θ j . Importantly, when registering n \boldsymbol{n} n in the heralding modes, e n ⋅ θ / 2 e^{\boldsymbol{n}\cdot\boldsymbol{\theta}/2} e n ⋅ θ /2 does not depend on k 0 k_0 k 0 . The heralded state ⟨ n ∣ G ~ A , β ⟩ \langle\boldsymbol{n}|\widetilde{G}_{A,\beta}\rangle ⟨ n ∣ G A , β ⟩ is thus the same for every θ \boldsymbol{\theta} θ , up to normalization,
⟨ n ∣ G ~ A , β ⟩ = e n ⋅ θ / 2 ⟨ n ∣ G ~ B , b ⟩ , \langle\boldsymbol{n}|\widetilde{G}_{A,\beta}\rangle=e^{\boldsymbol{n}\cdot\boldsymbol{\theta}/2}\langle\boldsymbol{n}|\widetilde{G}_{B,b}\rangle, ⟨ n ∣ G A , β ⟩ = e n ⋅ θ /2 ⟨ n ∣ G B , b ⟩ ,
and only the heralding probability depends on θ \boldsymbol{\theta} θ .
Taking a physical source as the reference, θ j < 0 \theta_j<0 θ j < 0 applies the purity-preserving filter e θ j n ^ j / 2 e^{\theta_j\hat{n}_j/2} e θ j n ^ j /2 , also known as noiseless attenuation [43 , 53 ] Figure 1 (b), while θ j > 0 \theta_j>0 θ j > 0 corresponds to noiseless amplification [53 , 54 ] . These filters need not be built, because the damped source is again (1) and is prepared directly by squeezers, an interferometer and displacements. Changing θ \boldsymbol{\theta} θ generally changes the squeezing and the interferometer, so a fixed interferometer can reach only some of the damped sources.
We call a source directly coupled if B 0 j ≠ 0 B_{0j}\ne0 B 0 j = 0 for every heralding mode, i.e., if for every heralding mode j j j the exponent of Eq. (1) contains the term a ^ 0 † a ^ j † \hat{a}_0^\dagger\hat{a}_j^\dagger a ^ 0 † a ^ j † . A heralding mode that is coupled to the signal mode only through other heralding modes still changes the heralded state, so it cannot be left out.
For a directly coupled source we can set B 0 j = 1 B_{0j}=1 B 0 j = 1 without loss of generality: a phase rotation of mode j j j makes B 0 j B_{0j} B 0 j positive, and damping multiplies it by e θ j / 2 e^{\theta_j/2} e θ j /2 , so ∣ B 0 j ∣ \lvert B_{0j}\rvert ∣ B 0 j ∣ only fixes the origin of θ j \theta_j θ j . The reference matrix is then
B 00 = s 0 , B 0 j = 1 , B j j = s j , B j k = ν j k ( j ≠ k ) , (7) B_{00}=s_0,\quad B_{0j}=1,\quad B_{jj}=s_j,\quad B_{jk}=\nu_{jk}\ (j\ne k), \tag*{(7)} B 00 = s 0 , B 0 j = 1 , B j j = s j , B j k = ν j k ( j = k ) , (7)
and the damped source has signal–herald couplings A 0 j = X j A_{0j}=\sqrt{X_j} A 0 j = X j . The first column of A A A has squared norm ∣ s 0 ∣ 2 + ∑ j X j \lvert s_0\rvert^2+\sum_jX_j ∣ s 0 ∣ 2 + ∑ j X j , which must not exceed σ max ( A ) 2 < 1 \sigma_{\max}(A)^2<1 σ m a x ( A ) 2 < 1 , so every normalizable damped source has X j < 1 X_j<1 X j < 1 (θ j < 0 \theta_j<0 θ j < 0 ). Relative to this reference, damping always attenuates, hence its name. We call s 0 s_0 s 0 , s j s_j s j , ν j k = ν k j \nu_{jk}=\nu_{kj} ν j k = ν k j and the displacement b b b the control parameters; they fix the heralded state, while θ \boldsymbol{\theta} θ affects only p S p_S p S .
The heralded state itself is a squeezed and displaced superposition of Fock states up to N = ∑ j n j N=\sum_j n_j N = ∑ j n j photons, so its stellar rank [32 ] is at most N N N and equals $N under direct coupling Appendix B. Its squeezing and displacement are set by B 00 = A 00 B_{00}=A_{00} B 00 = A 00 and b 0 = β 0 b_0=\beta_0 b 0 = β 0 , which damping leaves unchanged, while ∣ B 00 ∣ < 1 \lvert B_{00}\rvert<1 ∣ B 00 ∣ < 1 throughout so that normalizable damped sources exist. Setting B 00 = β 0 = 0 B_{00}=\beta_0=0 B 00 = β 0 = 0 gives finite Fock superpositions known as core states [32 , 44 , 55 ] , and we choose s 0 = 0 s_0=0 s 0 = 0 in examples.
Heralding probability
The weights
W k = ∑ k 0 ∣ ⟨ k 0 , k ∣ G ~ B , b ⟩ ∣ 2 (8) W_{\boldsymbol{k}}=\sum_{k_0}\left|\langle k_0,\boldsymbol{k}|\widetilde{G}_{B,b}\rangle\right|^2 \tag*{(8)} W k = k 0 ∑ ⟨ k 0 , k ∣ G B , b ⟩ 2 (8)
are finite even if ∣ G ~ B , b ⟩ |\widetilde{G}_{B,b}\rangle ∣ G B , b ⟩ itself is not normalizable, because W k e k ⋅ θ ≤ ⟨ G ~ A , β ∣ G ~ A , β ⟩ W_{\boldsymbol{k}}e^{\boldsymbol{k}\cdot\boldsymbol{\theta}}\le\langle\widetilde{G}_{A,\beta}|\widetilde{G}_{A,\beta}\rangle W k e k ⋅ θ ≤ ⟨ G A , β ∣ G A , β ⟩ whenever the damped source is normalizable. Equations (2) , (3) and (6) imply
p S ( θ ) = W n e n ⋅ θ ⟨ G ~ A , β ∣ G ~ A , β ⟩ , (9) p_S(\boldsymbol{\theta})=\frac{W_{\boldsymbol{n}}e^{\boldsymbol{n}\cdot\boldsymbol{\theta}}}{\langle\widetilde{G}_{A,\beta}|\widetilde{G}_{A,\beta}\rangle}, \tag*{(9)} p S ( θ ) = ⟨ G A , β ∣ G A , β ⟩ W n e n ⋅ θ , (9)
for heralding probability defined on the admissible set
Ω = { θ ∈ R m : σ max ( Λ B Λ ) < 1 } , (10) \Omega=\left\{\boldsymbol{\theta}\in\mathbb{R}^m:\sigma_{\max}(\Lambda B\Lambda)<1\right\}, \tag*{(10)} Ω = { θ ∈ R m : σ m a x ( Λ B Λ ) < 1 } , (10)
where the damped source is normalizable.
Assumptions
We generally use three assumptions on the source and the pattern, though not every result needs all three.
(H1) Every heralding mode registers at least one photon, n j ≥ 1 n_j\ge1 n j ≥ 1 . Projecting a mode onto the vacuum leaves a pure Gaussian state of the other modes, which heralds the same state with at least the same probability and at most the same squeezing (xref}Appendix B), as a Gaussian measurement does not increase the squeezing of the remaining modes [24 , 56 , 57 ] .
(H2) No set of heralding modes is in a pure state. Such a set does not affect the heralded state, and leaving it undetected raises p S p_S p S , excluding wasteful schemes.
(H3) The source is directly coupled, B 0 j ≠ 0 B_{0j}\ne0 B 0 j = 0 for every j j j . This is stronger than H2.
Assumption H2 makes the optimal damping unique (Thm. 1), and the stronger H3 also guarantees that it exists (Cor. 1). Both are needed only for these proofs. A local method maximizes p S p_S p S also without them, and Section III B describes what it then finds. With imperfect detection, the argument for H1 is invalid as a detected 0 is not a projection onto the vacuum, see Section VI.
Targets with several signal modes, such as the two-signal-mode states of Ref. [44 ] , can be treated in the same way. Results carry over with H2 unchanged and H3 requiring each heralding mode to couple directly to at least one signal mode (Suppl., § 2.5 ).
Ideal detection
Exponential family
Summing the squared amplitudes (6) over k 0 k_0 k 0 and normalizing gives the photon-number distribution of the heralding modes in the damped state, which we call the herald statistics ,
p θ ( k ) = W k e k ⋅ θ − Φ ( θ ) , p_{\boldsymbol{\theta}}(\boldsymbol{k})=W_{\boldsymbol{k}}e^{\boldsymbol{k}\cdot\boldsymbol{\theta}-\Phi(\boldsymbol{\theta})}, p θ ( k ) = W k e k ⋅ θ − Φ ( θ ) ,
Φ ( θ ) = ln ∑ k W k e k ⋅ θ = ln ⟨ G ~ A , β ∣ G ~ A , β ⟩ , (11) \Phi(\boldsymbol{\theta})=\ln\sum_{\boldsymbol{k}}W_{\boldsymbol{k}}e^{\boldsymbol{k}\cdot\boldsymbol{\theta}}=\ln\langle\widetilde{G}_{A,\beta}|\widetilde{G}_{A,\beta}\rangle, \tag*{(11)} Φ ( θ ) = ln k ∑ W k e k ⋅ θ = ln ⟨ G A , β ∣ G A , β ⟩ , (11)
where the second form follows from Eqs. (6) and (8) , and reduces to Φ = − 1 2 ln det ( I − A A † ) \Phi=-\frac{1}{2}\ln\det(I-AA^\dagger) Φ = − 2 1 ln det ( I − A A † ) without displacement. The heralding probability (9) is the value of this distribution at the registered pattern, p S ( θ ) = p θ ( n ) p_S(\boldsymbol{\theta})=p_{\boldsymbol{\theta}}(\boldsymbol{n}) p S ( θ ) = p θ ( n ) .
Equation (11) multiplies the fixed weights W k W_k W k by e k ⋅ θ e^{\mathbf{k}\cdot\boldsymbol{\theta}} e k ⋅ θ , a reweighting known as exponential tilting . Increasing θ j \theta_j θ j shifts probability towards larger photon numbers in mode j j j , as shown in Figure 2 for one heralding mode.
Figure 2. Damping as exponential tilting for one heralding mode with s 1 = 0 s_1=0 s 1 = 0 , postselected on n = 5 n=5 n = 5 , which heralds the Fock state ∣ 5 ⟩ |5\rangle ∣5 ⟩ . The heralding mode is thermal with mean photon number X / ( 1 − X ) X/(1-X) X / ( 1 − X ) , and the admissible set is θ < 0 \theta<0 θ < 0 . Four members of the family share colors and markers in all panels: ⟨ n ^ ⟩ = 0.19 \langle\hat{n}\rangle=0.19 ⟨ n ^ ⟩ = 0.19 (X = 0.16 X=0.16 X = 0.16 ), ⟨ n ^ ⟩ = 1 / 2 \langle\hat{n}\rangle=1/2 ⟨ n ^ ⟩ = 1/2 , the optimum (⟨ n ^ ⟩ = n = 5 \langle\hat{n}\rangle=n=5 ⟨ n ^ ⟩ = n = 5 , star) and ⟨ n ^ ⟩ = 50 \langle\hat{n}\rangle=50 ⟨ n ^ ⟩ = 50 . (a) Herald distributions p θ ( k ) p_\theta(k) p θ ( k ) of Eq. (11) . On the logarithmic axis, tilting is a shear and a shift. The heralding probability is 8.8 × 10 − 5 8.8\times10^{-5} 8.8 × 1 0 − 5 at X = 0.16 X=0.16 X = 0.16 and 0.067 0.067 0.067 at the optimum, a gain of 7.6 × 10 2 = exp [ D K L ( p θ ⋆ ∥ p θ ) ] 7.6\times10^2=\exp[D_{\mathrm{KL}}(p_{\theta^\star}\mathbin\Vert p_\theta)] 7.6 × 1 0 2 = exp [ D KL ( p θ ⋆ ∥ p θ )] , with D K L D_{\mathrm{KL}} D KL the Kullback–Leibler divergence [Eq. (29) ]. (b) p S ( θ ) = p θ ( n ) p_S(\theta)=p_\theta(n) p S ( θ ) = p θ ( n ) is log-concave, with a single maximum at θ ⋆ = ln ( 5 / 6 ) \theta^\star=\ln(5/6) θ ⋆ = ln ( 5/6 ) , and vanishes at the boundary of the admissible set (hatched region: not normalizable). (c) The mean photon number grows monotonically, d ⟨ n ^ ⟩ / d θ = Σ > 0 \mathrm{d}\langle\hat{n}\rangle/\mathrm{d}\theta=\Sigma>0 d ⟨ n ^ ⟩ / d θ = Σ > 0 , and diverges at the boundary, so it equals n n n exactly once [Eq. (13) ].
In statistics, a set of distributions of the form (11) is called an exponential family [45 , 46 ] , and Φ \Phi Φ , the logarithm of the normalization constant, is called its log-partition function . Table I in App. A translates other terms of the theory into the heralding problem.
Table I. TABLE I. Terms of the theory of exponential families [45 , 46 , 68 ] and their meaning for the herald statistics.
Differentiating under the sum, ∂ Φ / ∂ θ j = ∑ k k j p θ ( k ) \partial\Phi/\partial\theta_j=\sum_{\mathbf{k}}k_jp_{\boldsymbol{\theta}}(\mathbf{k}) ∂ Φ/ ∂ θ j = ∑ k k j p θ ( k ) , gives the mean photon numbers and the photon-number covariance matrix Σ \Sigma Σ of the damped state
∂ Φ ∂ θ j = ⟨ n ^ j ⟩ , ∂ 2 Φ ∂ θ j ∂ θ k = Cov ( n ^ j , n ^ k ) ≡ Σ j k . (12) \frac{\partial\Phi}{\partial\theta_j}=\langle\hat{n}_j\rangle,\qquad\frac{\partial^2\Phi}{\partial\theta_j\partial\theta_k}=\operatorname{Cov}(\hat{n}_j,\hat{n}_k)\equiv\Sigma_{jk}. \tag*{(12)} ∂ θ j ∂ Φ = ⟨ n ^ j ⟩ , ∂ θ j ∂ θ k ∂ 2 Φ = Cov ( n ^ j , n ^ k ) ≡ Σ j k . (12)
Regarded as a function of θ \boldsymbol{\theta} θ at fixed n \mathbf{n} n , the probability p θ ( n ) p_{\boldsymbol{\theta}}(\mathbf{n}) p θ ( n ) is the likelihood of the parameter θ \boldsymbol{\theta} θ given the observation n \mathbf{n} n . Maximizing p S p_S p S is therefore formally a maximum-likelihood estimation of θ \boldsymbol{\theta} θ in which the chosen pattern n \mathbf{n} n plays the role of a sole observation.
Concavity, uniqueness and existence
The sum in Eq. (11) converges if and only if θ \boldsymbol{\theta} θ lies in the admissible set Ω \Omega Ω of Eq. (10) (Prop. 1 in App. A), because it is the squared norm of ∣ G ~ A , β ⟩ \lvert\widetilde{G}_{A,\boldsymbol{\beta}}\rangle ∣ G A , β ⟩ .
Theorem 1. Let A = Λ B Λ A=\Lambda B\Lambda A = Λ B Λ with complex symmetric B B B and displacement β = Λ b \boldsymbol{\beta}=\Lambda\mathbf{b} β = Λ b be such that no set of heralding modes is in a pure state (H2), and let n \mathbf{n} n be the registered pattern. Then Ω \Omega Ω is convex, and if W n > 0 W_{\mathbf{n}}>0 W n > 0 , ln p S \ln p_S ln p S is strictly concave on Ω \Omega Ω . Hence p S p_S p S has at most one stationary point, and a local maximum of p S p_S p S on Ω \Omega Ω is its unique global maximum.
Proof. Expanding on [46 Thm. 1.13] , we first show Ω \Omega Ω is convex: Let θ , θ ′ ∈ Ω \boldsymbol{\theta},\boldsymbol{\theta}'\in\Omega θ , θ ′ ∈ Ω and u ∈ ( 0 , 1 ) u\in(0,1) u ∈ ( 0 , 1 ) . Hölder’s inequality states ∑ k a k b k ≤ ( ∑ k a k 1 / u ) u ( ∑ k b k 1 / ( 1 − u ) ) 1 − u \sum_k a_kb_k\leq\left(\sum_k a_k^{1/u}\right)^u\left(\sum_k b_k^{1/(1-u)}\right)^{1-u} ∑ k a k b k ≤ ( ∑ k a k 1/ u ) u ( ∑ k b k 1/ ( 1 − u ) ) 1 − u for a k , b k ≥ 0 a_k,b_k\geq0 a k , b k ≥ 0 . With a k = ( W k e k ⋅ θ ) u a_k=(W_ke^{\mathbf{k}\cdot\boldsymbol{\theta}})^u a k = ( W k e k ⋅ θ ) u and b k = ( W k e k ⋅ θ ′ ) 1 − u b_k=(W_ke^{\mathbf{k}\cdot\boldsymbol{\theta}'})^{1-u} b k = ( W k e k ⋅ θ ′ ) 1 − u it gives
∑ k W k e k ⋅ [ u θ + ( 1 − u ) θ ′ ] ≤ e u Φ ( θ ) + ( 1 − u ) Φ ( θ ′ ) < ∞ , \sum_{\mathbf{k}}W_{\mathbf{k}}e^{\mathbf{k}\cdot[u\boldsymbol{\theta}+(1-u)\boldsymbol{\theta}']}\leq e^{u\Phi(\boldsymbol{\theta})+(1-u)\Phi(\boldsymbol{\theta}')}<\infty, k ∑ W k e k ⋅ [ u θ + ( 1 − u ) θ ′ ] ≤ e u Φ ( θ ) + ( 1 − u ) Φ ( θ ′ ) < ∞ ,
so the point u θ + ( 1 − u ) θ ′ u\boldsymbol{\theta}+(1-u)\boldsymbol{\theta}' u θ + ( 1 − u ) θ ′ lies in Ω \Omega Ω .
Next, by Eq. (11) , ln p S ( θ ) = ln W n + n ⋅ θ − Φ ( θ ) \ln p_S(\boldsymbol{\theta})=\ln W_{\mathbf{n}}+\mathbf{n}\cdot\boldsymbol{\theta}-\Phi(\boldsymbol{\theta}) ln p S ( θ ) = ln W n + n ⋅ θ − Φ ( θ ) . The first term does not depend on θ \boldsymbol{\theta} θ , the second is linear in θ \boldsymbol{\theta} θ , so ∇ 2 ln p S = ( ∂ 2 ln p S / ∂ θ j ∂ θ k ) = − Σ \nabla^2\ln p_S=(\partial^2\ln p_S/\partial\theta_j\partial\theta_k)=-\Sigma ∇ 2 ln p S = ( ∂ 2 ln p S / ∂ θ j ∂ θ k ) = − Σ with the photon-number covariance matrix Σ \Sigma Σ of Eq. (12) . For any real vector v \mathbf{v} v , the quadratic form v T Σ v = Var ( ∑ j v j n ^ j ) \mathbf{v}^{T}\Sigma\mathbf{v}=\operatorname{Var}(\sum_jv_j\hat{n}_j) v T Σ v = Var ( ∑ j v j n ^ j ) is never negative, so ln p S \ln p_S ln p S is concave.
Concavity already makes every local maximum global. For uniqueness we prove strict concavity, v ≠ 0 ⟹ v T Σ v > 0 \mathbf{v}\ne0\Longrightarrow\mathbf{v}^{T}\Sigma\mathbf{v}>0 v = 0 ⟹ v T Σ v > 0 . Suppose instead that v T Σ v = Var ( L ^ ) = 0 \mathbf{v}^{T}\Sigma\mathbf{v}=\operatorname{Var}(\hat{L})=0 v T Σ v = Var ( L ^ ) = 0 for some v ≠ 0 \mathbf{v}\ne0 v = 0 and L ^ = ∑ j v j n ^ j \hat{L}=\sum_jv_j\hat{n}_j L ^ = ∑ j v j n ^ j . We then show that a set of heralding modes is in a pure state, contradicting H2.
First, the damped source is invariant under a phase rotation. A state in which L ^ \hat{L} L ^ has zero variance is an eigenvector of L ^ \hat{L} L ^ ; this includes ∣ G ~ A , β ⟩ \lvert\widetilde{G}_{A,\boldsymbol{\beta}}\rangle ∣ G A , β ⟩ . Its vacuum amplitude is one and L ^ ∣ 0 ⟩ = 0 \hat{L}\lvert0\rangle=0 L ^ ∣ 0 ⟩ = 0 , so the eigenvalue is 0, and the phase rotation e − i t L ^ e^{-it\hat{L}} e − i t L ^ , which multiplies every a ^ j † \hat{a}_j^\dagger a ^ j † by e − i v j t e^{-iv_jt} e − i v j t , leaves the source unchanged for every real t t t .
Second, with v 0 = 0 v_0=0 v 0 = 0 for the signal mode, the rotated source is again of the form (1) , with A j k A_{jk} A j k multiplied by e − i ( v j + v k ) t e^{-i(v_j+v_k)t} e − i ( v j + v k ) t and β j \beta_j β j by e − i v j t e^{-iv_jt} e − i v j t . A source of this form determines A A A and β \boldsymbol{\beta} β through its amplitudes with one and two photons, so ( v j + v k ) A j k = 0 (v_j+v_k)A_{jk}=0 ( v j + v k ) A j k = 0 for all j j j and k k k .
Third, the modes with v j ≠ 0 v_j\ne0 v j = 0 decouple from the others. Let P \mathcal{P} P be the set of these modes. It is not empty because v ≠ 0 \mathbf{v}\ne0 v = 0 , and it contains only heralding modes because v 0 = 0 v_0=0 v 0 = 0 . For j ∈ P j\in\mathcal{P} j ∈ P and k ∉ P k\notin\mathcal{P} k ∈ / P , ( v j + v k ) A j k = v j A j k = 0 (v_j+v_k)A_{jk}=v_jA_{jk}=0 ( v j + v k ) A j k = v j A j k = 0 gives A j k = 0 A_{jk}=0 A j k = 0 , so no term from the others appears in Eq. (1) couples the modes in P \mathcal{P} P to the others. The damped source is then a product of a state of the modes in P \mathcal{P} P and a state of the others, and the modes in P \mathcal{P} P are in a pure state.
Hence Σ \Sigma Σ is positive definite on Ω \Omega Ω , and ln p S \ln p_S ln p S is strictly concave. A strictly concave function on a convex set has at most one stationary point, and a local maximum is its unique global maximum [58 Sec. 4.2] .
If a set of heralding modes is in a pure state, so that H2 fails, ln p S \ln p_S ln p S is still concave, so every local maximum is still global, but the maximizers can form a convex set instead of a single point. All of them give the same damped source (App. A), so the optimal source is still unique.
By Eqs. (11) and (12) , the gradient of ln p S \ln p_S ln p S is n − ⟨ n ^ ⟩ \mathbf{n}-\langle\hat{\mathbf{n}}\rangle n − ⟨ n ^ ⟩ . Setting it to zero gives the optimality condition
⟨ n ^ j ⟩ = n j , j = 1 , … , m . (13) \langle\hat{n}_j\rangle=n_j,\qquad j=1,\ldots,m. \tag*{(13)} ⟨ n ^ j ⟩ = n j , j = 1 , … , m . (13)
We call Eq. (13) the mean-matching condition . It states that a source is optimally damped if and only if the mean photon number of every heralding mode equals the photon number n j n_j n j in the chosen pattern.
Theorem 1 does not state that a maximum exists. For a minimal exponential family (H2), the likelihood attains its maximum if and only if [45 Cor. 9.6], [46, Thm. 5.5]
n ∈ int conv ‾ { k : W k > 0 } , (14) \mathbf{n}\in\operatorname{int}\overline{\operatorname{conv}}\{\mathbf{k}:W_{\mathbf{k}}>0\}, \tag*{(14)} n ∈ int conv { k : W k > 0 } , (14)
where conv ‾ \overline{\operatorname{conv}} conv is the closed convex hull and int \operatorname{int} int the interior. For a directly coupled source (H3), W k > 0 W_{\mathbf{k}}>0 W k > 0 for every pattern (App. B), so the hull is the closed orthant [ 0 , ∞ ) m [0,\infty)^m [ 0 , ∞ ) m , and condition (14) holds whenever n j ≥ 1 , ∀ j n_j\geq1,\forall j n j ≥ 1 , ∀ j (H1).
Corollary 1. For a directly coupled source (H3) with n j ≥ 1 , ∀ j n_j\geq1,\forall j n j ≥ 1 , ∀ j (H1), p S p_S p S attains its maximum on Ω \Omega Ω at a unique maximizer θ ∗ \boldsymbol{\theta}^{*} θ ∗ , and θ ∗ \boldsymbol{\theta}^{*} θ ∗ is the only solution of Eq. (13) .
Proof. The damping parameters are bounded from above on Ω \Omega Ω . A j 0 = B 0 j e θ j / 2 A_{j0}=B_{0j}e^{\theta_j/2} A j 0 = B 0 j e θ j /2 implies σ max ( A ) 2 ≥ ∑ j ∣ B 0 j ∣ 2 e θ j \sigma_{\max}(A)^2\geq\sum_j|B_{0j}|^2e^{\theta_j} σ m a x ( A ) 2 ≥ ∑ j ∣ B 0 j ∣ 2 e θ j , and σ max ( A ) < 1 \sigma_{\max}(A)<1 σ m a x ( A ) < 1 implies θ j < − 2 ln ∣ B 0 j ∣ \theta_j<-2\ln|B_{0j}| θ j < − 2 ln ∣ B 0 j ∣ .
Since ⟨ 0 ∣ G ~ A , β ⟩ = 1 \langle0|\widetilde{G}_{A,\boldsymbol{\beta}}\rangle=1 ⟨ 0∣ G A , β ⟩ = 1 , and Eq. (9) gives p S ≤ W n e n ⋅ θ p_S\leq W_{\mathbf{n}}e^{\mathbf{n}\cdot\boldsymbol{\theta}} p S ≤ W n e n ⋅ θ . Since n j ≥ 1 n_j\geq1 n j ≥ 1 and θ j \theta_j θ j are bounded from above, this bound tends to zero as any θ j → − ∞ \theta_j\to-\infty θ j → − ∞ . At the boundary of Ω \Omega Ω , e Φ ( θ ) e^{\Phi(\boldsymbol{\theta})} e Φ ( θ ) diverges while W n e n ⋅ θ W_{\mathbf{n}}e^{\mathbf{n}\cdot\boldsymbol{\theta}} W n e n ⋅ θ stays finite [Eq. (2) ; App. B], so p S → 0 p_S\to0 p S → 0 there.
Take ϵ ≤ p S ( θ 0 ) \epsilon\leq p_S(\boldsymbol{\theta}_0) ϵ ≤ p S ( θ 0 ) for some θ 0 ∈ Ω \boldsymbol{\theta}_0\in\Omega θ 0 ∈ Ω . The set of points of Ω \Omega Ω with p S ≥ ϵ p_S\geq\epsilon p S ≥ ϵ is then nonempty. It is bounded, because p S < ϵ p_S<\epsilon p S < ϵ once some θ j \theta_j θ j is sufficiently negative, and closed, because it stays away from the boundary of Ω \Omega Ω . The continuous function p S p_S p S attains its maximum on this set, and this is its maximum on Ω \Omega Ω . By Thm. 1, the maximizer is unique and is the only stationary point.
The proof uses only n j > 0 n_j>0 n j > 0 . For real patterns with n j > 0 n_j>0 n j > 0 , it shows in the same way that n ⋅ θ − Φ ( θ ) n\cdot\theta-\Phi(\theta) n ⋅ θ − Φ ( θ ) , which equals ln p S − ln W n \ln p_S-\ln W_n ln p S − ln W n for integer patterns, has a unique maximizer, at which ⟨ n ^ ⟩ = n \langle\hat{n}\rangle=n ⟨ n ^ ⟩ = n . The continuation of Sec. III C uses such patterns.
The proof also gives intuition for locating the maximum. A heralding mode with θ j → − ∞ \theta_j\to-\infty θ j → − ∞ approaches the vacuum and cannot supply its n j ≥ 1 n_j\ge1 n j ≥ 1 photons, and at the boundary of Ω \Omega Ω the source is infinitely squeezed and every fixed pattern becomes improbable, i.e.
p S ( θ ) → 0 for θ j → − ∞ and for σ max ( A ) → 1. p_S(\theta)\to0\quad\text{for }\theta_j\to-\infty\text{ and for }\sigma_{\max}(A)\to1. p S ( θ ) → 0 for θ j → − ∞ and for σ m a x ( A ) → 1.
The maximum lies between these limits and direct coupling (H3) bounds every θ j \theta_j θ j from above. Without it, θ j → + ∞ \theta_j\to+\infty θ j → + ∞ can appear, along which p S p_S p S increases towards a supremum with heralding modes in a pure state. Leaving these modes out gives a smaller scheme that heralds the same state with a higher probability (Suppl., § 2.6 ). Without direct coupling, the maximum can therefore fail to exist only for schemes that can be outperformed by a smaller scheme.
Finding the optimum
For one heralding mode, the mean-matching condition (13) is a quadratic equation for X X X , or a quartic one if the source is displaced and s 1 ≠ 0 s_1\ne0 s 1 = 0 [[42 ] ]. For m ≥ 2 m\ge2 m ≥ 2 and without displacement, Ref. [[44 ] ] writes the stationarity conditions as polynomial equations Q j = 0 Q_j=0 Q j = 0 . With K = diag ( 1 , … , X m ) K=\operatorname{diag}(1,\ldots,X_m) K = diag ( 1 , … , X m ) and J ( X ) = I − B K T K J(X)=I-BK^{\mathsf T}K J ( X ) = I − B K T K , for which det J = det ( I − A A † ) \det J=\det(I-AA^\dagger) det J = det ( I − A A † ) , its extremal equations are
Q j ( X ) ≡ ( X j ∂ X j + 2 n j ) det J = 2 det J ( n j − ⟨ n ^ j ⟩ ) , (15) Q_j(X)\equiv(X_j\partial_{X_j}+2n_j)\det J=2\det J\left(n_j-\langle\hat{n}_j\rangle\right), \tag*{(15)} Q j ( X ) ≡ ( X j ∂ X j + 2 n j ) det J = 2 det J ( n j − ⟨ n ^ j ⟩ ) , (15)
where the second form holds on Ω \Omega Ω (App. B). The extremal equations are therefore the mean-matching condition multiplied by 2 det J 2\det J 2 det J , which is positive on Ω \Omega Ω .
The roots of Q j ( X ) Q_j(X) Q j ( X ) in Ω \Omega Ω are stationary points of p S p_S p S . Since X j ∂ X j ( X 2 n det J ) = X 2 n Q j X_j\partial_{X_j}(X^{2n}\det J)=X^{2n}Q_j X j ∂ X j ( X 2 n det J ) = X 2 n Q j with X 2 n = ∏ j X j 2 n j X^{2n}=\prod_jX_j^{2n_j} X 2 n = ∏ j X j 2 n j , all roots with nonzero X j X_j X j are stationary points of the polynomial X 2 n det J X^{2n}\det J X 2 n det J , which equals ( p S / W n ) 2 (p_S/W_n)^2 ( p S / W n ) 2 on Ω \Omega Ω . Its other stationary points have zero, negative, or complex X j X_j X j , or positive X j X_j X j outside Ω \Omega Ω , where the source is not normalizable. Computing and discarding them is what makes the system hard to solve for many heralding modes.
By Thm. 1 and Cor. 1, these equations need not be solved. It suffices to find a local maximum, which can be done efficiently using values and derivatives of ln p S \ln p_S ln p S at the iterates of local optimization methods [[58 ] , Sec. 1.4.1].
By Eqs. (11) and (12) and Wick’s theorem (App. B), the gradient and the Hessian of ln p S \ln p_S ln p S are
∇ ln p S = n − ⟨ n ^ ⟩ , ∇ 2 ln p S = − Σ . (16) \nabla\ln p_S=n-\langle\hat{n}\rangle,\qquad\nabla^2\ln p_S=-\Sigma. \tag*{(16)} ∇ ln p S = n − ⟨ n ^ ⟩ , ∇ 2 ln p S = − Σ. (16)
Defining C = ( I − A T A ) − 1 − I C=(I-A^{\mathsf T}A)^{-1}-I C = ( I − A T A ) − 1 − I and M = A ( I − A T A ) − 1 M=A(I-A^{\mathsf T}A)^{-1} M = A ( I − A T A ) − 1 , their entries are the moments of ⟨ a ^ j † a ^ k ⟩ \langle\hat{a}_j^\dagger\hat{a}_k\rangle ⟨ a ^ j † a ^ k ⟩ and ⟨ a ^ j a ^ k ⟩ \langle\hat{a}_j\hat{a}_k\rangle ⟨ a ^ j a ^ k ⟩ of an undisplaced source. For b = 0 b=0 b = 0 ,
⟨ n ^ j ⟩ = C j j , Σ j k = ∣ M j k ∣ 2 + ∣ C j k ∣ 2 + δ j k C j j . (17) \langle\hat{n}_j\rangle=C_{jj},\qquad\Sigma_{jk}=|M_{jk}|^2+|C_{jk}|^2+\delta_{jk}C_{jj}. \tag*{(17)} ⟨ n ^ j ⟩ = C j j , Σ j k = ∣ M j k ∣ 2 + ∣ C j k ∣ 2 + δ j k C j j . (17)
so one iterate requires inverting an ( m + 1 ) × ( m + 1 ) (m+1)\times(m+1) ( m + 1 ) × ( m + 1 ) matrix. Displacements need no further inversion [Eq. (33) ].
We maximize ln p S \ln p_S ln p S by Newton’s method with backtracking [[58 ] , Sec. 9.5]. Its step Σ − 1 ( n − ⟨ n ^ ⟩ ) \Sigma^{-1}(n-\langle\hat{n}\rangle) Σ − 1 ( n − ⟨ n ^ ⟩) is also the Newton step for solving Eq. (13) as a system of equations, but the value of ln p S \ln p_S ln p S also measures progress and steps that leave Ω \Omega Ω or decrease p S p_S p S are shortened. The iterates therefore stay in the set where p S p_S p S is at least its initial value, which is closed and bounded on the proof of Cor. 1. On this set Σ \Sigma Σ is Lipschitz continuous and its smallest eigenvalue is nonzero, which allows for a standard convergence proof [[58 ] , Sec. 9.5.3].
The method thus converges to the maximum from every admissible starting point, quadratically near the maximum (Figure 3 ). For random sources with up to 50 heralding modes and up to nine photons per mode, it needed a median of 6 to 10 steps and took milliseconds to tens of milliseconds on one CPU core.
Figure 3. An example with two heralding modes, real B B B , control parameters s 1 = 2 / 5 s_1=2/5 s 1 = 2/5 , s 2 = − 3 / 10 s_2=-3/10 s 2 = − 3/10 , ν 12 = 3 / 5 \nu_{12}=3/5 ν 12 = 3/5 and the pattern n = ( 1 , 1 ) \mathbf{n}=(1,1) n = ( 1 , 1 ) : ln p S \ln p_S ln p S plotted over θ j = ln X j \theta_j=\ln X_j θ j = ln X j . The crimson curve σ max ( A ) = 1 \sigma_{\max}(A)=1 σ m a x ( A ) = 1 bounds the admissible set Ω \Omega Ω , and the square marks the corner where two normal modes are infinitely squeezed at once. White lines track the flow d θ / d t = Σ − 1 ( n − ⟨ n ^ ⟩ ) \mathrm{d}\boldsymbol{\theta}/\mathrm{d}t=\Sigma^{-1}(\mathbf{n}-\langle\hat{\mathbf{n}}\rangle) d θ / d t = Σ − 1 ( n − ⟨ n ^ ⟩) , the continuous-time limit of Newton’s method, from admissible starting points (circles). Trajectories of this flow cannot cross, and along each of them ⟨ n ^ ⟩ \langle\hat{\mathbf{n}}\rangle ⟨ n ^ ⟩ moves on a straight line to n \mathbf{n} n . All reach the maximum (star) at X ⋆ = ( 0.2627 , 0.3158 ) \mathbf{X}^{\star}=(0.2627,0.3158) X ⋆ = ( 0.2627 , 0.3158 ) , where ⟨ n ^ ⟩ = ( 1 , 1 ) \langle\hat{\mathbf{n}}\rangle=(1,1) ⟨ n ^ ⟩ = ( 1 , 1 ) .
Patterns with thousands of photons per mode can need several hundred Newton steps, because the iterates take many short steps near the boundary of Ω \Omega Ω . We can instead use a continuation in the pattern whenever some n j n_j n j exceeds 16. The method first maximizes n ′ ⋅ θ − Φ ( θ ) \mathbf{n}'\cdot\boldsymbol{\theta}-\Phi(\boldsymbol{\theta}) n ′ ⋅ θ − Φ ( θ ) for n ′ = n / 4 k \mathbf{n}'=\mathbf{n}/4^k n ′ = n / 4 k , where k k k is the smallest integer for which no entry of n ′ \mathbf{n}' n ′ exceeds 16, and then for n ′ = n / 4 k − 1 , … , n / 4 \mathbf{n}'=\mathbf{n}/4^{k-1},\ldots,\mathbf{n}/4 n ′ = n / 4 k − 1 , … , n /4 and finally n \mathbf{n} n , each time starting from the previous optimum. The intermediate patterns are generally not integers, but the maximizer still exists and is unique (remark after Cor. 1). The factor 4 is an arbitrary choice that worked well in our tests. With this continuation, at most 51 steps sufficed for patterns with up to 9 × 10 4 9\times10^4 9 × 1 0 4 photons per mode (Suppl., Sec. S2).
Bounded squeezing
Squeezing bound
So far, every source with σ max ( A ) < 1 \sigma_{\max}(A)<1 σ m a x ( A ) < 1 has been allowed, implying arbitrarily large squeezing. The optima without a bound often require strong squeezing. For the undisplaced random sources of Sec. III C (s 0 = 0 s_0=0 s 0 = 0 , independent standard complex Gaussian s j s_j s j , ν j k \nu_{jk} ν j k , and 1 ≤ n j ≤ 9 1\le n_j\le9 1 ≤ n j ≤ 9 ; Suppl., Table S1), the median squeezing of the most squeezed normal mode at the optimum is 15 dB for m = 1 m=1 m = 1 and 32 dB for m = 50 m=50 m = 50 . For the heralded Fock state ∣ n ⟩ \lvert n\rangle ∣ n ⟩ from a two-mode squeezed vacuum, the optimal squeezing is 20 log 10 ( n + n + 1 ) 20\log_{10}(\sqrt{n}+\sqrt{n+1}) 20 log 10 ( n + n + 1 ) dB [42 , 59 , 60 ] , which is 15.3 dB at n = 8 n=8 n = 8 . Squeezing of 15 dB has been detected directly [61 ] , but any given experiment is limited by the squeezing that its resources provide.
The example sources of Figure 4 need between 12.8 and 20 dB at their unbounded optima, so a bound of 10 or 12 dB is active for every one of them, as it is for essentially every random source at 10 dB (Suppl., Sec. S3). With the squeezing available in experiments, the optimum under a bound on the maximum available squeezing is therefore the relevant one. Following Ref. [44 ] , we impose a bound on the squeezing of every normal mode,
Figure 4. Effect of a squeezing bound with ideal detection: maximal heralding probability with the bound, p S max ( μ ) p_S^{\max}(\mu) p S m a x ( μ ) , relative to the unbounded maximum. Two heralding modes: sources that herald the balanced superpositions ( ∣ 0 ⟩ + ∣ 2 ⟩ + ∣ 4 ⟩ + ∣ 6 ⟩ ) / 2 (|0\rangle+|2\rangle+|4\rangle+|6\rangle)/2 ( ∣0 ⟩ + ∣2 ⟩ + ∣4 ⟩ + ∣6 ⟩) /2 with the patterns ( 3 , 3 ) (3,3) ( 3 , 3 ) and ( 4 , 2 ) (4,2) ( 4 , 2 ) , and ( ∣ 1 ⟩ + ∣ 3 ⟩ + ∣ 5 ⟩ + ∣ 7 ⟩ ) / 2 (|1\rangle+|3\rangle+|5\rangle+|7\rangle)/2 ( ∣1 ⟩ + ∣3 ⟩ + ∣5 ⟩ + ∣7 ⟩) /2 with ( 4 , 3 ) (4,3) ( 4 , 3 ) and ( 5 , 2 ) (5,2) ( 5 , 2 ) . For each pattern, six choices of s 1 s_1 s 1 , s 2 s_2 s 2 and ν 12 \nu_{12} ν 12 herald the target [44 ] . For ( 4 , 2 ) (4,2) ( 4 , 2 ) , ( 4 , 3 ) (4,3) ( 4 , 3 ) and ( 5 , 2 ) (5,2) ( 5 , 2 ) , two thin lines bound the range over these six sources. For ( 3 , 3 ) (3,3) ( 3 , 3 ) , the thick line shows the source with the largest p S max p_S^{\max} p S m a x , s 1 = s 2 ∗ = − 0.9462 + 0.6972 i s_1=s_2^*=-0.9462+0.6972i s 1 = s 2 ∗ = − 0.9462 + 0.6972 i , ν 12 = 1.2394 \nu_{12}=1.2394 ν 12 = 1.2394 , and the curves of the other five sources with this pattern lie within 0.015 of it. Three heralding modes: black lines show the source s j = ν j k = 0 s_j=\nu_{jk}=0 s j = ν j k = 0 with the patterns ( 1 , 1 , 1 ) (1,1,1) ( 1 , 1 , 1 ) (dashed) and ( 5 , 5 , 5 ) (5,5,5) ( 5 , 5 , 5 ) (dotted). The dotted vertical line marks 10 dB.
σ max ( A ) ≤ μ , μ = tanh r max < 1 (18) \sigma_{\max}(A)\le\mu,\qquad\mu=\tanh r_{\max}<1 \tag*{(18)} σ m a x ( A ) ≤ μ , μ = tanh r m a x < 1 (18)
In decibels the bound is 10 log 10 e 2 r max 10\log_{10}e^{2r_{\max}} 10 log 10 e 2 r m a x , and a bound of 10 dB corresponds to μ = 9 / 11 \mu=9/11 μ = 9/11 . We write p S max ( μ ) p_S^{\max}(\mu) p S m a x ( μ ) for the maximum of p S p_S p S under the bound and p S max p_S^{\max} p S m a x for the maximum without a bound.
Damping does not change B 00 = A 00 B_{00}=A_{00} B 00 = A 00 . The norm of the first column of A A A cannot exceed σ max ( A ) \sigma_{\max}(A) σ m a x ( A ) , so
σ max ( A ) 2 ≥ ∣ B 00 ∣ 2 + ∑ j ∣ A 0 j ∣ 2 > ∣ B 00 ∣ 2 \sigma_{\max}(A)^2\ge\lvert B_{00}\rvert^2+\sum_j\lvert A_{0j}\rvert^2>\lvert B_{00}\rvert^2 σ m a x ( A ) 2 ≥ ∣ B 00 ∣ 2 + j ∑ ∣ A 0 j ∣ 2 > ∣ B 00 ∣ 2
for every θ \boldsymbol{\theta} θ . The last inequality is strict because some A 0 j ≠ 0 A_{0j}\ne0 A 0 j = 0 , as otherwise all heralding modes together would be in a pure state, which H2 excludes. As all θ j → − ∞ \theta_j\to-\infty θ j → − ∞ , the heralding modes approach the vacuum and σ max ( A ) → ∣ B 00 ∣ \sigma_{\max}(A)\to\lvert B_{00}\rvert σ m a x ( A ) → ∣ B 00 ∣ . Some damping therefore satisfies the bound (18) if and only if μ > ∣ B 00 ∣ \mu>\lvert B_{00}\rvert μ > ∣ B 00 ∣ , and we assume this from now. With ∣ B 00 ∣ = tanh r 0 \lvert B_{00}\rvert=\tanh r_0 ∣ B 00 ∣ = tanh r 0 , the condition reads r max > r 0 r_{\max}>r_0 r m a x > r 0 , so the bound has to allow more squeezing than the squeezing r 0 r_0 r 0 of the heralded state.
The bound changes neither the objective in p S p_S p S nor the heralded state. It only shrinks the feasible set, and the question is whether this set is still convex. The bound (18) replaces the admissible set Ω \Omega Ω by
Ω μ = { θ ∈ R m : σ max ( Λ B Λ ) ≤ μ } . (19) \Omega_\mu=\{\boldsymbol{\theta}\in\mathbb{R}^m:\ \sigma_{\max}(\Lambda B\Lambda)\le\mu\}. \tag*{(19)} Ω μ = { θ ∈ R m : σ m a x ( Λ B Λ ) ≤ μ } . (19)
The set Ω μ \Omega_\mu Ω μ is convex, because ln σ max ( Λ B Λ ) \ln\sigma_{\max}(\Lambda B\Lambda) ln σ m a x ( Λ B Λ ) is a convex function of θ \boldsymbol{\theta} θ (Prop. 2 in App. C) and Ω μ \Omega_\mu Ω μ is the set where this function is at most ln μ \ln\mu ln μ .
The bounded problem therefore again maximizes a concave function over a convex set, which is a convex optimization problem. For directly coupled sources (H3), the maximum exists by the argument of Cor. 1, it is unique, and every local maximum is global, so a local method again finds the global maximum.
Since the bounded problem is convex, its maximum can be found with standard interior-point methods [58 Ch. 11] . We use the barrier method [58 Sec. 11.3] , which maximizes
τ ln p S ( θ ) + ln det ( μ 2 I − A A † ) (20) \tau\ln p_S(\boldsymbol{\theta})+\ln\det\left(\mu^2 I-AA^\dagger\right) \tag*{(20)} τ ln p S ( θ ) + ln det ( μ 2 I − A A † ) (20)
by Newton’s method for an increasing sequence of τ > 0 \tau>0 τ > 0 . The second term diverges at the boundary of Ω μ \Omega_\mu Ω μ and keeps the iterates inside (Suppl., Sec. S3).
Optimality conditions
If σ max < μ \sigma_{\max}<\mu σ m a x < μ at the optimum, the bound is inactive and mean matching (13) still holds. If σ max = μ \sigma_{\max}=\mu σ m a x = μ , the bound is active and the optimum lies on the boundary of Ω μ \Omega_\mu Ω μ . There the gradient n − ⟨ n ^ ⟩ \boldsymbol{n}-\langle\hat{\boldsymbol{n}}\rangle n − ⟨ n ^ ⟩ of ln p S \ln p_S ln p S need not vanish, but it must point out of Ω μ \Omega_\mu Ω μ , because no direction into Ω μ \Omega_\mu Ω μ may increase p S p_S p S [58 Sec. 4.2.3] .
To make this explicit, we use the Takagi factorization A = U diag ( σ 1 , σ 2 , … ) U T A=U\operatorname{diag}(\sigma_1,\sigma_2,\ldots)U^{T} A = U diag ( σ 1 , σ 2 , … ) U T of Sec. II, with σ 1 = σ max \sigma_1=\sigma_{\max} σ 1 = σ m a x . The columns of U U U describe the normal modes (App. B), and U j i U_{ji} U j i is the amplitude of mode j j j in the normal mode with singular value σ i \sigma_i σ i . Hence ∣ U j 1 ∣ 2 |U_{j1}|^2 ∣ U j 1 ∣ 2 is the weight of heralding mode j j j in the most squeezed normal mode. If σ 1 \sigma_1 σ 1 is nondegenerate, the outward normal of the boundary is the gradient of ln σ max \ln\sigma_{\max} ln σ m a x , whose components are ∣ U j 1 ∣ 2 |U_{j1}|^2 ∣ U j 1 ∣ 2 (App. C), and the optimality condition takes the Karush–Kuhn–Tucker form
⟨ n ^ j ⟩ = n j − ξ ∣ U j 1 ∣ 2 , ξ = d ln p S max ( μ ) d ln μ ≥ 0. (21) \langle\hat{n}_j\rangle=n_j-\xi|U_{j1}|^2,\qquad\xi=\frac{\mathrm{d}\ln p_S^{\max}(\mu)}{\mathrm{d}\ln\mu}\ge0. \tag*{(21)} ⟨ n ^ j ⟩ = n j − ξ ∣ U j 1 ∣ 2 , ξ = d ln μ d ln p S m a x ( μ ) ≥ 0. (21)
By the sensitivity interpretation of Lagrange multipliers [58 Sec. 5.6] , ξ \xi ξ is the relative gain of the maximal heralding probability per unit increase of ln μ \ln\mu ln μ . When ξ > 0 \xi>0 ξ > 0 , a source with bounded squeezing thus delivers fewer photons in total than the pattern prescribes, mostly in the heralding modes that constitute the most squeezed normal mode.
The optimum can also be degenerate where the two largest singular values both equal μ \mu μ . There the boundary of Ω μ \Omega_\mu Ω μ can have an edge (a corner for m = 2 m=2 m = 2 ), where the outward normal is not unique and a positive semidefinite 2 × 2 2\times2 2 × 2 matrix takes the place of ξ \xi ξ (Suppl., Sec. S3). Such optima occur often—for real control parameters from m = 2 m=2 m = 2 and for complex ones from m = 3 m=3 m = 3 —and the barrier method finds them (Suppl., Sec. S3).
Dependence on the bound
With the inequality (18) , p S max ( μ ) p_S^{\max}(\mu) p S m a x ( μ ) grows with μ \mu μ and saturates at p S max p_S^{\max} p S m a x once the bound exceeds the squeezing of the unbounded optimum. Fixing σ max = μ \sigma_{\max}=\mu σ m a x = μ instead, as in Ref. [44 Fig. 5] , restricts θ \theta θ to the boundary of Ω μ \Omega_\mu Ω μ , which is not convex, so the maximum decreases again beyond this squeezing and p S p_S p S can have several local maxima on the boundary (Suppl., Sec. S3). If the bound (18) is active, its unique maximum lies on this boundary and is also the global maximum there.
Figure 4 illustrates the cost of the bound for specific target states and patterns from Ref. [44 ] . For these four-component Fock-superposition sources with two heralding modes, a 10 dB bound keeps 40 to 75 % of their unbounded maximum, whereas for the three-mode example with the pattern ( 5 , 5 , 5 ) (5,5,5) ( 5 , 5 , 5 ) , whose unbounded optimum needs about 20 dB, it keeps only a few percent.
Sources whose unbounded optima need more squeezing lose more. For the accompanying random sources of Sec. III C, the median of p S max ( μ ) / p S max p_S^{\max}(\mu)/p_S^{\max} p S m a x ( μ ) / p S m a x at 10 dB falls from 0.15 for m = 2 m=2 m = 2 to 1.4 × 10 − 8 1.4\times10^{-8} 1.4 × 1 0 − 8 for m = 12 m=12 m = 12 .
Photon-number scaling
Without a bound
A heralded preparation needs on average 1 / p S max 1/p_S^{\max} 1/ p S m a x trials. Without a bound, p S max p_S^{\max} p S m a x has been found to decay as a power of the number of detected photons N = ∑ j n j N=\sum_j n_j N = ∑ j n j at a fixed number of heralding modes [42 , 44 ] . Mean matching gives a heuristic estimate of this decay.
At the optimum the pattern n \boldsymbol{n} n is the mean of the herald statistics, so p S max p_S^{\max} p S m a x is the probability that these statistics assign to their own mean. If they vary smoothly on the scale of one photon, this probability is close to the peak of a Gaussian with the same covariance matrix Σ ∗ \Sigma^* Σ ∗ ,
p S max ≈ [ ( 2 π ) m det Σ ∗ ] − 1 / 2 . (22) p_S^{\max}\approx[(2\pi)^m\det\Sigma^*]^{-1/2}. \tag*{(22)} p S m a x ≈ [( 2 π ) m det Σ ∗ ] − 1/2 . (22)
Without displacement, Eq. (17) and the Cauchy–Schwarz inequality ⟨ a ^ j 2 ⟩ 2 ≤ ⟨ n ^ j ⟩ ( ⟨ n ^ j ⟩ + 1 ) \langle\hat{a}_j^2\rangle^2\le\langle\hat{n}_j\rangle(\langle\hat{n}_j\rangle+1) ⟨ a ^ j 2 ⟩ 2 ≤ ⟨ n ^ j ⟩ (⟨ n ^ j ⟩ + 1 ) give Σ j j ∗ ≤ 2 n j ( n j + 1 ) \Sigma^*_{jj}\le2n_j(n_j+1) Σ j j ∗ ≤ 2 n j ( n j + 1 ) , and det Σ ∗ ≤ ∏ j Σ j j \det\Sigma^*\le\prod_j\Sigma_{jj} det Σ ∗ ≤ ∏ j Σ j j , so that the estimate (22) decays at most as a power of N N N .
The source with s j = ν j k = 0 s_j=\nu_{jk}=0 s j = ν j k = 0 in the form (7) , two-mode squeezed vacuum split into m m m heralding modes, heralds the Fock state ∣ N ⟩ |N\rangle ∣ N ⟩ with p S = ( 1 − ∑ j X j ) N ∏ j X j n j / n j ! p_S=(1-\sum_jX_j)^N\prod_jX_j^{n_j}/n_j! p S = ( 1 − ∑ j X j ) N ∏ j X j n j / n j ! . Mean matching gives X j = n j / ( N + 1 ) X_j=n_j/(N+1) X j = n j / ( N + 1 ) and
p S max = N ! ( N + 1 ) N + 1 ∏ j = 1 m n j n j n j ! . (23) p_S^{\max}=\frac{N!}{(N+1)^{N+1}}\prod_{j=1}^{m}\frac{n_j^{n_j}}{n_j!}. \tag*{(23)} p S m a x = ( N + 1 ) N + 1 N ! j = 1 ∏ m n j ! n j n j . (23)
Here Σ ⋆ = diag ( n ) + n n T \Sigma^\star=\operatorname{diag}(n)+n n^{\mathsf T} Σ ⋆ = diag ( n ) + n n T and det Σ ⋆ = ( N + 1 ) ∏ j n j \det\Sigma^\star=(N+1)\prod_j n_j det Σ ⋆ = ( N + 1 ) ∏ j n j , so for the pattern ( n , … , n ) (n,\ldots,n) ( n , … , n ) , p S max p_S^{\max} p S m a x decays as n − ( m + 1 ) / 2 n^{-(m+1)/2} n − ( m + 1 ) /2 , and by Stirling’s formula it lies below the estimate (22) only by the factor e / 2 π = 1.08 e/\sqrt{2\pi}=1.08 e / 2 π = 1.08 for large n j n_j n j .
Figure 5 shows the same power for the other example sources, which accounts for the power close to 2 that Ref. [44 ] found for three heralding modes. As n n n grows, the optimum approaches the boundary of Ω \Omega Ω , where one normal mode (or a degenerate pair for the Fock source) becomes infinitely squeezed and supplies almost all photons. The fluctuations of their total number give Σ ⋆ \Sigma^\star Σ ⋆ one eigenvalue of order n 2 n^2 n 2 , and their distribution over the heralding modes gives it m − 1 m-1 m − 1 eigenvalues of order n n n , so det Σ ⋆ ∝ n m + 1 \det\Sigma^\star\propto n^{m+1} det Σ ⋆ ∝ n m + 1 . At moderate n n n , the slope can still differ from ( m + 1 ) / 2 (m+1)/2 ( m + 1 ) /2 by up to 0.5 [Fig. 5(b)].
Not every source follows this power law. A displacement can lower the power, for example to the decay p S max ∝ n − 3 / 4 p_S^{\max}\propto n^{-3/4} p S m a x ∝ n − 3/4 of photon-added coherent states [42 ] , which the estimate (22) reproduces. The estimate fails if the optimal herald statistics vary strongly between neighboring patterns (Suppl., Sec. S1).
With a bound
A squeezing bound makes p S max p_S^{\max} p S m a x decay exponentially with the number of detected photons, because the photons must come from normal modes with bounded squeezing, and a fixed displacement supplies only a bounded mean number of them. At a fixed number of heralding modes and fixed control parameters, ln p S max \ln p_S^{\max} ln p S m a x decreases asymptotically by at least ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) per detected photon, without displacement for every source and with a fixed displacement b b b for directly coupled sources (H3; Prop. 3 in App. D). For the heralded Fock state, σ max ( A ) = X \sigma_{\max}(A)=\sqrt{X} σ m a x ( A ) = X and p S = ( 1 − X ) X n p_S=(1-X)X^n p S = ( 1 − X ) X n , so for μ 2 < n / ( n + 1 ) \mu^2<n/(n+1) μ 2 < n / ( n + 1 ) the bound is active, p S max ( μ ) = ( 1 − μ 2 ) μ 2 n p_S^{\max}(\mu)=(1-\mu^2)\mu^{2n} p S m a x ( μ ) = ( 1 − μ 2 ) μ 2 n , and ln p S max \ln p_S^{\max} ln p S m a x decreases by exactly 2 ln ( 1 / μ ) 2\ln(1/\mu) 2 ln ( 1/ μ ) per photon.
For random sources with two and three heralding modes, fits give a decrease of 1.4 to 2 times ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) per photon (Suppl., Sec. S1). At 10 dB, p S max p_S^{\max} p S m a x then falls by a factor of about 1.3 to 1.5 per detected photon. A displacement of the heralding mode of the Fock-state source, which then heralds photon-added coherent states, keeps this decrease per photon but raises p S max p_S^{\max} p S m a x by a factor that grows as n − 1 / 4 e 2 ∣ b ∣ n n^{-1/4}e^{2|b|\sqrt{n}} n − 1/4 e 2∣ b ∣ n for large n n n (App. D).
Imperfect detection
The results of Secs. III to V rely on two properties:
(P1) The detector projects the heralding modes onto a single photon-number pattern, so damping changes the herald statistics but not the heralded state.
(P2) For every θ \theta θ , the damped state is again in the form (1) , which squeezers, an interferometer and displacements can prepare, so optimization over θ \theta θ is an optimization over sources of the same kind.
Either property can fail:
For a mixed source ρ \rho ρ , the states Λ ^ ρ Λ ^ / Tr ( Λ ^ ρ Λ ^ ) \hat{\Lambda}\rho\hat{\Lambda}/\operatorname{Tr}(\hat{\Lambda}\rho\hat{\Lambda}) Λ ^ ρ Λ ^ / Tr ( Λ ^ ρ Λ ^ ) still form an exponential family, but the same noisy source cannot in general prepare them, so P2 fails.
If several detection patterns are accepted [62 ] , P1 fails and the heralded state is then a mixture that depends on θ \theta θ (unless all accepted patterns herald the same state) and p S p_S p S is a sum of log-concave functions, which can have several maxima (App. § 1.5.5 ).
With imperfect detection, P1 fails as well. The registered pattern no longer fixes the photon numbers that arrive at the detectors, so p S p_S p S is an average of likelihoods, and the heralded state is in general mixed and depends on θ \theta θ (Prop. 4 in App. E).
Real PNR detectors lose photons and register dark counts [63 , 64 ] . We treat loss, the simplest detector model, and App. E treats dark counts and other models. Since the damping now also changes the heralded state, maximizing p S p_S p S compares sources that herald different states. A high p S p_S p S requires strong squeezing, which makes the heralded state more sensitive to loss, so the damping depresses p S p_S p S against the fidelity (Sec. VI.E). The maximum of p S p_S p S alone therefore does not determine the best damping, but its landscape at least shows which results of Sec. III are applicable under imperfect detection.
Detector model
We write n \boldsymbol{n} n for the registered pattern, k \boldsymbol{k} k for the photon numbers that arrive at the detectors, and g n ( k ) g_{\boldsymbol{n}}(\boldsymbol{k}) g n ( k ) for the probability that the detectors register n \boldsymbol{n} n when k \boldsymbol{k} k arrive. A detector of efficiency η j \eta_j η j registers each arriving photon independently with probability η j \eta_j η j , so that
g n ( k ) = ∏ j ( k j n j ) η j n j ( 1 − η j ) k j − n j . g_{\boldsymbol{n}}(\boldsymbol{k})=\prod_j\binom{k_j}{n_j}\eta_j^{n_j}(1-\eta_j)^{k_j-n_j}. g n ( k ) = j ∏ ( n j k j ) η j n j ( 1 − η j ) k j − n j .
Losses between interferometer and detectors and losses equal in all modes after squeezers act as lower detector efficiency (App. E).
Gradient and Hessian
The heralding probability is p S ( θ ) = ∑ k g n ( k ) p θ ( k ) p_S(\boldsymbol{\theta})=\sum_{\boldsymbol{k}}g_{\boldsymbol{n}}(\boldsymbol{k})p_{\boldsymbol{\theta}}(\boldsymbol{k}) p S ( θ ) = ∑ k g n ( k ) p θ ( k ) , and since ∇ p θ ( k ) = ( k − ⟨ n ^ ⟩ ) p θ ( k ) \nabla p_{\boldsymbol{\theta}}(\boldsymbol{k})=(\boldsymbol{k}-\langle\hat{\boldsymbol{n}}\rangle)p_{\boldsymbol{\theta}}(\boldsymbol{k}) ∇ p θ ( k ) = ( k − ⟨ n ^ ⟩) p θ ( k ) by Eqs. (11) and (12) ,
∇ ln p S = ⟨ k ⟩ q − ⟨ n ^ ⟩ , ∇ 2 ln p S = Cov q ( k ) − Σ (24) \nabla\ln p_S=\langle\boldsymbol{k}\rangle_q-\langle\hat{\boldsymbol{n}}\rangle,\qquad\nabla^2\ln p_S=\operatorname{Cov}_q(\boldsymbol{k})-\Sigma \tag*{(24)} ∇ ln p S = ⟨ k ⟩ q − ⟨ n ^ ⟩ , ∇ 2 ln p S = Cov q ( k ) − Σ (24)
where q ( k ) = g n ( k ) p θ ( k ) / p S q(\boldsymbol{k})=g_{\boldsymbol{n}}(\boldsymbol{k})p_{\boldsymbol{\theta}}(\boldsymbol{k})/p_S q ( k ) = g n ( k ) p θ ( k ) / p S is the distribution of the photon numbers given the registered pattern (App. E).
At a stationary point, ⟨ n ^ ⟩ = ⟨ k ⟩ q \langle\hat{\boldsymbol{n}}\rangle=\langle\boldsymbol{k}\rangle_q ⟨ n ^ ⟩ = ⟨ k ⟩ q , so the source delivers on average as many photons as arrive at the detectors given the registered pattern. The term − Σ -\Sigma − Σ bends ln p S \ln p_S ln p S downward, while the term Cov q ( k ) \operatorname{Cov}_q(\boldsymbol{k}) Cov q ( k ) bends it upward and vanishes for ideal detection. This term can make ln p S \ln p_S ln p S nonconcave, but that alone does not give several maxima, and for one heralding mode p S p_S p S still has at most one local maximum (Sec. VI C). In statistics, Eq. (24) is the missing-information principle [65 , 66 ] . The information carried by the registered pattern equals the information of the arrived photon numbers minus the information lost because they are not observed.
Uniqueness
Theorem 2. Let m = 1 m=1 m = 1 with the heralding mode not in a pure state (H2), and let the detector register n \boldsymbol{n} n with probability g n ( k ) g_{\boldsymbol{n}}(\boldsymbol{k}) g n ( k ) when k \boldsymbol{k} k photons arrive. Assume that g n g_{\boldsymbol{n}} g n is unimodal and nonconstant. Then p S ( θ ) = ∑ k g n ( k ) p θ ( k ) p_S(\boldsymbol{\theta})=\sum_{\boldsymbol{k}}g_{\boldsymbol{n}}(\boldsymbol{k})p_{\boldsymbol{\theta}}(\boldsymbol{k}) p S ( θ ) = ∑ k g n ( k ) p θ ( k ) has at most one local maximum on Ω \Omega Ω , which is global on Ω \Omega Ω if it exists. The same holds on Ω μ \Omega_\mu Ω μ for every bound μ < 1 \mu<1 μ < 1 .
Unimodality means that the detector response g n ( k ) g_{\boldsymbol{n}}(\boldsymbol{k}) g n ( k ) first rises and then falls with k \boldsymbol{k} k (including monotone responses, such as threshold detectors), while nonconstancy excludes trivial responses independent of k \boldsymbol{k} k . Loss with any nonzero efficiency satisfies these assumptions, and so does loss followed by Poissonian dark counts, whose g n g_{\boldsymbol{n}} g n is log-concave in k \boldsymbol{k} k (Lemma 1 in App. E).
For loss and n ≥ 1 n\geq1 n ≥ 1 the maximum exists, with dark counts it need not. The proof (App. E) applies Descartes’ rule of signs [67 ] to the identity
e Φ ( θ ) [ p S ( θ ) − a ] = ∑ k [ g n ( k ) − a ] W k X k , X = e θ , (25) e^{\Phi(\theta)}[p_S(\theta)-a]=\sum_k[g_n(k)-a]W_kX^k,\qquad X=e^\theta, \tag*{(25)} e Φ ( θ ) [ p S ( θ ) − a ] = k ∑ [ g n ( k ) − a ] W k X k , X = e θ , (25)
for every a > 0 a>0 a > 0 . Since g n g_n g n is unimodal, the coefficients change sign at most twice, and then in the order − , + , − -,+,- − , + , − . So does p S − a p_S-a p S − a as a function of θ \theta θ , whereas two separate local maxima would give the order − , + , − , + -,+,-,+ − , + , − , + for some a a a .
With one heralding mode, damping makes all photon numbers larger or smaller together, and p S p_S p S inherits the single peak of g n g_n g n . With several heralding modes, damping can also move photons between them. Along such a direction a power of e t e^t e t collects patterns for which g n ( k ) − a g_n(\boldsymbol{k})-a g n ( k ) − a has both signs, and the sign count fails. Uniqueness then holds only close to ideal detection. For directly coupled sources (H3), patterns with n j ≥ 1 n_j\geq1 n j ≥ 1 (H1) and no squeezing bound, the maximum is unique if all efficiencies exceed a threshold η 0 < 1 \eta_0<1 η 0 < 1 (Prop. 5 in App. E). Above it, Cov q ( k ) \operatorname{Cov}_q(\boldsymbol{k}) Cov q ( k ) is smaller than Σ \Sigma Σ on a compact convex set that contains all stationary points, so ln p S \ln p_S ln p S is strictly concave there by Eq. (24) . At lower efficiencies, and with a bound even where the unbounded problem has a single maximum, several maxima can occur.
Several maxima
Several maxima occur mainly for sources that are symmetric under exchange of heralding modes. Figure 6 shows an example with a bound of 16 dB, which has a single maximum on the symmetry axis for ideal detection. Under loss, a stationary point requires the source to deliver more photons than are registered [ Eq. (24) ], and on the axis the bound limits how many it can deliver. At low efficiency two mirror-image maxima near the corners of Ω μ \Omega_\mu Ω μ are therefore higher, and above η c = 0.367 \eta_c=0.367 η c = 0.367 the maximum on the axis is again the only one (Figure 6 ).
Figure 6. Several maxima under loss for the symmetric source s 1 = s 2 = − 0.5 s_1=s_2=-0.5 s 1 = s 2 = − 0.5 , ν 12 = 5 \nu_{12}=5 ν 12 = 5 , the pattern ( 4 , 4 ) (4,4) ( 4 , 4 ) , a bound of 16 dB and detectors of efficiency η \eta η : ln p S \ln p_S ln p S along the boundary of Ω μ \Omega_\mu Ω μ , which contains all local maxima at these efficiencies, against θ 1 − θ 2 \theta_1-\theta_2 θ 1 − θ 2 , relative to its largest value. Stars mark the local maxima, and dotted lines the corners of Ω μ \Omega_\mu Ω μ , where the two largest singular values of A A A both equal μ \mu μ . The best point on the symmetry axis is at θ 1 − θ 2 = 0 \theta_1-\theta_2=0 θ 1 − θ 2 = 0 .
In our searches (Suppl., Sec. S4), several maxima occurred for symmetric sources at efficiencies up to 0.95 (and up to η c = 0.91 \eta_c=0.91 η c = 0.91 for the sources of Suppl., Figure S3 ), but at efficiencies of 0.9 and above the best maximum exceeded the best symmetric point by less than 1%. The 24 two-mode sources of Figure 4 had a single maximum each, at most 5.7% above p S p_S p S at their optimum for ideal detection.
Figure S3. Several maxima under loss for four symmetric sources, s 1 = s 2 = s s_1=s_2=s s 1 = s 2 = s with ( s , ν 12 ) (s,\nu_{12}) ( s , ν 12 ) given in the legend of (b) and the pattern ( n , n ) (n,n) ( n , n ) . (a) Largest efficiency η c \eta_c η c at which p S p_S p S has several local maxima, against the squeezing bound, for n = 8 n=8 n = 8 (solid) and n = 24 n=24 n = 24 (dashed). The markers at ∞ \infty ∞ give η c \eta_c η c without a bound (filled for n = 8 n=8 n = 8 , open for n = 24 n=24 n = 24 ). (b) The same sources with n = 24 n=24 n = 24 : relative increase of p S p_S p S at the best local maximum over the best point on the symmetry axis, at η = 0.8 \eta=0.8 η = 0.8 (solid) and η = 0.5 \eta=0.5 η = 0.5 (dashed).
For directly coupled sources with at least one photon per heralding mode, the maximum exists, is unique and is characterized by mean matching, answering the question of uniqueness raised in Ref. [44 ] . Newton’s method finds it within tens of milliseconds and the optimization stays practical for many heralding modes and large patterns.
A squeezing bound keeps the problem convex, so its maximum is again unique. At an active bound, which is the typical case for current squeezers, the optimal source delivers fewer photons than the pattern prescribes [Eq. (21) ]. Mean matching also gives a heuristic Gaussian estimate of the maximal heralding probability. Without a squeezing bound and without displacement, this estimate decays as a power of the number of detected photons, specifically giving the exponent ( m + 1 ) / 2 (m+1)/2 ( m + 1 ) /2 for m m m heralding modes with n n n photons each for a heralded Fock state and the other undisplaced examples we computed. Coherent displacements can alter this power [42 ] . A squeezing bound makes this decay exponential, also for directly coupled sources with displacement.
Imperfect detection breaks property P1, that the detectors project onto a single pattern. With detector loss, the heralding probability for one heralding mode still has at most one local maximum, with or without a bound. For more heralding modes the maximum is unique at efficiencies close to one without a bound, and otherwise several maxima are possible, mainly for symmetric sources. We know of no general criterion for the global maximum under imperfect detection, so a search over the local maxima is needed, for which the optimum for ideal detection with the pattern n j / η j n_j/\eta_j n j / η j is a good starting point. Under loss the damping also changes the heralded state and trades the heralding probability against the fidelity.
Target-state design over the control parameters is not convex in general and remains open. As discussed in Ref. [44 ] , the target state may fix the control parameters up to a discrete set of candidates to compare after damping optimization, or leave some control parameters undetermined, allowing further optimization of p S p_S p S .
Since no criterion identifies the global maximum, a search over the local maxima, including the boundary of Ω μ \Omega_\mu Ω μ , is needed. A good starting point is the optimum for ideal detection with the non-integer pattern n j / η j n_j/\eta_j n j / η j , because a detector of efficiency η j \eta_j η j registers on average the fraction η j \eta_j η j of the arriving photons. For random two-mode sources it came within about 1 % 1\% 1% of the largest p S p_S p S (Suppl., Figure S4 ), but for symmetric sources it lies on the symmetry axis and misses the maxima away from it.
Figure S4. Starting point under imperfect detection, for 200 random sources with two heralding modes (text): relative loss 1 − p S / p S b e s t 1-p_S/p_S^{\mathrm{best}} 1 − p S / p S best (lower is better) with respect to the largest p S p_S p S found by the search, comparing the ideal-detection optimum for the rescaled pattern ( n − d ) / η (\boldsymbol{n}-\boldsymbol{d})/\eta ( n − d ) / η (heuristic, blue) against the naive ideal-detection optimum for the registered pattern n \boldsymbol{n} n (orange). (a) Without a bound, one marker per source and bars at the medians. Losses below 10 − 7 10^{-7} 1 0 − 7 are drawn at 10 − 7 10^{-7} 1 0 − 7 . (b) Median (solid) and largest (dashed) loss over all sources against the squeezing bound.
Heralding probability and fidelity
We keep the control parameters chosen for ideal detection and vary only the damping. Optimizing the control parameters themselves for imperfect detection is part of target-state design (Sec. II B). With imperfect detection the heralded state ρ \rho ρ is mixed, and the damping changes its fidelity F = ⟨ ψ ∣ ρ ∣ ψ ⟩ F=\langle\psi|\rho|\psi\rangle F = ⟨ ψ ∣ ρ ∣ ψ ⟩ with the target ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ heralded by ideal detection. Figure 7 shows this for the two-mode source of Figure 5 that heralds ( ∣ 0 ⟩ + ∣ 2 ⟩ + ∣ 4 ⟩ + ∣ 6 ⟩ ) / 2 (|0\rangle+|2\rangle+|4\rangle+|6\rangle)/2 ( ∣0 ⟩ + ∣2 ⟩ + ∣4 ⟩ + ∣6 ⟩) /2 .
Figure 5. Maximal heralding probability for the patterns ( n , … , n ) (n,\ldots,n) ( n , … , n ) at fixed control parameters. Lines: the Fock state of Eq. (23) with m = 1 m=1 m = 1 , 2 2 2 and 3 3 3 heralding modes. Markers, from Newton’s method and the exact herald statistics: three sources with three heralding modes [44 Fig. 6] , s j = i s_j=i s j = i (circles) and s j = 1 s_j=1 s j = 1 (squares) with ν 12 = 6 / 7 \nu_{12}=6/7 ν 12 = 6/7 , ν 13 = − 5 / 11 \nu_{13}=-5/11 ν 13 = − 5/11 and ν 23 = 2 / 3 \nu_{23}=2/3 ν 23 = 2/3 , and s j = 2 s_j=2 s j = 2 with ν j k = 1 \nu_{jk}=1 ν j k = 1 (triangles), and the source s 1 = s 2 ∗ = − 0.9462 + 0.6972 i s_1=s_2^*=-0.9462+0.6972i s 1 = s 2 ∗ = − 0.9462 + 0.6972 i , ν 12 = 1.2394 \nu_{12}=1.2394 ν 12 = 1.2394 , which with the pattern ( 3 , 3 ) (3,3) ( 3 , 3 ) heralds ( ∣ 0 ⟩ + ∣ 2 ⟩ + ∣ 4 ⟩ + ∣ 6 ⟩ ) / 2 (|0\rangle+|2\rangle+|4\rangle+|6\rangle)/2 ( ∣0 ⟩ + ∣2 ⟩ + ∣4 ⟩ + ∣6 ⟩) /2 (diamonds). (a) p S max p_S^{\max} p S m a x . (b) The log-log slope − d ln p S max / d ln n -\mathrm{d}\ln p_S^{\max}/\mathrm{d}\ln n − d ln p S m a x / d ln n of (a), which equals p p p where p S max ∝ n − p p_S^{\max}\propto n^{-p} p S m a x ∝ n − p , for the markers from consecutive values of n n n . Dashed lines mark ( m + 1 ) / 2 (m+1)/2 ( m + 1 ) /2 .
Figure 7. Heralding probability against fidelity under loss for the source s 1 = s 2 ∗ = − 0.9462 + 0.6972 i s_1=s_2^*=-0.9462+0.6972i s 1 = s 2 ∗ = − 0.9462 + 0.6972 i , ν 12 = 1.2394 \nu_{12}=1.2394 ν 12 = 1.2394 with the pattern ( 3 , 3 ) (3,3) ( 3 , 3 ) , which heralds ( ∣ 0 ⟩ + ∣ 2 ⟩ + ∣ 4 ⟩ + ∣ 6 ⟩ ) / 2 (|0\rangle+|2\rangle+|4\rangle+|6\rangle)/2 ( ∣0 ⟩ + ∣2 ⟩ + ∣4 ⟩ + ∣6 ⟩) /2 , at η = 0.9 \eta=0.9 η = 0.9 , 0.95 0.95 0.95 and 0.99 0.99 0.99 , without a squeezing bound: infidelity 1 − F 1-F 1 − F of the heralded state with the state heralded by ideal detection, against p S p_S p S , along the line of uniform damping that starts at the maximum of p S p_S p S (star). Circles mark the largest p S p_S p S with F ≥ 0.9 F\geq0.9 F ≥ 0.9 at η = 0.9 \eta=0.9 η = 0.9 , with F ≥ 0.9 F\geq0.9 F ≥ 0.9 and 0.95 0.95 0.95 at η = 0.95 \eta=0.95 η = 0.95 , and with F ≥ 0.98 F\geq0.98 F ≥ 0.98 and 0.99 0.99 0.99 at η = 0.99 \eta=0.99 η = 0.99 .
Starting from the maximum of p S p_S p S , attenuating both heralding modes more strongly lowers p S p_S p S and raises F F F , so the damping trades p S p_S p S against F F F . At η = 0.95 \eta=0.95 η = 0.95 , F = 0.815 F=0.815 F = 0.815 at the maximum of p S p_S p S , and requiring F ≥ 0.9 F\geq0.9 F ≥ 0.9 or F ≥ 0.95 F\geq0.95 F ≥ 0.95 lowers p S p_S p S by factors of 21 and 1350.
Conclusions
We have shown that, with ideal detection of one pattern, the damping optimization problem, maximizing the heralding probability at fixed control parameters, can be solved efficiently. The damped photon statistics form an exponential family, in which the heralding probability is the likelihood of the damping and is log-concave in the logarithmic damping parameters. For every pure Gaussian source, with or without displacement, every local maximum of the heralding probability is global.
Acknowledgments
We thank Petr Marek for carefully reading through an early version of this work. The authors used OpenAI’s ChatGPT-6 Astra for assistance with selected reasoning, and help in simplifying the proof of Thm. 1. The authors used Anthropic’s Claude Opus 5.5 for assistance with visualizations, grammar, and general presentation, as well as to perform validity checks and identify gaps and unstated assumptions. The authors acknowledge support from IGA-PrF-2026-005. VK acknowledges support from the Danish National Research Foundation, Center for Macroscopic Quantum States (bigQ, DNRF0142) and the EU project CLUSTEC (grant agreement no. 101080173), and a research grant (VIL78622) from Villum Fonden.
Data availability
The code and data that reproduce the figures, tables and numbers of this article are available in Ref. [50 ] .
Exponential families
Let the outcomes be the vectors k ∈ N 0 m \boldsymbol{k} \in\mathbb{N}_0^m k ∈ N 0 m of photon numbers registered by the m m m heralding detectors. A family of distributions
p θ ( k ) = W k e θ ⋅ k − Φ ( θ ) , Φ ( θ ) = ln ∑ k W k e θ ⋅ k (26) p_{\theta}(\boldsymbol{k}) = W_{\boldsymbol{k}} e^{\boldsymbol{\theta}\cdot\boldsymbol{k}-\Phi(\boldsymbol{\theta})}, \qquad\Phi(\boldsymbol{\theta}) = \ln\sum_{\boldsymbol{k}} W_{\boldsymbol{k}} e^{\boldsymbol{\theta}\cdot\boldsymbol{k}} \tag*{(26)} p θ ( k ) = W k e θ ⋅ k − Φ ( θ ) , Φ ( θ ) = ln k ∑ W k e θ ⋅ k (26)
is an exponential family, and Table I lists its ingredients. The weights W k ≥ 0 W_{\boldsymbol{k}} \ge0 W k ≥ 0 , called the carrier , need not be normalizable [46 Ch. 1] . The set of parameters for which the sum (A1) converges is the natural parameter space .
By Eq. (11) , the herald statistics of the damped sources form such a family, with the carrier (8). In the interior of the natural parameter space, Φ \Phi Φ may be differentiated term by term [68 Prop. 3.1] , which gives Eq. (12) .
Proposition 1. For the sources of Eq. (4) , the natural parameter space is Ω \Omega Ω , and Ω \Omega Ω is open.
Proof. By Eq. (6) , e Φ ( θ ) = ⟨ G ~ A , β ∣ G ~ A , β ⟩ e^{\Phi(\boldsymbol{\theta})} = \langle\widetilde{G}_{A,\beta}|\widetilde{G}_{A,\beta}\rangle e Φ ( θ ) = ⟨ G A , β ∣ G A , β ⟩ , a sum of nonnegative terms that may diverge. App. B shows that it is finite if and only if σ max ( Λ B Λ ) < 1 \sigma_{\max}(\Lambda B\Lambda) < 1 σ m a x ( Λ B Λ ) < 1 , with or without displacement. The set Ω \Omega Ω is open because σ max \sigma_{\max} σ m a x depends continuously on θ \boldsymbol{\theta} θ .
The family is regular if its natural parameter space is open, which holds here by Prop. 1. It is minimal if no combination ∑ j v j k j \sum_j v_j k_j ∑ j v j k j with v ≠ 0 \boldsymbol{v} \ne\boldsymbol{0} v = 0 takes the same value for every k \boldsymbol{k} k in supp W = { k : W k > 0 } \operatorname{supp} W = \{\boldsymbol{k}: W_{\boldsymbol{k}} > 0\} supp W = { k : W k > 0 } . Minimality is equivalent to Σ ≻ 0 \Sigma\succ0 Σ ≻ 0 on Ω \Omega Ω , and hence to strict concavity of ln p S \ln p_S ln p S . Sources in which no set of heralding modes is in a pure state (H2) are minimal by the proof of Thm. 1.
For regular minimal exponential families, the mean-value parametrization theorem [46 Thm. 3.6] , [68 Prop. 3.2, Thm. 3.3] states that the map θ ↦ ⟨ n ^ ⟩ \boldsymbol{\theta} \mapsto\langle\hat{\boldsymbol{n}}\rangle θ ↦ ⟨ n ^ ⟩ is a one-to-one map of Ω \Omega Ω onto int conv supp W \operatorname{int} \operatorname{conv} \operatorname{supp} W int conv supp W . A directly coupled source (H3) has W k > 0 W_{\boldsymbol{k}} > 0 W k > 0 for every pattern k \boldsymbol{k} k (App. B), so this hull is the closed nonnegative orthant, with the interior { n : n j > 0 ∀ j } \{\boldsymbol{n}: n_j > 0\ \forall j\} { n : n j > 0 ∀ j } .
Heralding modes in a pure state
If a set of heralding modes is in a pure state, the family can fail to be minimal. The directions with v T Σ v = Var ( v ⋅ n ^ ) = 0 \boldsymbol{v}^{T}\Sigma\boldsymbol{v} = \operatorname{Var}(\boldsymbol{v}\cdot\hat{\boldsymbol{n}}) = 0 v T Σ v = Var ( v ⋅ n ^ ) = 0 form the subspace
V = { v : v ⋅ k = 0 for all k ∈ supp W } , (27) \mathcal{V} = \{\boldsymbol{v}: \boldsymbol{v}\cdot\boldsymbol{k} = 0\ \text{for all }\boldsymbol{k} \in\operatorname{supp} W\}, \tag*{(27)} V = { v : v ⋅ k = 0 for all k ∈ supp W } , (27)
which is identical at every θ \boldsymbol{\theta} θ , because v ⋅ k \boldsymbol{v}\cdot\boldsymbol{k} v ⋅ k must be constant on supp W \operatorname{supp} W supp W and 0 ∈ supp W \boldsymbol{0} \in\operatorname{supp} W 0 ∈ supp W . By Eq. (6) , damping along v ∈ V \boldsymbol{v} \in\mathcal{V} v ∈ V multiplies every nonzero Fock amplitude by e v ⋅ k / 2 = 1 e^{\boldsymbol{v}\cdot\boldsymbol{k}/2} = 1 e v ⋅ k /2 = 1 , so it does not change the source. If θ ⋆ \boldsymbol{\theta}^{\star} θ ⋆ and θ ⋆ + v \boldsymbol{\theta}^{\star}+\boldsymbol{v} θ ⋆ + v are both maximizers, the concave function ln p S \ln p_S ln p S is constant between them, so v ∈ V \boldsymbol{v} \in\mathcal{V} v ∈ V . The maximizers, if they exist, therefore form the set θ ⋆ + V \boldsymbol{\theta}^{\star}+\mathcal{V} θ ⋆ + V , and all of them give the same damped source. By Thm. 1, V ≠ { 0 } \mathcal{V} \ne\{\boldsymbol{0}\} V = { 0 } only if a set of heralding modes is in a pure state.
Gain at the optimum
Under H2, for admissible θ \boldsymbol{\theta} θ and n j ≥ 1 n_j \ge1 n j ≥ 1 , the log-ratio
ln p θ ⋆ ( k ) p θ ( k ) = ( θ ⋆ − θ ) ⋅ k − Φ ( θ ⋆ ) + Φ ( θ ) (28) \ln\frac{p_{\boldsymbol{\theta}^{\star}}(\boldsymbol{k})}{p_{\boldsymbol{\theta}}(\boldsymbol{k})} = (\boldsymbol{\theta}^{\star}-\boldsymbol{\theta})\cdot\boldsymbol{k} - \Phi(\boldsymbol{\theta}^{\star}) + \Phi(\boldsymbol{\theta}) \tag*{(28)} ln p θ ( k ) p θ ⋆ ( k ) = ( θ ⋆ − θ ) ⋅ k − Φ ( θ ⋆ ) + Φ ( θ ) (28)
is linear in k \boldsymbol{k} k . Its average over p θ ⋆ p_{\boldsymbol{\theta}^{\star}} p θ ⋆ , whose mean is n \boldsymbol{n} n , therefore equals its value at k = n \boldsymbol{k}=\boldsymbol{n} k = n ,
ln p S ( θ ⋆ ) − ln p S ( θ ) = D K L ( p θ ⋆ ∥ p θ ) \ln p_S(\boldsymbol{\theta}^{\star})-\ln p_S(\boldsymbol{\theta}) = D_{\mathrm{KL}}(p_{\boldsymbol{\theta}^{\star}}\mathbin{\|}p_{\boldsymbol{\theta}}) ln p S ( θ ⋆ ) − ln p S ( θ ) = D KL ( p θ ⋆ ∥ p θ )
ln p S ( θ ⋆ ) − ln p S ( θ ) ≃ 1 2 ( n − ⟨ n ^ ⟩ ) T Σ − 1 ( n − ⟨ n ^ ⟩ ) , (29) \phantom{\ln p_S(\boldsymbol{\theta}^{\star})-\ln p_S(\boldsymbol{\theta})} \simeq\frac{1}{2}(\boldsymbol{n}-\langle\hat{\boldsymbol{n}}\rangle)^T\Sigma^{-1}(\boldsymbol{n}-\langle\hat{\boldsymbol{n}}\rangle), \tag*{(29)} l n p S ( θ ⋆ ) − l n p S ( θ ) ≃ 2 1 ( n − ⟨ n ^ ⟩ ) T Σ − 1 ( n − ⟨ n ^ ⟩) , (29)
with D K L ( p ∥ p ′ ) = ∑ k p ( k ) ln [ p ( k ) / p ′ ( k ) ] D_{\mathrm{KL}}(p\mathbin{\|}p') = \sum_{\boldsymbol{k}} p(\boldsymbol{k})\ln[p(\boldsymbol{k})/p'(\boldsymbol{k})] D KL ( p ∥ p ′ ) = ∑ k p ( k ) ln [ p ( k ) / p ′ ( k )] the Kullback–Leibler divergence. The second line follows from two expansions around θ ∈ Δ = θ ⋆ − θ \boldsymbol{\theta} \in\Delta= \boldsymbol{\theta}^{\star}-\boldsymbol{\theta} θ ∈ Δ = θ ⋆ − θ .
Averaging Eq. (28) gives D K L = Δ ⋅ ∇ Φ ( θ ⋆ ) − Φ ( θ ⋆ ) + Φ ( θ ) ≃ 1 2 Δ T Σ Δ D_{\mathrm{KL}} = \Delta\cdot\nabla\Phi(\boldsymbol{\theta}^{\star})-\Phi(\boldsymbol{\theta}^{\star})+\Phi(\boldsymbol{\theta}) \simeq\frac{1}{2}\Delta^T\Sigma\Delta D KL = Δ ⋅ ∇Φ ( θ ⋆ ) − Φ ( θ ⋆ ) + Φ ( θ ) ≃ 2 1 Δ T ΣΔ , and since ∇ ⟨ n ^ ⟩ = Σ \nabla\langle\hat{\boldsymbol{n}}\rangle= \Sigma ∇ ⟨ n ^ ⟩ = Σ by Eq. (12) , the mean photon numbers change by n − ⟨ n ^ ⟩ ≃ Σ Δ \boldsymbol{n}-\langle\hat{\boldsymbol{n}}\rangle\simeq\Sigma\Delta n − ⟨ n ^ ⟩ ≃ ΣΔ . Eliminating Δ \Delta Δ gives the approximation, with n \boldsymbol{n} n and Σ \Sigma Σ taken at θ \boldsymbol{\theta} θ and a third-order error in Δ \Delta Δ . The right-hand side is half the squared Newton decrement, so the stopping rule of Suppl., Sec. S2, approximates the remaining gain in ln p S \ln p_S ln p S .
The basic objects of the optimization are the matrix A A A and the displacement β \boldsymbol{\beta} β of the source (1) . Written in its normal modes, the source is a product of squeezed coherent states, which gives the norm Eq. (2) , the admissible set Ω \Omega Ω and the photon-number moments. The Bargmann representation then allows us to find the heralded state. Finally, we relate mean matching to the polynomial equations of Ref. [44 ] and show that heralding modes that register no photon can be removed (H1). Displacement is included unless stated otherwise.
Normal modes and normalization
The Takagi factorization A = U diag ( σ 1 , … , σ m + 1 ) U T A = U\operatorname{diag}(\sigma_1,\ldots,\sigma_{m+1})U^T A = U diag ( σ 1 , … , σ m + 1 ) U T of the complex symmetric matrix A A A , with a unitary U U U and the singular values σ 1 ≥ ⋯ ≥ σ m + 1 ≥ 0 \sigma_1 \ge\cdots\ge\sigma_{m+1} \ge0 σ 1 ≥ ⋯ ≥ σ m + 1 ≥ 0 [52 Cor. 4.4.4(c)] , [51 ] , defines the normal-mode operators c ^ i = ∑ j = 0 m U j i a ^ j \hat{c}_i = \sum_{j=0}^{m} U_{ji}\hat{a}_j c ^ i = ∑ j = 0 m U j i a ^ j . The columns U i U_i U i of U U U , the Takagi vectors, satisfy A U i ∗ = σ i U i AU_i^{*} = \sigma_i U_i A U i ∗ = σ i U i . In the normal modes, the source is a product of displaced single-mode squeezed vacua,
∣ G ~ A , β ⟩ = ⨂ i exp ( σ i 2 c ^ i † 2 + γ i c ^ i † ) ∣ 0 ⟩ i , (30) |\widetilde{G}_{A,\beta}\rangle= \bigotimes_i \exp\left(\frac{\sigma_i}{2}\hat{c}_i^{\dagger2}+\gamma_i\hat{c}_i^\dagger\right)|0\rangle_i, \tag*{(30)} ∣ G A , β ⟩ = i ⨂ exp ( 2 σ i c ^ i † 2 + γ i c ^ i † ) ∣0 ⟩ i , (30)
with σ i = tanh r i \sigma_i = \tanh r_i σ i = tanh r i and γ = U † β \boldsymbol{\gamma}=U^\dagger\boldsymbol{\beta} γ = U † β .
To find when the source can be normalized, we use the Bargmann representation. A state with the Fock amplitudes c k c_{\mathbf{k}} c k is there the function f ( z ) = ∑ k c k ∏ j z j k j / k j ! f(z)=\sum_{\mathbf{k}}c_{\mathbf{k}}\prod_j z_j^{k_j}/\sqrt{k_j!} f ( z ) = ∑ k c k ∏ j z j k j / k j ! of z ∈ C m + 1 z\in\mathbb{C}^{m+1} z ∈ C m + 1 , with the squared norm
∥ f ∥ 2 = π − m − 1 ∫ d 2 ( m + 1 ) z ∣ f ( z ) ∣ 2 e − ∣ z ∣ 2 . \lVert f\rVert^2=\pi^{-m-1}\int\mathrm{d}^{2(m+1)}z\,\lvert f(z)\rvert^2e^{-\lvert z\rvert^2}. ∥ f ∥ 2 = π − m − 1 ∫ d 2 ( m + 1 ) z ∣ f ( z ) ∣ 2 e − ∣ z ∣ 2 .
The source (1) is f ( z ) = exp ( 1 2 z T A z + β T z ) f(z)=\exp\left(\frac{1}{2}z^{\mathsf T}Az+\beta^{\mathsf T}z\right) f ( z ) = exp ( 2 1 z T A z + β T z ) , so its squared norm is the Gaussian integral
⟨ G ~ A , β ∣ G ~ A , β ⟩ = π − m − 1 ∫ d 2 ( m + 1 ) z e − ∣ z ∣ 2 + Re ( z T A z + 2 β T z ) . \langle\widetilde{G}_{A,\beta}\mid\widetilde{G}_{A,\beta}\rangle=\pi^{-m-1}\int\mathrm{d}^{2(m+1)}z\,e^{-\lvert z\rvert^2+\operatorname{Re}(z^{\mathsf T}Az+2\beta^{\mathsf T}z)}. ⟨ G A , β ∣ G A , β ⟩ = π − m − 1 ∫ d 2 ( m + 1 ) z e − ∣ z ∣ 2 + Re ( z T A z + 2 β T z ) .
In the coordinates w = U T z w=U^{\mathsf T}z w = U T z , the quadratic part of the exponent is ∑ i [ ( σ i − 1 ) ( Re w i ) 2 − ( 1 + σ i ) ( Im w i ) 2 ] \sum_i[(\sigma_i-1)(\operatorname{Re}w_i)^2-(1+\sigma_i)(\operatorname{Im}w_i)^2] ∑ i [( σ i − 1 ) ( Re w i ) 2 − ( 1 + σ i ) ( Im w i ) 2 ] . The integral therefore converges iff σ max ( A ) < 1 \sigma_{\max}(A)<1 σ m a x ( A ) < 1 and then it equals Eq. (2) . Therefore the sum in Eq. (11) converges iff θ ∈ Ω \theta\in\Omega θ ∈ Ω , and Ω \Omega Ω does not depend on b b b .
In terms of γ \gamma γ , the exponent of Eq. (2) is
∑ i ∣ γ i ∣ 2 + σ i Re ( γ i ∗ 2 ) 1 − σ i 2 ≥ ∥ β ∥ 2 1 + σ max ( A ) ≥ 0. (31) \sum_i\frac{\lvert\gamma_i\rvert^2+\sigma_i\operatorname{Re}(\gamma_i^{*2})}{1-\sigma_i^2}\geq\frac{\lVert\beta\rVert^2}{1+\sigma_{\max}(A)}\geq0. \tag*{(31)} i ∑ 1 − σ i 2 ∣ γ i ∣ 2 + σ i Re ( γ i ∗ 2 ) ≥ 1 + σ m a x ( A ) ∥ β ∥ 2 ≥ 0. (31)
Hence e Φ ( θ ) ≥ [ det ( I − A A † ) ] − 1 / 2 e^{\Phi(\theta)}\geq[\det(I-AA^\dagger)]^{-1/2} e Φ ( θ ) ≥ [ det ( I − A A † ) ] − 1/2 , which diverges at the boundary of Ω \Omega Ω (Cor. 1), Φ ≥ ∥ β ∥ 2 / 2 \Phi\geq\lVert\beta\rVert^2/2 Φ ≥ ∥ β ∥ 2 /2 (Suppl., Sec. S6).
Moments
Without displacement, the single-mode moments ⟨ c ^ † c ^ ⟩ = σ 2 / ( 1 − σ 2 ) = sinh 2 r \langle\hat{c}^{\dagger}\hat{c}\rangle=\sigma^2/(1-\sigma^2)=\sinh^2r ⟨ c ^ † c ^ ⟩ = σ 2 / ( 1 − σ 2 ) = sinh 2 r and ⟨ c ^ c ^ ⟩ = σ / ( 1 − σ 2 ) \langle\hat{c}\hat{c}\rangle=\sigma/(1-\sigma^2) ⟨ c ^ c ^ ⟩ = σ / ( 1 − σ 2 ) of the factors of Eq. (30) , transformed back with U U U , give
⟨ a ^ j † a ^ k ⟩ = [ ( I − A † A ) − 1 − I ] j k ≡ C j k , (32) \langle\hat{a}_j^\dagger\hat{a}_k\rangle=\left[(I-A^\dagger A)^{-1}-I\right]_{jk}\equiv C_{jk}, \tag*{(32)} ⟨ a ^ j † a ^ k ⟩ = [ ( I − A † A ) − 1 − I ] j k ≡ C j k , (32)
⟨ a ^ j a ^ k ⟩ = [ A ( I − A † A ) − 1 ] j k ≡ M j k . \langle\hat{a}_j\hat{a}_k\rangle=\left[A(I-A^\dagger A)^{-1}\right]_{jk}\equiv M_{jk}. ⟨ a ^ j a ^ k ⟩ = [ A ( I − A † A ) − 1 ] j k ≡ M j k .
In particular, ⟨ n ^ j ⟩ = C j j = ∑ i ∣ U j i ∣ 2 sinh 2 r i \langle\hat{n}_j\rangle=C_{jj}=\sum_i\lvert U_{ji}\rvert^2\sinh^2r_i ⟨ n ^ j ⟩ = C j j = ∑ i ∣ U j i ∣ 2 sinh 2 r i . Wick’s theorem with ⟨ a ^ j † a ^ k † ⟩ = M j k ∗ \langle\hat{a}_j^\dagger\hat{a}_k^\dagger\rangle=M_{jk}^* ⟨ a ^ j † a ^ k † ⟩ = M j k ∗ and ⟨ a ^ j a ^ k † ⟩ = δ j k + C k j \langle\hat{a}_j\hat{a}_k^\dagger\rangle=\delta_{jk}+C_{kj} ⟨ a ^ j a ^ k † ⟩ = δ j k + C k j gives
Cov ( n ^ j , n ^ k ) = ⟨ a ^ j † a ^ k † ⟩ ⟨ a ^ j a ^ k ⟩ + ⟨ a ^ j † a ^ k ⟩ ⟨ a ^ j a ^ k † ⟩ = ∣ M j k ∣ 2 + ∣ C j k ∣ 2 + δ j k C j j , \operatorname{Cov}(\hat{n}_j,\hat{n}_k)=\langle\hat{a}_j^\dagger\hat{a}_k^\dagger\rangle\langle\hat{a}_j\hat{a}_k\rangle+\langle\hat{a}_j^\dagger\hat{a}_k\rangle\langle\hat{a}_j\hat{a}_k^\dagger\rangle
=\lvert M_{jk}\rvert^2+\lvert C_{jk}\rvert^2+\delta_{jk}C_{jj}, Cov ( n ^ j , n ^ k ) = ⟨ a ^ j † a ^ k † ⟩ ⟨ a ^ j a ^ k ⟩ + ⟨ a ^ j † a ^ k ⟩ ⟨ a ^ j a ^ k † ⟩ = ∣ M j k ∣ 2 + ∣ C j k ∣ 2 + δ j k C j j ,
which is Eq. (17) . A displacement adds the coherent amplitudes α = ⟨ a ^ ⟩ = ( I − A A † ) − 1 ( β + A β ∗ ) \alpha=\langle\hat{a}\rangle=(I-AA^\dagger)^{-1}(\beta+A\beta^*) α = ⟨ a ^ ⟩ = ( I − A A † ) − 1 ( β + A β ∗ ) , and then
⟨ n ^ j ⟩ = C j j + ∣ α j ∣ 2 , \langle\hat{n}_j\rangle=C_{jj}+\lvert\alpha_j\rvert^2, ⟨ n ^ j ⟩ = C j j + ∣ α j ∣ 2 ,
Σ j k = ∣ M j k ∣ 2 + ∣ C j k ∣ 2 + δ j k ( C j j + ∣ α j ∣ 2 ) + 2 Re [ α j α k ∗ C j k + α j ∗ α k ∗ M j k ] . (33) \Sigma_{jk}=\lvert M_{jk}\rvert^2+\lvert C_{jk}\rvert^2+\delta_{jk}(C_{jj}+\lvert\alpha_j\rvert^2)+2\operatorname{Re}[\alpha_j\alpha_k^*C_{jk}+\alpha_j^*\alpha_k^*M_{jk}]. \tag*{(33)} Σ j k = ∣ M j k ∣ 2 + ∣ C j k ∣ 2 + δ j k ( C j j + ∣ α j ∣ 2 ) + 2 Re [ α j α k ∗ C j k + α j ∗ α k ∗ M j k ] . (33)
The heralded state
In the Bargmann representation, the signal variable z z z enters the exponent of the source only through
1 2 A 00 z 2 + z ( β 0 + ∑ j A 0 j z j ) . \frac{1}{2}A_{00}z^2+z\left(\beta_0+\sum_jA_{0j}z_j\right). 2 1 A 00 z 2 + z ( β 0 + j ∑ A 0 j z j ) .
The state heralded by the pattern n \mathbf{n} n is, up to a constant, the coefficient of ∏ j z j n j \prod_jz_j^{n_j} ∏ j z j n j , so its Bargmann function is
f n ( z ) = e A 00 z 2 / 2 + β 0 z P n ( z ) , (34) f_{\mathbf{n}}(z)=e^{A_{00}z^2/2+\beta_0z}P_{\mathbf{n}}(z), \tag*{(34)} f n ( z ) = e A 00 z 2 /2 + β 0 z P n ( z ) , (34)
where P n P_{\mathbf{n}} P n is a polynomial of degree at most N = ∑ j n j N=\sum_jn_j N = ∑ j n j . The coefficient of z N z^N z N comes only from the terms A 0 j z z j A_{0j}zz_j A 0 j z z j of the exponent and is proportional to ∏ j A 0 j n j \prod_jA_{0j}^{n_j} ∏ j A 0 j n j . A directly coupled source therefore heralds a nonzero state for every pattern, so W n > 0 W_{\mathbf{n}}>0 W n > 0 for every n \mathbf{n} n .
Polynomial equations
For b = 0 b=0 b = 0 , the matrices K = diag ( 1 , X 1 , … , X m ) = Λ 2 K=\operatorname{diag}(1,X_1,\ldots,X_m)=\Lambda^2 K = diag ( 1 , X 1 , … , X m ) = Λ 2 and J = I − B K B † K J=I-BKB^\dagger K J = I − B K B † K of Sec. III C satisfy
Λ J Λ − 1 = I − ( Λ B Λ ) ( Λ B † Λ ) = I − A A † . \Lambda J\Lambda^{-1}=I-(\Lambda B\Lambda)(\Lambda B^\dagger\Lambda)=I-AA^\dagger. Λ J Λ − 1 = I − ( Λ B Λ ) ( Λ B † Λ ) = I − A A † .
Hence det J = det ( I − A A † ) = e − 2 Φ \det J=\det(I-AA^\dagger)=e^{-2\Phi} det J = det ( I − A A † ) = e − 2Φ , polynomial in X X X . Since X j ∂ X j = ∂ θ j X_j\partial_{X_j}=\partial_{\theta_j} X j ∂ X j = ∂ θ j , Eq. (12) implies X j ∂ X j det J = − 2 det J ⟨ n ^ j ⟩ X_j\partial_{X_j}\det J=-2\det J\langle\hat{n}_j\rangle X j ∂ X j det J = − 2 det J ⟨ n ^ j ⟩ on Ω \Omega Ω , which is the second form of Eq. (15) .
Heralding modes that register no photon
Projecting heralding mode j j j onto the vacuum keeps exactly the terms of Eq. (1) without a ^ j † \hat{a}_j^\dagger a ^ j † . It maps the source to the pure Gaussian state of the other modes whose matrix A ′ A' A ′ is A A A without row and column j j j and whose displacement vector is β \beta β without β j \beta_j β j . This reduced source heralds the same state as the full source, with the probability
p S ′ = p S Pr ( k j = 0 ) ≥ p S , p'_S=\frac{p_S}{\Pr(k_j=0)}\geq p_S, p S ′ = Pr ( k j = 0 ) p S ≥ p S ,
which is also the limit of p S p_S p S as θ j → − ∞ \theta_j\to-\infty θ j → − ∞ . Since σ max ( A ′ ) ≤ σ max ( A ) \sigma_{\max}(A')\leq\sigma_{\max}(A) σ m a x ( A ′ ) ≤ σ m a x ( A ) , the reduced source needs no stronger squeezing and satisfies every squeezing bound that the full source satisfies. It can be prepared directly, without mode j j j and its detector.
Bounded squeezing
Section IV replaces the admissible set Ω \Omega Ω by the constrained set Ω μ = { θ : σ max ( Λ B Λ ) ≤ μ } \Omega_\mu=\{\theta:\sigma_{\max}(\Lambda B\Lambda)\leq\mu\} Ω μ = { θ : σ m a x ( Λ B Λ ) ≤ μ } . This appendix shows that Ω μ \Omega_\mu Ω μ is convex, so that the bounded problem is still a convex optimization problem, and gives the optimality condition that replaces mean matching when the bound is active.
The constrained set is convex
Convexity of Ω μ \Omega_\mu Ω μ is not obvious, because σ max ( Λ B Λ ) \sigma_{\max}(\Lambda B\Lambda) σ m a x ( Λ B Λ ) is the largest value of ∣ u T Λ B Λ v ∣ \lvert\mathbf{u}^{\mathsf T}\Lambda B\Lambda\mathbf{v}\rvert ∣ u T Λ B Λ v ∣ over unit vectors, and each of these is the absolute value of a sum of exponentials of θ \theta θ with complex coefficients, which can cancel. Proposition 2 shows that ln σ max \ln\sigma_{\max} ln σ m a x is a convex function of θ \theta θ , and hence so is σ max \sigma_{\max} σ m a x .
Proposition 2. Let σ 1 ≥ σ 2 ≥ ⋯ \sigma_1\geq\sigma_2\geq\cdots σ 1 ≥ σ 2 ≥ ⋯ be the singular values of Λ B Λ \Lambda B\Lambda Λ B Λ . For all k ≤ rank ( B ) \mathbf{k}\leq\operatorname{rank}(B) k ≤ rank ( B ) , ℓ k ( θ ) = ∑ i ≤ k ln σ i ( Λ B Λ ) \ell_k(\theta)=\sum_{i\leq k}\ln\sigma_i(\Lambda B\Lambda) ℓ k ( θ ) = ∑ i ≤ k ln σ i ( Λ B Λ ) is convex on R m \mathbb{R}^m R m . In particular, ln σ max \ln\sigma_{\max} ln σ m a x is convex.
Proof. Fix real vectors θ , θ ′ ∈ R m \theta,\theta'\in\mathbb{R}^m θ , θ ′ ∈ R m and complex unit vectors u , v ∈ C m + 1 \mathbf{u},\mathbf{v}\in\mathbb{C}^{m+1} u , v ∈ C m + 1 . For complex z z z let
Λ ( z ) = diag ( 1 , e θ 1 ( z ) / 2 , … , e θ m ( z ) / 2 ) , \Lambda(z)=\operatorname{diag}(1,e^{\theta_1(z)/2},\ldots,e^{\theta_m(z)/2}), Λ ( z ) = diag ( 1 , e θ 1 ( z ) /2 , … , e θ m ( z ) /2 ) ,
θ j ( z ) = θ j + z ( θ j ′ − θ j ) . (35) \theta_j(z)=\theta_j+z(\theta'_j-\theta_j). \tag*{(35)} θ j ( z ) = θ j + z ( θ j ′ − θ j ) . (35)
so that Λ ( 0 ) \Lambda(0) Λ ( 0 ) and Λ ( 1 ) \Lambda(1) Λ ( 1 ) are damping matrices at θ \theta θ and θ ′ \theta' θ ′ . The function
f ( z ) = u † Λ ( z ) B Λ ( z ) v (36) f(z)=u^\dagger\Lambda(z)B\Lambda(z)v \tag*{(36)} f ( z ) = u † Λ ( z ) B Λ ( z ) v (36)
is a finite sum of exponentials of z z z and hence analytic. It is also bounded on the strip 0 ≤ Re z ≤ 1 0\leq\operatorname{Re}z\leq1 0 ≤ Re z ≤ 1 , which the three-lines theorem below requires. The entries of Λ ( z ) \Lambda(z) Λ ( z ) have the absolute values e Re θ j ( z ) / 2 e^{\operatorname{Re}\theta_j(z)/2} e Re θ j ( z ) /2 , which depend only on Re z \operatorname{Re}z Re z and on the strip lie between e θ j / 2 e^{\theta_j/2} e θ j /2 and e θ j ′ / 2 e^{\theta'_j/2} e θ j ′ /2 .
On the line Re z = 0 \operatorname{Re}z=0 Re z = 0 , Λ ( z ) \Lambda(z) Λ ( z ) is Λ \Lambda Λ at θ \theta θ times a diagonal unitary matrix V V V , so Λ ( z ) B Λ ( z ) = V Λ B Λ V \Lambda(z)B\Lambda(z)=V\Lambda B\Lambda V Λ ( z ) B Λ ( z ) = V Λ B Λ V has the singular values of Λ B Λ \Lambda B\Lambda Λ B Λ at θ \theta θ , and ∣ f ( z ) ∣ ≤ σ max ( θ ) |f(z)|\leq\sigma_{\max}(\theta) ∣ f ( z ) ∣ ≤ σ m a x ( θ ) . Likewise ∣ f ( z ) ∣ ≤ σ max ( θ ′ ) |f(z)|\leq\sigma_{\max}(\theta') ∣ f ( z ) ∣ ≤ σ m a x ( θ ′ ) on the line Re z = 1 \operatorname{Re}z=1 Re z = 1 .
Hadamard’s three-lines theorem [69 Lemma in Appendix to Sec. IX.4] bounds ∣ f ∣ |f| ∣ f ∣ on an intermediate line by the weighted geometric mean of the two bounds,
∣ f ( t ) ∣ ≤ σ max ( θ ) 1 − t σ max ( θ ′ ) t , t ∈ [ 0 , 1 ] . (37) |f(t)|\leq\sigma_{\max}(\theta)^{1-t}\sigma_{\max}(\theta')^t,\qquad t\in[0,1]. \tag*{(37)} ∣ f ( t ) ∣ ≤ σ m a x ( θ ) 1 − t σ m a x ( θ ′ ) t , t ∈ [ 0 , 1 ] . (37)
For real z = t z=t z = t , Λ ( t ) \Lambda(t) Λ ( t ) is the damping matrix at the interpolated point θ t = θ + t ( θ ′ − θ ) \theta_t=\theta+t(\theta'-\theta) θ t = θ + t ( θ ′ − θ ) . The bound (C3) holds for every pair of unit vectors u u u , v v v , and its right-hand side does not depend on them, so it also holds for the largest value of ∣ f ( t ) ∣ |f(t)| ∣ f ( t ) ∣ over all such pairs. That largest value is σ max ( θ t ) \sigma_{\max}(\theta_t) σ m a x ( θ t ) , because ∣ u † M v ∣ ≤ ∥ M v ∥ ≤ σ max ( M ) |u^\dagger Mv|\leq\lVert Mv\rVert\leq\sigma_{\max}(M) ∣ u † M v ∣ ≤ ∥ M v ∥ ≤ σ m a x ( M ) for every matrix M M M , with equality when u u u and v v v are the leading left and right singular vectors of M M M . Hence
ln σ max ( θ t ) ≤ ( 1 − t ) ln σ max ( θ ) + t ln σ max ( θ ′ ) , \ln\sigma_{\max}(\theta_t)\leq(1-t)\ln\sigma_{\max}(\theta)+t\ln\sigma_{\max}(\theta'), ln σ m a x ( θ t ) ≤ ( 1 − t ) ln σ m a x ( θ ) + t ln σ m a x ( θ ′ ) ,
so ln σ max \ln\sigma_{\max} ln σ m a x is convex for k = 1 k=1 k = 1 .
For k > 1 k>1 k > 1 we reduce to the case k = 1 k=1 k = 1 . The k k k th compound C k ( M ) C_k(M) C k ( M ) of a matrix M M M has its rows and columns labeled by the k k k -element index sets I \mathcal{I} I and J \mathcal{J} J , and its entries are the k × k k\times k k × k minors of M M M with the rows I \mathcal{I} I and the columns J \mathcal{J} J . It is the matrix of M M M acting on antisymmetric states of k k k particles. Three of its properties are needed [52 ] . First, the singular values of C k ( M ) C_k(M) C k ( M ) are the products σ i 1 ⋯ σ i k \sigma_{i_1}\cdots\sigma_{i_k} σ i 1 ⋯ σ i k with i 1 < ⋯ < i k i_1<\cdots<i_k i 1 < ⋯ < i k , so ln σ max [ C k ( Λ B Λ ) ] = ℓ k \ln\sigma_{\max}[C_k(\Lambda B\Lambda)]=\ell_k ln σ m a x [ C k ( Λ B Λ )] = ℓ k . Second, the Cauchy–Binet formula gives C k ( Λ B Λ ) = C k ( Λ ) C k ( B ) C k ( Λ ) C_k(\Lambda B\Lambda)=C_k(\Lambda)C_k(B)C_k(\Lambda) C k ( Λ B Λ ) = C k ( Λ ) C k ( B ) C k ( Λ ) . Third, C k ( Λ ( z ) ) C_k(\Lambda(z)) C k ( Λ ( z )) is diagonal with the entries exp [ 1 2 ∑ j ∈ J θ j ( z ) ] \exp\left[\frac{1}{2}\sum_{j\in\mathcal{J}}\theta_j(z)\right] exp [ 2 1 ∑ j ∈ J θ j ( z ) ] , where θ 0 ≡ 0 \theta_0\equiv0 θ 0 ≡ 0 , again exponentials of functions affine in z z z . The argument for k = 1 k=1 k = 1 therefore applies to C k ( B ) C_k(B) C k ( B ) with C k ( Λ ( z ) ) C_k(\Lambda(z)) C k ( Λ ( z )) in place of Λ ( z ) \Lambda(z) Λ ( z ) , and it shows that ℓ k \ell_k ℓ k is convex.
Hence Ω μ \Omega_\mu Ω μ , the set where the convex function ln σ max \ln\sigma_{\max} ln σ m a x is at most ln μ \ln\mu ln μ , is convex. Since σ max → ∣ B 00 ∣ < μ \sigma_{\max}\to|B_{00}|<\mu σ m a x → ∣ B 00 ∣ < μ as all θ j → − ∞ \theta_j\to-\infty θ j → − ∞ , Ω μ \Omega_\mu Ω μ has points with σ max < μ \sigma_{\max}<\mu σ m a x < μ . On the segment from such a point to any θ \theta θ with σ max ( θ ) = μ \sigma_{\max}(\theta)=\mu σ m a x ( θ ) = μ , the convex function ln σ max \ln\sigma_{\max} ln σ m a x lies below ln μ \ln\mu ln μ except at the endpoint θ \theta θ , so every boundary point is a limit of points with σ max < μ \sigma_{\max}<\mu σ m a x < μ . Therefore Ω μ \Omega_\mu Ω μ is the closure of { σ max < μ } \{\sigma_{\max}<\mu\} { σ m a x < μ } , the admissible set (10) with B B B replaced by B / μ B/\mu B / μ . For directly coupled sources (H3), a unique maximum of p S p_S p S over Ω μ \Omega_\mu Ω μ exists by the argument of Cor. 1, with Ω μ \Omega_\mu Ω μ in place of Ω \Omega Ω .
The optimality condition at an active bound
When the bound is active, the gradient of ln p S \ln p_S ln p S need not vanish at the optimum. It is balanced instead by the constraint ln σ max ≤ ln μ \ln\sigma_{\max}\leq\ln\mu ln σ m a x ≤ ln μ . If the largest singular value σ 1 \sigma_1 σ 1 of A A A is nondegenerate, first-order perturbation theory with ∂ θ j A = 1 2 ( Π j A + A Π j ) \partial_{\theta_j}A=\frac{1}{2}(\Pi_jA+A\Pi_j) ∂ θ j A = 2 1 ( Π j A + A Π j ) , where Π j \Pi_j Π j projects onto mode j j j , gives
∂ ln σ max ∂ θ j = ∣ U j 1 ∣ 2 , (38) \frac{\partial\ln\sigma_{\max}}{\partial\theta_j}=|U_{j1}|^2, \tag*{(38)} ∂ θ j ∂ ln σ m a x = ∣ U j 1 ∣ 2 , (38)
because A U 1 ∗ = σ 1 U 1 AU_1^*=\sigma_1U_1 A U 1 ∗ = σ 1 U 1 and U 1 † A = σ 1 U 1 T U_1^\dagger A=\sigma_1U_1^\mathsf{T} U 1 † A = σ 1 U 1 T . This vector is the outward normal of the boundary of Ω μ \Omega_\mu Ω μ . The bounded problem is convex and has points with σ max < μ \sigma_{\max}<\mu σ m a x < μ , so the Karush–Kuhn–Tucker conditions are necessary and sufficient for the optimum [58 Sec. 5.5.3] . At an active bound they read n ∼ ⟨ n ^ ⟩ \boldsymbol{n}\sim\langle\hat{n}\rangle n ∼ ⟨ n ^ ⟩ with ξ ≥ 0 \xi\geq0 ξ ≥ 0 , which is Eq. (21) . Where the largest singular value is degenerate, σ max \sigma_{\max} σ m a x need not be differentiable and the boundary of Ω μ \Omega_\mu Ω μ may have an edge. Suppl., Sec. S3, derives the condition that then replaces Eq. (21) .
An upper bound on the heralding probability
Section V B uses the following bound. Under a squeezing bound, every photon that the detectors register has to come from a normal mode whose squeezing is limited, and a squeezed vacuum at the bound delivers many photons only rarely. The proposition considers m + 1 m+1 m + 1 squeezed vacua at the bound, which supply the most photons a bounded source can, and asks for the probability that they carry all photons the pattern requires.
Proposition 3. *Take a pure Gaussian source of m + 1 m+1 m + 1 modes with σ max ( A ) ≤ μ < 1 \sigma_{\max}(A)\leq\mu<1 σ m a x ( A ) ≤ μ < 1 , first without displacement. Let P ψ ( k ) P_\psi(k) P ψ ( k ) be the probability of k k k photons in the heralded state. Let N μ N_\mu N μ be the total photon number of the m + 1 m+1 m + 1 independent squeezed vacua with tanh r = μ \tanh r=\mu tanh r = μ , so that Pr ( N μ = 2 k ) = ( 1 − μ 2 ) ( m + 1 ) / 2 ( k + m k ) μ 2 k \Pr(N_\mu=2k)=(1-\mu^2)^{(m+1)/2}\binom{k+m}{k}\mu^{2k} Pr ( N μ = 2 k ) = ( 1 − μ 2 ) ( m + 1 ) /2 ( k k + m ) μ 2 k . Then for every pattern with N = ∑ j n j N=\sum_j n_j N = ∑ j n j photons and every integer k min ≥ 0 k_{\min}\geq0 k m i n ≥ 0 ,
p S ∑ k ≥ k min P ψ ( k ) ≤ Pr ( N μ ≥ N + k min ) (39) p_S\sum_{k\geq k_{\min}}P_\psi(k)\leq\Pr(N_\mu\geq N+k_{\min}) \tag*{(39)} p S k ≥ k m i n ∑ P ψ ( k ) ≤ Pr ( N μ ≥ N + k m i n ) (39)
=I_{\mu^2}\left(\left\lceil\frac{N+k_{\min}}{2}\right\rceil,\frac{m+1}{2}\right),
where $I_x(a,b)$ is the regularized incomplete beta function. If $N/(N+m+1)\geq\mu^2$, then also
p_S\leq\left[e(1-\mu^2)\left(1+\frac{N}{m+1}\right)\right]^{(m+1)/2}\mu^N.
{#eq:D2}
With a displacement β \beta β , for every z z z with 1 ≤ z < 1 / μ 1\leq z<1/\mu 1 ≤ z < 1/ μ ,
p_S\leq z^{-N}\left(\frac{1-\mu^2}{1-\mu^2z^2}\right)^{(m+1)/2}\exp\frac{z\lVert\beta\rVert^2}{1-z\mu}.
{#eq:D3}
Proof. The interferometer conserves the total photon number, so the total photon number N t o t N_{\mathrm{tot}} N tot of all modes is the sum of the photon numbers of the normal modes. The photon number of the i i i th normal mode is 2 k 2k 2 k with probability ( 1 − σ i 2 ) 1 / 2 ( 2 k k ) ( σ i 2 / 4 ) k \left(1-\sigma_i^2\right)^{1/2}\binom{2k}{k}\left(\sigma_i^2/4\right)^k ( 1 − σ i 2 ) 1/2 ( k 2 k ) ( σ i 2 /4 ) k . The probability of at least 2 k 2k 2 k photons is its tail and increases with σ i \sigma_i σ i . Raising the squeezing of one normal mode to the bound therefore does not lower Pr ( N t o t ≥ M ) \Pr(N_{\mathrm{tot}}\ge M) Pr ( N tot ≥ M ) , since for independent modes this probability is the sum over the photon numbers r r r of the other modes of Pr ( others = r ) \Pr(\text{others}=r) Pr ( others = r ) times the tail of the raised mode at M − r M-r M − r . Raising all modes in turn gives Pr ( N t o t ≥ M ) ≤ Pr ( N μ ≥ M ) \Pr(N_{\mathrm{tot}}\ge M)\le\Pr(N_\mu\ge M) Pr ( N tot ≥ M ) ≤ Pr ( N μ ≥ M ) for every M M M . The heralding modes register n n n and the signal mode holds at least k min k_{\min} k m i n photons with probability ∑ k ≥ k min P ψ ( k ) \sum_{k\ge k_{\min}}P_\psi(k) ∑ k ≥ k m i n P ψ ( k ) , and then N t o t ≥ N + k min N_{\mathrm{tot}}\ge N+k_{\min} N tot ≥ N + k m i n . This gives the inequality (D1).
For the second form, take k min = 0 k_{\min}=0 k m i n = 0 and 1 ≤ z < 1 / μ 1\le z<1/\mu 1 ≤ z < 1/ μ . Markov’s inequality, Pr ( Y ≥ y ) ≤ ⟨ Y ⟩ / y \Pr(Y\ge y)\le\langle Y\rangle/y Pr ( Y ≥ y ) ≤ ⟨ Y ⟩ / y for nonnegative random variable Y Y Y , applied to Y = z N μ Y=z^{N_\mu} Y = z N μ and y = z N y=z^N y = z N gives
Pr ( N μ ≥ N ) ≤ z − N ⟨ z N μ ⟩ = z − N [ 1 − μ 2 1 − μ 2 z 2 ] m + 1 2 . (40) \Pr(N_\mu\ge N)\le z^{-N}\langle z^{N_\mu}\rangle=z^{-N}\left[\frac{1-\mu^2}{1-\mu^2z^2}\right]^{\frac{m+1}{2}}. \tag*{(40)} Pr ( N μ ≥ N ) ≤ z − N ⟨ z N μ ⟩ = z − N [ 1 − μ 2 z 2 1 − μ 2 ] 2 m + 1 . (40)
The right-hand side is smallest at μ 2 z 2 = N / ( N + m + 1 ) \mu^2z^2=N/(N+m+1) μ 2 z 2 = N / ( N + m + 1 ) , which lies in the allowed range when N / ( N + m + 1 ) ≥ μ 2 N/(N+m+1)\ge\mu^2 N / ( N + m + 1 ) ≥ μ 2 . There it equals
( 1 − μ 2 ) ( m + 1 ) / 2 μ N ( 1 + m + 1 N ) N / 2 ( 1 + N m + 1 ) ( m + 1 ) / 2 , (41) (1-\mu^2)^{(m+1)/2}\mu^N\left(1+\frac{m+1}{N}\right)^{N/2}\left(1+\frac{N}{m+1}\right)^{(m+1)/2}, \tag*{(41)} ( 1 − μ 2 ) ( m + 1 ) /2 μ N ( 1 + N m + 1 ) N /2 ( 1 + m + 1 N ) ( m + 1 ) /2 , (41)
and ( 1 + m + 1 N ) N / 2 ≤ e ( m + 1 ) / 2 \left(1+\frac{m+1}{N}\right)^{N/2}\le e^{(m+1)/2} ( 1 + N m + 1 ) N /2 ≤ e ( m + 1 ) /2 gives Eq. (D2).
With displacement, p S ≤ Pr ( N t o t ≥ N ) ≤ z − N ⟨ z N t o t ⟩ p_S\le\Pr(N_{\mathrm{tot}}\ge N)\le z^{-N}\langle z^{N_{\mathrm{tot}}}\rangle p S ≤ Pr ( N tot ≥ N ) ≤ z − N ⟨ z N tot ⟩ follows from the same inequality. Replacing every a ^ j † \hat a_j^\dagger a ^ j † by z a ^ j † \sqrt{z}\hat a_j^\dagger z a ^ j † in Eq. (1) multiplies the amplitude of every component with M M M photons in total by z M / 2 z^{M/2} z M /2 , so
⟨ z N t o t ⟩ = ⟨ G ~ z A , z β ∣ G ~ z A , z β ⟩ ⟨ G ~ A , β ∣ G ~ A , β ⟩ , \langle z^{N_{\mathrm{tot}}}\rangle=\frac{\langle\widetilde G_{zA,\sqrt{z}\boldsymbol{\beta}}\mid\widetilde G_{zA,\sqrt{z}\boldsymbol{\beta}}\rangle}{\langle\widetilde G_{A,\boldsymbol{\beta}}\mid\widetilde G_{A,\boldsymbol{\beta}}\rangle}, ⟨ z N tot ⟩ = ⟨ G A , β ∣ G A , β ⟩ ⟨ G z A , z β ∣ G z A , z β ⟩ ,
which Eq. (2) gives for z σ max ( A ) < 1 z\sigma_{\max}(A)<1 z σ m a x ( A ) < 1 . The exponent of Eq. (2) in the denominator is nonnegative (App. B), and in the numerator it is at most z ∥ β ∥ 2 ( 1 + z σ max ) / ( 1 − z 2 σ max 2 ) ≤ z ∥ β ∥ 2 / ( 1 − z μ ) z\lVert\boldsymbol{\beta}\rVert^2(1+z\sigma_{\max})/(1-z^2\sigma_{\max}^2)\le z\lVert\boldsymbol{\beta}\rVert^2/(1-z\mu) z ∥ β ∥ 2 ( 1 + z σ m a x ) / ( 1 − z 2 σ m a x 2 ) ≤ z ∥ β ∥ 2 / ( 1 − z μ ) . The determinants give ∏ i [ ( 1 − σ i 2 ) / ( 1 − z 2 σ i 2 ) ] 1 / 2 \prod_i[(1-\sigma_i^2)/(1-z^2\sigma_i^2)]^{1/2} ∏ i [( 1 − σ i 2 ) / ( 1 − z 2 σ i 2 ) ] 1/2 , and each factor increases with σ i \sigma_i σ i for z ≥ 1 z\ge1 z ≥ 1 , which gives Eq. (D3). □
The heralded state does not depend on the damping, so Eq. (39) also bounds p S max ( μ ) p_S^{\max}(\mu) p S m a x ( μ ) . For k min = 0 k_{\min}=0 k m i n = 0 it is the smallest bound that follows from N t o t ≥ N N_{\mathrm{tot}}\ge N N tot ≥ N alone, since m + 1 m+1 m + 1 normal modes at the bound have exactly the total photon number N μ N_\mu N μ . At a fixed number of heralding modes, both bounds decrease as μ N \mu^N μ N . Equation (D2) requires the pattern to ask for at least as many photons as the m + 1 m+1 m + 1 squeezed vacua at the bound supply on average,
N ≥ ( m + 1 ) μ 2 1 − μ 2 , N\ge\frac{(m+1)\mu^2}{1-\mu^2}, N ≥ 1 − μ 2 ( m + 1 ) μ 2 ,
and Eq. (39) with k min = 0 k_{\min}=0 k m i n = 0 likewise becomes weak when m m m grows with N N N , e.g. for patterns with one photon per heralding mode.
For directly coupled sources (H3), ∥ β ∥ \lVert\boldsymbol{\beta}\rVert ∥ β ∥ is bounded on Ω μ \Omega_\mu Ω μ , because θ j < − 2 ln ∣ B 0 j ∣ \theta_j<-2\ln|B_{0j}| θ j < − 2 ln ∣ B 0 j ∣ . For every z < 1 / μ z<1/\mu z < 1/ μ , the right-hand side of Eq. (D3) is then z − N z^{-N} z − N times a factor that does not depend on N N N , so ln p S max ( μ ) \ln p_S^{\max}(\mu) ln p S m a x ( μ ) decreases asymptotically by at least ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) per detected photon also with a displacement. The displacement can nevertheless raise p S max ( μ ) p_S^{\max}(\mu) p S m a x ( μ ) considerably at moderate photon numbers. For one heralding mode with s 1 = 0 s_1=0 s 1 = 0 and the displacement b = ( 0 , b 1 ) \mathbf b=(0,b_1) b = ( 0 , b 1 ) , which heralds photon-added coherent states up to a displacement,
p S = ( 1 − X ) X n e − X ∣ b 1 ∣ 2 / ( 1 − X ) ∑ j = 0 n ( n j ) ∣ b 1 ∣ 2 j j ! , (42) p_S=(1-X)X^n e^{-X|b_1|^2/(1-X)}\sum_{j=0}^{n}\binom{n}{j}\frac{|b_1|^{2j}}{j!}, \tag*{(42)} p S = ( 1 − X ) X n e − X ∣ b 1 ∣ 2 / ( 1 − X ) j = 0 ∑ n ( j n ) j ! ∣ b 1 ∣ 2 j , (42)
and at an active bound X = μ 2 X=\mu^2 X = μ 2 . The sum is the Laguerre polynomial L n ( − ∣ b 1 ∣ 2 ) L_n(-|b_1|^2) L n ( − ∣ b 1 ∣ 2 ) , which for large n n n approaches e 2 ∣ b 1 ∣ n − ∣ b 1 ∣ 2 / 2 / ( 2 π ∣ b 1 ∣ n 1 / 2 ) e^{2|b_1|\sqrt{n}-|b_1|^2/2}/(2\sqrt{\pi}|b_1|n^{1/2}) e 2∣ b 1 ∣ n − ∣ b 1 ∣ 2 /2 / ( 2 π ∣ b 1 ∣ n 1/2 ) , so the decrease of ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) per photon of the Fock state is reached only slowly. At 10 dB and n = 80 n=80 n = 80 , for example, b 1 = 3 b_1=3 b 1 = 3 raises ln p S max \ln p_S^{\max} ln p S m a x from − 33.2 -33.2 − 33.2 to − 4.8 -4.8 − 4.8 .
Imperfect detection
This appendix supports Sec. VI. Recall that the detectors register the pattern n n n with probability g n ( k ) g_n(k) g n ( k ) when the photon numbers k k k arrive, so that p S ( θ ) = ∑ k g n ( k ) p θ ( k ) p_S(\theta)=\sum_k g_n(k)p_\theta(k) p S ( θ ) = ∑ k g n ( k ) p θ ( k ) with the herald statistics p θ p_\theta p θ of Eq. (11) , and that q ( k ) = g n ( k ) p θ ( k ) / p S q(k)=g_n(k)p_\theta(k)/p_S q ( k ) = g n ( k ) p θ ( k ) / p S is the distribution of the arrived numbers given the registered pattern. Proposition 4 identifies the measurements for which the damping leaves the heralded state unchanged, which is property P1 of Sec. VI. The following subsections describe detector models beyond loss, among them dark counts, derive the gradient and the Hessian of Eq. (24) , and prove the two uniqueness results, Thm. 2 for one heralding mode and Prop. 5 for several heralding modes with nearly ideal detectors.
Measurements preserved by damping
A registered pattern of a real detector is described by a positive operator E ^ \hat E E ^ on the heralding modes [70 ] , and ideal PNR detection by the projector ∣ n ⟩ ⟨ n ∣ \lvert n\rangle\langle n\rvert ∣ n ⟩ ⟨ n ∣ .
Proposition 4. Let E ^ \hat E E ^ be a nonzero positive operator on the heralding modes. The unnormalized heralded state found as Tr 1 … m [ E ^ Λ ^ ρ ^ ] \operatorname{Tr}_{1\ldots m}[\hat E\hat\Lambda\hat\rho] Tr 1 … m [ E ^ Λ ^ ρ ^ ] is independent of θ \theta θ up to normalization, for every state ρ \rho ρ of the signal and heralding modes, if and only if E ^ \hat E E ^ is proportional to the projector ∣ n ⟩ ⟨ n ∣ \lvert n\rangle\langle n\rvert ∣ n ⟩ ⟨ n ∣ onto a single photon-number pattern.
Proof. Write E ^ = ∑ k , k ′ e k k ′ ∣ k ⟩ ⟨ k ′ ∣ \hat E=\sum_{k,k'}e_{kk'}\lvert k\rangle\langle k'\rvert E ^ = ∑ k , k ′ e k k ′ ∣ k ⟩ ⟨ k ′ ∣ . Moving the damping onto the measurement gives
Tr 1 … m [ E ^ Λ ^ ρ ^ Λ ^ ] = Tr 1 … m [ ( Λ ^ E ^ Λ ^ ) ρ ] . (43) \operatorname{Tr}_{1\ldots m}\left[\hat E\hat\Lambda\hat\rho\hat\Lambda\right]=\operatorname{Tr}_{1\ldots m}\left[(\hat\Lambda\hat E\hat\Lambda)\rho\right]. \tag*{(43)} Tr 1 … m [ E ^ Λ ^ ρ ^ Λ ^ ] = Tr 1 … m [ ( Λ ^ E ^ Λ ^ ) ρ ] . (43)
For E ^ ∝ ∣ n ⟩ ⟨ n ∣ \hat E\propto\lvert n\rangle\langle n\rvert E ^ ∝ ∣ n ⟩ ⟨ n ∣ , Λ ^ E ^ Λ ^ = e n ⋅ θ E ^ \hat\Lambda\hat E\hat\Lambda=e^{n\cdot\theta}\hat E Λ ^ E ^ Λ ^ = e n ⋅ θ E ^ , so the heralded state is independent of θ \boldsymbol{\theta} θ up to normalization, proving sufficiency.
For necessity, take any two distinct patterns k ≠ k ′ k \ne k' k = k ′ and the state ρ = 1 2 ( ∣ 0 ⟩ ⟨ 0 ∣ ⊗ ∣ k ⟩ ⟨ k ∣ + ∣ 1 ⟩ ⟨ 1 ∣ ⊗ ∣ k ′ ⟩ ⟨ k ′ ∣ ) \rho= \frac{1}{2}(|0\rangle\langle0| \otimes|k\rangle\langle k| + |1\rangle\langle1| \otimes|k'\rangle\langle k'|) ρ = 2 1 ( ∣0 ⟩ ⟨ 0∣ ⊗ ∣ k ⟩ ⟨ k ∣ + ∣1 ⟩ ⟨ 1∣ ⊗ ∣ k ′ ⟩ ⟨ k ′ ∣ ) . Since Λ ^ ∣ k ⟩ = e k ⋅ θ / 2 ∣ k ⟩ \hat{\Lambda}|k\rangle= e^{k\cdot\theta/2}|k\rangle Λ ^ ∣ k ⟩ = e k ⋅ θ /2 ∣ k ⟩ , the unnormalized heralded state is 1 2 ( e k k e k ⋅ θ ∣ 0 ⟩ ⟨ 0 ∣ + e k ′ k ′ e k ′ ⋅ θ ∣ 1 ⟩ ⟨ 1 ∣ ) \frac{1}{2}(e_{kk}e^{k\cdot\theta}|0\rangle\langle0|+e_{k'k'}e^{k'\cdot\theta}|1\rangle\langle1|) 2 1 ( e k k e k ⋅ θ ∣0 ⟩ ⟨ 0∣ + e k ′ k ′ e k ′ ⋅ θ ∣1 ⟩ ⟨ 1∣ ) . If both e k k e_{kk} e k k and e k ′ k ′ e_{k'k'} e k ′ k ′ were nonzero, the ratio of the two weights would scale as e ( k − k ′ ) ⋅ θ e^{(k-k')\cdot\theta} e ( k − k ′ ) ⋅ θ and vary with θ \theta θ . At most one diagonal element e n n e_{nn} e nn can therefore be nonzero. Because E ^ \hat{E} E ^ is positive, ∣ e k k ′ ∣ 2 ≤ e k k e k ′ k ′ = 0 |e_{kk'}|^2 \le e_{kk}e_{k'k'} = 0 ∣ e k k ′ ∣ 2 ≤ e k k e k ′ k ′ = 0 for all k ≠ k ′ k \ne k' k = k ′ , so all off-diagonal elements vanish. Since E ^ ≠ 0 \hat{E} \ne0 E ^ = 0 , E ^ = e n n ∣ n ⟩ ⟨ n ∣ \hat{E} = e_{nn}|n\rangle\langle n| E ^ = e nn ∣ n ⟩ ⟨ n ∣ .
For loss, dark counts or threshold detectors, the operator E ^ = ∑ k g n ( k ) ∣ k ⟩ ⟨ k ∣ \hat{E} = \sum_k g_n(k)|k\rangle\langle k| E ^ = ∑ k g n ( k ) ∣ k ⟩ ⟨ k ∣ is diagonal in the photon numbers but not a projector onto a single pattern, so the heralded state depends on θ \theta θ for some sources.
Detector models
Accepting a set of patterns [62 ] makes p S p_S p S a sum of log-concave functions of θ \theta θ , which need not be log-concave, even when all accepted patterns herald the same state. For real s 1 = s 2 = 0.3 s_1=s_2=0.3 s 1 = s 2 = 0.3 and ν 12 = 0.2 \nu_{12}=0.2 ν 12 = 0.2 , accepting the mirror-image patterns ( 8 , 1 ) (8,1) ( 8 , 1 ) and ( 1 , 8 ) (1,8) ( 1 , 8 ) gives two maxima, at θ = ( − 2.412 , − 0.433 ) \theta=(-2.412,-0.433) θ = ( − 2.412 , − 0.433 ) and its mirror image, where one pattern contributes almost all of p S = 0.0109 p_S=0.0109 p S = 0.0109 . Accepting ( 3 , 2 ) (3,2) ( 3 , 2 ) and ( 2 , 3 ) (2,3) ( 2 , 3 ) gives a single maximum on the diagonal.
A detector of efficiency η j \eta_j η j with Poissonian dark counts of mean d j d_j d j [71 ] registers n j n_j n j with probability
g n j ( k j ) = Pr [ Y ( k j , η j ) + Y ′ ( d j ) = n j ] (44) g_{n_j}(k_j)=\Pr\left[Y(k_j,\eta_j)+Y'(d_j)=n_j\right] \tag*{(44)} g n j ( k j ) = Pr [ Y ( k j , η j ) + Y ′ ( d j ) = n j ] (44)
when k j k_j k j photons arrive, where Y ( k , η ) Y(k,\eta) Y ( k , η ) is binomial with k k k trials and Y ′ ( d ) Y'(d) Y ′ ( d ) is Poissonian with mean d d d . The joint response is g n ( k ) = ∏ j g n j ( k j ) g_n(k)=\prod_j g_{n_j}(k_j) g n ( k ) = ∏ j g n j ( k j ) .
Loss with the same transmissivity η s \eta_s η s in all modes after the squeezers commutes with the interferometer. Moved behind it, the loss does not affect p S p_S p S where it acts on the signal mode, and it acts as detectors of efficiency η s η j \eta_s\eta_j η s η j in the heralding modes. Losses between the interferometer and the detectors, such as propagation and coupling losses, act in the same way even when they differ between modes.
Gradient and Hessian for incomplete data
Substituting p θ ( k ) = W k e k ⋅ θ − Φ ( θ ) p_\theta(k)=W_ke^{k\cdot\theta-\Phi(\theta)} p θ ( k ) = W k e k ⋅ θ − Φ ( θ ) from Eq. (11) into p S ( θ ) = ∑ k g n ( k ) p θ ( k ) p_S(\theta)=\sum_k g_n(k)p_\theta(k) p S ( θ ) = ∑ k g n ( k ) p θ ( k ) gives
ln p S ( θ ) = Φ q ( θ ) − Φ ( θ ) , \ln p_S(\theta)=\Phi_q(\theta)-\Phi(\theta), ln p S ( θ ) = Φ q ( θ ) − Φ ( θ ) ,
Φ q ( θ ) = ln ∑ k g n ( k ) W k e k ⋅ θ . (45) \Phi_q(\theta)=\ln\sum_k g_n(k)W_ke^{k\cdot\theta}. \tag*{(45)} Φ q ( θ ) = ln k ∑ g n ( k ) W k e k ⋅ θ . (45)
The distribution q ( k ) = g n ( k ) W k e k ⋅ θ − Φ q ( θ ) q(k)=g_n(k)W_ke^{k\cdot\theta-\Phi_q(\theta)} q ( k ) = g n ( k ) W k e k ⋅ θ − Φ q ( θ ) of Eq. (24) is therefore an exponential family of the form (A1), with the carrier g n ( k ) W k g_n(k)W_k g n ( k ) W k and the log-partition function Φ q \Phi_q Φ q , which is finite on Ω \Omega Ω because g n ≤ 1 g_n\le1 g n ≤ 1 . As Eq. (12) gives the mean and the covariance matrix of p θ p_\theta p θ from Φ \Phi Φ , the first and second derivatives of Φ q \Phi_q Φ q give those of q q q . The gradient of ln p S \ln p_S ln p S is therefore the difference of the two means, and its Hessian the difference of the two covariance matrices, which is Eq. (24) . In statistical terms, the registered pattern is incomplete data , and Eqs. (24) are the likelihood equation and the observed information , the negative Hessian of the log-likelihood, for incomplete data from an exponential family [66 , 72 ] . Ideal detection has q q q concentrated on n n n and recovers Eqs. (16) . With loss and no dark counts, q q q is supported on k ≥ n k\ge n k ≥ n , so every stationary point has ⟨ n ^ j ⟩ = ⟨ k j ⟩ q ≥ n j \langle\hat{n}_j\rangle=\langle k_j\rangle_q\ge n_j ⟨ n ^ j ⟩ = ⟨ k j ⟩ q ≥ n j .
One heralding mode
The loss and dark-count models above satisfy the assumptions of Thm. 2 .
Lemma 1. For loss with efficiency 0 < η ≤ 1 0<\eta\le1 0 < η ≤ 1 followed by Poissonian dark counts with mean d ≥ 0 d\ge0 d ≥ 0 , g n g_n g n is log-concave with an interval as support, satisfies inf k g n ( k ) = 0 < sup k g n ( k ) \inf_k g_n(k)=0<\sup_k g_n(k) inf k g n ( k ) = 0 < sup k g n ( k ) , and is therefore unimodal and nonconstant.
Proof. When k k k photons arrive, the registered count is Y k = Y ( k , η ) + Y ′ ( d ) Y_k=Y(k,\eta)+Y'(d) Y k = Y ( k , η ) + Y ′ ( d ) , the sum of independent Bernoulli variables with success probability η \eta η and a Poissonian variable with mean d d d , and g n ( k ) = Pr ( Y k = n ) g_n(k)=\Pr(Y_k=n) g n ( k ) = Pr ( Y k = n ) . Detecting all n n n arriving photons with zero dark counts gives g n ( n ) ≥ η n e − d > 0 g_n(n)\ge\eta^n e^{-d}>0 g n ( n ) ≥ η n e − d > 0 , while g n ( k ) ≤ Pr [ Y ( k , η ) ≤ n ] → 0 g_n(k)\le\Pr[Y(k,\eta)\le n]\to0 g n ( k ) ≤ Pr [ Y ( k , η ) ≤ n ] → 0 as k → ∞ k\to\infty k → ∞ , so inf k g n ( k ) = 0 < sup k g n ( k ) \inf_k g_n(k)=0<\sup_k g_n(k) inf k g n ( k ) = 0 < sup k g n ( k ) . For η = 1 \eta=1 η = 1 , g n ( k ) = Pr [ Y ′ ( d ) = n − k ] g_n(k)=\Pr[Y'(d)=n-k] g n ( k ) = Pr [ Y ′ ( d ) = n − k ] is directly log-concave on its support { n } \{n\} { n } for d = 0 d=0 d = 0 , { 0 , … , n } \{0,\ldots,n\} { 0 , … , n } for d > 0 d>0 d > 0 . For n = 0 n=0 n = 0 , g 0 ( k ) = e − d ( 1 − η ) k g_0(k)=e^{-d}(1-\eta)^k g 0 ( k ) = e − d ( 1 − η ) k is log-linear on k ≥ 0 k\ge0 k ≥ 0 . Take now η < 1 \eta<1 η < 1 and n ≥ 1 n\ge1 n ≥ 1 ; the support of g n g_n g n is k ≥ n k\ge n k ≥ n for d = 0 d=0 d = 0 and all k ≥ 0 k\ge0 k ≥ 0 for d > 0 d>0 d > 0 . Every summand of Y k Y_k Y k has a log-concave distribution on an interval, and so does their sum [73 ] (extending to the Poisson summand as a limit of binomial variables). One more arriving photon adds one Bernoulli variable,
Pr ( Y k + 1 = j ) = ( 1 − η ) Pr ( Y k = j ) + η Pr ( Y k = j − 1 ) , (46) \Pr(Y_{k+1}=j)=(1-\eta)\Pr(Y_k=j)+\eta\Pr(Y_k=j-1), \tag*{(46)} Pr ( Y k + 1 = j ) = ( 1 − η ) Pr ( Y k = j ) + η Pr ( Y k = j − 1 ) , (46)
so wherever g n ( k ) > 0 g_n(k)>0 g n ( k ) > 0 ,
g n ( k + 1 ) g n ( k ) = 1 − η + η Γ k , Γ k = Pr ( Y k = n − 1 ) Pr ( Y k = n ) . \frac{g_n(k+1)}{g_n(k)}=1-\eta+\eta\Gamma_k,\qquad\Gamma_k=\frac{\Pr(Y_k=n-1)}{\Pr(Y_k=n)}. g n ( k ) g n ( k + 1 ) = 1 − η + η Γ k , Γ k = Pr ( Y k = n ) Pr ( Y k = n − 1 ) .
By log-concavity of Y k Y_k Y k , Pr ( Y k = j − 1 ) / Pr ( Y k = j ) \Pr(Y_k=j-1)/\Pr(Y_k=j) Pr ( Y k = j − 1 ) / Pr ( Y k = j ) is nondecreasing in j j j , Pr ( Y k = j − 1 ) / Pr ( Y k = j ) ≤ Pr ( Y k + 1 = j ) / Pr ( Y k + 1 = j + 1 ) \Pr(Y_k=j-1)/\Pr(Y_k=j)\le\Pr(Y_{k+1}=j)/\Pr(Y_{k+1}=j+1) Pr ( Y k = j − 1 ) / Pr ( Y k = j ) ≤ Pr ( Y k + 1 = j ) / Pr ( Y k + 1 = j + 1 ) is non-decreasing by Eq. (46) . Therefore, we have Γ k + 1 = Γ k R ( n − 1 ) / R ( n ) ≤ Γ k \Gamma_{k+1}=\Gamma_k R(n-1)/R(n)\le\Gamma_k Γ k + 1 = Γ k R ( n − 1 ) / R ( n ) ≤ Γ k , the ratio g n ( k + 1 ) / g n ( k ) g_n(k+1)/g_n(k) g n ( k + 1 ) / g n ( k ) does not increase with k k k , and g n g_n g n is log-concave. Finally, any log-concave sequence supported on an interval is unimodal, with the sets { k : g n ( k ) > a } \{k:g_n(k)>a\} { k : g n ( k ) > a } forming intervals. ∎
Proof of Theorem 2. By (H2), for m = 1 m=1 m = 1 the heralding mode couples to the signal mode (B 01 ≠ 0 B_{01}\ne0 B 01 = 0 ), so W k > 0 W_k>0 W k > 0 for every k ≥ 0 k\ge0 k ≥ 0 (App. B) and σ max ( A ) \sigma_{\max}(A) σ m a x ( A ) grows without bound as θ → ∞ \theta\to\infty θ → ∞ ; since g n ≥ 0 g_n\ge0 g n ≥ 0 is nonconstant, p S > 0 p_S>0 p S > 0 on Ω \Omega Ω . Fix a > 0 a>0 a > 0 and write X = e θ X=e^\theta X = e θ . Since p S = ∑ k g n ( k ) W k X k e − Φ p_S=\sum_k g_n(k)W_kX^ke^{-\Phi} p S = ∑ k g n ( k ) W k X k e − Φ and e Φ = ∑ k W k X k e^\Phi=\sum_k W_kX^k e Φ = ∑ k W k X k ,
e Φ ( θ ) [ p S ( θ ) − a ] = ∑ k ≥ 0 c k X k , c k = [ g n ( k ) − a ] W k . (47) e^{\Phi(\theta)}[p_S(\theta)-a]=\sum_{k\ge0}c_kX^k,\qquad c_k=[g_n(k)-a]W_k. \tag*{(47)} e Φ ( θ ) [ p S ( θ ) − a ] = k ≥ 0 ∑ c k X k , c k = [ g n ( k ) − a ] W k . (47)
The series converges on Ω \Omega Ω , because 0 ≤ g n ≤ 1 0\le g_n\le1 0 ≤ g n ≤ 1 , and has at least one nonzero coefficient because W k > 0 W_k>0 W k > 0 for all k k k and inf k g n ( k ) < sup k g n ( k ) \inf_k g_n(k)<\sup_k g_n(k) inf k g n ( k ) < sup k g n ( k ) .
Since g n g_n g n is unimodal, the indices with g n ( k ) > a g_n(k)>a g n ( k ) > a form an interval with c k ≤ 0 c_k\leq0 c k ≤ 0 outside of this interval. The nonzero coefficients therefore change sign at most twice, and if twice, in the order − , + , − -,+,- − , + , − . By Descartes’ rule of signs for power series [67 Thm. 3.1] , the series has at most as many positive zeros in its interval of convergence as its coefficients have sign changes, and near X = 0 X=0 X = 0 it has the sign of its first nonzero coefficient.
With at most one sign change it has at most one positive zero, while with two it is negative near X = 0 X=0 X = 0 and has at most two; in neither case can p S − a p_S-a p S − a take the signs + , − , + +,-,+ + , − , + at three increasing values of θ \theta θ (which requires two zeros, or three if negative near X = 0 X=0 X = 0 ).
Suppose that p S p_S p S had a local maximum at θ a \theta_a θ a and another point θ b ≠ θ a \theta_b\ne\theta_a θ b = θ a with p S ( θ b ) ≥ p S ( θ a ) p_S(\theta_b)\geq p_S(\theta_a) p S ( θ b ) ≥ p S ( θ a ) , and let θ ′ \theta' θ ′ minimize p S p_S p S on the closed interval between them. Because p S ( θ ) = p S ( θ a ) p_S(\theta)=p_S(\theta_a) p S ( θ ) = p S ( θ a ) has at most two solutions on Ω \Omega Ω , p S p_S p S must drop below p S ( θ a ) p_S(\theta_a) p S ( θ a ) near θ a \theta_a θ a on the side of θ b \theta_b θ b , so p S ( θ ′ ) < p S ( θ a ) p_S(\theta')<p_S(\theta_a) p S ( θ ′ ) < p S ( θ a ) . For any a ∈ ( p S ( θ ′ ) , p S ( θ a ) ) a\in(p_S(\theta'),p_S(\theta_a)) a ∈ ( p S ( θ ′ ) , p S ( θ a )) , p S − a p_S-a p S − a takes the signs + , − , + +,-,+ + , − , + at θ a \theta_a θ a , θ ′ \theta' θ ′ and θ b \theta_b θ b (in either order of θ a \theta_a θ a and θ b \theta_b θ b ), which is excluded above. Hence a local maximum is the unique global maximum. For m = 1 m=1 m = 1 and μ > ∣ B 00 ∣ \mu>|B_{00}| μ > ∣ B 00 ∣ (otherwise Ω μ \Omega_\mu Ω μ is empty), Ω μ \Omega_\mu Ω μ is a half-line θ ≤ θ μ \theta\leq\theta_\mu θ ≤ θ μ , because σ max \sigma_{\max} σ m a x is convex in θ \theta θ , tends to ∣ B 00 ∣ < μ |B_{00}|<\mu ∣ B 00 ∣ < μ as θ → − ∞ \theta\to-\infty θ → − ∞ , and grows without bound as θ → ∞ \theta\to\infty θ → ∞ , so it does not decrease. The same argument applies on Ω μ \Omega_\mu Ω μ , including a local maximum at θ μ \theta_\mu θ μ . □
Theorem 2 does not guarantee existence, but under pure loss (η j > 0 \eta_j>0 η j > 0 ) a maximum of p S p_S p S exists on Ω \Omega Ω for any directly coupled source (H3) with n j ≥ 1 n_j\geq1 n j ≥ 1 . Since p θ ( k ) → 0 p_\theta(k)\to0 p θ ( k ) → 0 for all k ≥ n k\geq n k ≥ n as θ \theta θ leaves compact subsets of Ω \Omega Ω (Cor. 1) and ∑ k g n ( k ) = ∏ j η j − 1 < ∞ \sum_k g_n(k)=\prod_j\eta_j^{-1}<\infty ∑ k g n ( k ) = ∏ j η j − 1 < ∞ , dominated convergence (with p θ ≤ 1 p_\theta\leq1 p θ ≤ 1 ) gives p S → 0 p_S\to0 p S → 0 there, so p S p_S p S attains its maximum. With dark counts a maximum need not exist.
Heralding with nearly ideal detectors
Proposition 5. For a directly coupled source (H3) and n j ≥ 1 n_j\geq1 n j ≥ 1 for every j j j (H1), let detector j j j have efficiency η j \eta_j η j and no dark counts. There is η 0 < 1 \eta_0<1 η 0 < 1 , η 0 = η 0 ( B , b , n ) \eta_0=\eta_0(B,b,n) η 0 = η 0 ( B , b , n ) , such that for η j ∈ [ η 0 , 1 ] \eta_j\in[\eta_0,1] η j ∈ [ η 0 , 1 ] the heralding probability has exactly one stationary point on Ω \Omega Ω , its global maximum.
Proof. We first show that the stationary points lie in a compact set. Fix η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) and let every η j ≥ η \eta_j\geq\eta η j ≥ η . Model detector j j j as a beam splitter of transmissivity η j \eta_j η j followed by ideal detection on the transmitted mode, with reflected photons entering a loss mode l j l_j l j (creation operators t ^ j † \hat{t}_j^\dagger t ^ j † and l ^ j † \hat{l}_j^\dagger l ^ j † ). Given the registered pattern n n n , the mean photon number of l j l_j l j is ⟨ k j ⟩ q − n j \langle k_j\rangle_q-n_j ⟨ k j ⟩ q − n j , since k j − n j k_j-n_j k j − n j of the k j k_j k j arriving photons are reflected. In (1) , the beam splitters replace each heralding operator a ^ j † \hat{a}_j^\dagger a ^ j † by η j t ^ j † + 1 − η j l ^ j † \sqrt{\eta_j}\hat{t}_j^\dagger+\sqrt{1-\eta_j}\hat{l}_j^\dagger η j t ^ j † + 1 − η j l ^ j † . Projecting the transmitted modes onto ∣ n ⟩ |n\rangle ∣ n ⟩ then leaves the signal and loss modes in the state h ( a ^ 0 † , l ^ † ) ∣ G ^ L A L , L β ⟩ h(\hat{a}_0^\dagger,\hat{l}^\dagger)|\hat{G}_{LAL,L\beta}\rangle h ( a ^ 0 † , l ^ † ) ∣ G ^ L A L , L β ⟩ , where L = diag ( 1 , 1 − η 1 , … , 1 − η m ) L=\operatorname{diag}(1,\sqrt{1-\eta_1},\ldots,\sqrt{1-\eta_m}) L = diag ( 1 , 1 − η 1 , … , 1 − η m ) and h h h is a polynomial of degree at most N = ∑ j n j N=\sum_j n_j N = ∑ j n j , as in (34) .
The loss modes are attenuated by L L L , this keeps them below infinite squeezing. For unit u , v u,v u , v , ∣ u † L A L v ∣ ≤ ∥ L u ∥ ∥ L v ∥ σ max ( A ) ≤ 1 |u^\dagger LALv|\leq\|Lu\|\|Lv\|\sigma_{\max}(A)\leq1 ∣ u † L A Lv ∣ ≤ ∥ Lu ∥∥ Lv ∥ σ m a x ( A ) ≤ 1 for every A A A in the closure of the admissible set. Equality would need ∥ L u ∥ = ∥ L v ∥ = 1 \|Lu\|=\|Lv\|=1 ∥ Lu ∥ = ∥ Lv ∥ = 1 , that is, u u u and v v v supported on the signal mode, the only mode that L L L does not attenuate, but there ∣ u † L A L v ∣ = ∣ A 00 ∣ = ∣ B 00 ∣ < 1 |u^\dagger LALv|=|A_{00}|=|B_{00}|<1 ∣ u † L A Lv ∣ = ∣ A 00 ∣ = ∣ B 00 ∣ < 1 . Since the admissible A A A and the matrices L L L range over sets with compact closure, σ max ( L A L ) ≤ μ ˉ < 1 \sigma_{\max}(LAL)\leq\bar{\mu}<1 σ m a x ( L A L ) ≤ μ ˉ < 1 for all θ ∈ Ω \theta\in\Omega θ ∈ Ω and all η j ≥ η \eta_j\geq\eta η j ≥ η .
It follows that [ G ^ L A L , L β ⊗ S ^ ] ∣ O ^ ⟩ [\hat{G}_{LAL,L\beta}\otimes\hat{S}]|\hat{O}\rangle [ G ^ L A L , L β ⊗ S ^ ] ∣ O ^ ⟩ for a Gaussian unitary S ^ \hat{S} S ^ with squeezing at most arctanh μ ˉ \operatorname{arctanh}\bar{\mu} arctanh μ ˉ and displacement bounded on Ω \Omega Ω (where θ j < − 2 ln ∣ B 0 j ∣ \theta_j<-2\ln|B_{0j}| θ j < − 2 ln ∣ B 0 j ∣ ). Pulling S ^ \hat{S} S ^ to the left writes the normalized signal–loss state as S ^ ∣ ϕ ⟩ \hat{S}|\phi\rangle S ^ ∣ ϕ ⟩ , with ∣ ϕ ⟩ ∝ S ^ † h ( a ^ 0 † , l ^ † ) S ^ ∣ 0 ⟩ |\phi\rangle\propto\hat{S}^\dagger h(\hat{a}_0^\dagger,\hat{l}^\dagger)\hat{S}|0\rangle ∣ ϕ ⟩ ∝ S ^ † h ( a ^ 0 † , l ^ † ) S ^ ∣0 ⟩ . Since S ^ \hat{S} S ^ transforms the mode operators affinely, ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ contains at most N N N photons, and S ^ † l ^ j † l ^ j S ^ \hat{S}^\dagger\hat{l}_j^\dagger\hat{l}_j\hat{S} S ^ † l ^ j † l ^ j S ^ is a quadratic polynomial in the mode operators whose coefficients are bounded in terms of μ ˉ \bar{\mu} μ ˉ , B B B and b b b . The mean photon number ⟨ ϕ ∣ S ^ † l ^ j † l ^ j S ^ ∣ ϕ ⟩ \langle\phi|\hat{S}^\dagger\hat{l}_j^\dagger\hat{l}_j\hat{S}|\phi\rangle ⟨ ϕ ∣ S ^ † l ^ j † l ^ j S ^ ∣ ϕ ⟩ of every loss mode is therefore at most a constant N l o s s N_{\mathrm{loss}} N loss depending only on μ ˉ \bar{\mu} μ ˉ , m m m , N N N , B B B and b b b . By (24) , every stationary point has ⟨ n ^ j ⟩ q = ⟨ n ^ j ⟩ q ≤ ⟨ n ^ j ⟩ q + n l o s s \langle\hat{n}_j\rangle_q=\langle\hat{n}_j\rangle_q\leq\langle\hat{n}_j\rangle_q+n_{\mathrm{loss}} ⟨ n ^ j ⟩ q = ⟨ n ^ j ⟩ q ≤ ⟨ n ^ j ⟩ q + n loss .
By the mean-value parametrization (App. A), θ ↦ ⟨ n ^ ⟩ \theta\mapsto\langle\hat{n}\rangle θ ↦ ⟨ n ^ ⟩ maps Ω \Omega Ω one-to-one onto the open positive orthant, and its inverse is continuous because its Jacobian J J J is positive definite. The preimage S \mathcal{S} S of the box ∏ j [ n j , n j + N l o s s ] \prod_j[n_j,n_j+N_{\mathrm{loss}}] ∏ j [ n j , n j + N loss ] is therefore a compact subset of Ω \Omega Ω , and so is its convex hull, since Ω \Omega Ω is convex.
On conv S \operatorname{conv}\mathcal{S} conv S , Σ ⪰ ζ I \Sigma\succeq\zeta I Σ ⪰ ζ I and p θ ( n ) ≥ p 0 p_\theta(n)\geq p_0 p θ ( n ) ≥ p 0 for some ζ , p 0 > 0 \zeta,p_0>0 ζ , p 0 > 0 , where M ⪯ M ′ ⪯ M ′ ′ M\preceq M'\preceq M'' M ⪯ M ′ ⪯ M ′′ is positive semidefinite. With η min = min j η j \eta_{\min}=\min_j\eta_j η m i n = min j η j ,
q ( k ) ≤ q ( k ) q ( n ) ≤ 1 p 0 ∏ j ( k j n j ) ( 1 − η min ) k j − n j (48) q(k)\leq\frac{q(k)}{q(n)}\leq\frac{1}{p_0}\prod_j\binom{k_j}{n_j}(1-\eta_{\min})^{k_j-n_j} \tag*{(48)} q ( k ) ≤ q ( n ) q ( k ) ≤ p 0 1 j ∏ ( n j k j ) ( 1 − η m i n ) k j − n j (48)
for k ≥ n k\geq n k ≥ n , using p θ ( k ) ≤ 1 p_\theta(k)\leq1 p θ ( k ) ≤ 1 and g n ( k ) / g n ( n ) = ∏ j ( k j n j ) ( 1 − η j ) k j − n j g_n(k)/g_n(n)=\prod_j\binom{k_j}{n_j}(1-\eta_j)^{k_j-n_j} g n ( k ) / g n ( n ) = ∏ j ( n j k j ) ( 1 − η j ) k j − n j . Hence
Cov q ( k ) ⪯ [ ∑ k ∣ k − n ∣ 2 q ( k ) ] I \operatorname{Cov}_q(k)\preceq\left[\sum_k |k-n|^2q(k)\right]I Cov q ( k ) ⪯ [ k ∑ ∣ k − n ∣ 2 q ( k ) ] I
⪯ 1 p 0 ∑ k ≥ n ∣ k − n ∣ 2 ∏ j ( k j n j ) ( 1 − η min ) k j − n j , \preceq\frac{1}{p_0}\sum_{k\geq n}|k-n|^2\prod_j\binom{k_j}{n_j}(1-\eta_{\min})^{k_j-n_j}, ⪯ p 0 1 k ≥ n ∑ ∣ k − n ∣ 2 j ∏ ( n j k j ) ( 1 − η m i n ) k j − n j ,
which tends to zero as η min → 1 \eta_{\min}\to1 η m i n → 1 . For η min \eta_{\min} η m i n close enough to one, Cov q ( k ) ≺ Σ ⪯ ζ I \operatorname{Cov}_q(k)\prec\Sigma\preceq\zeta I Cov q ( k ) ≺ Σ ⪯ ζ I on conv S \operatorname{conv}\mathcal{S} conv S , and by (24) ln p S \ln p_S ln p S is strictly concave there.
A strictly concave function on the convex set conv S \operatorname{conv}\mathcal{S} conv S , which contains every stationary point, has at most one stationary point. A maximum exists, as shown above, and since it lies in the open set Ω \Omega Ω , it is a stationary point. □
Dark counts keep the arrived photon numbers uncertain even at unit efficiency, so Cov q ( k ) \operatorname{Cov}_q(k) Cov q ( k ) does not vanish as η j → 1 \eta_j\to1 η j → 1 , and the proof does not extend to them. Figure S3 in the Supplemental Material shows the largest efficiency η c \eta_c η c with several maxima for symmetric sources.
References
Supplemental Material for “Efficient maximization of the heralding probability of non-Gaussian state preparation”
Vojtěch Kuchař; Jaromír Fiurášek
We use the notation of the main text: the source (1) with one signal mode, labeled 0 (§ 2.5 treats several), and m m m heralding modes, the damping θ j = ln X j \theta_j=\ln X_j θ j = ln X j , which turns the reference source with B B B and b b b into A = Λ B Λ A=\Lambda B\Lambda A = Λ B Λ and β = Λ b \boldsymbol{\beta}=\Lambda b β = Λ b , and the normal modes with σ i = tanh r i \sigma_i=\tanh r_i σ i = tanh r i and the squeezing 10 log 10 e 2 r i 10\log_{10}e^{2r_i} 10 log 10 e 2 r i dB. Directly coupled sources are written in the form (7), and all examples have s 0 = 0 s_0=0 s 0 = 0 .
Scaling of the heralding probability
§ 1.4 A estimates p S max p_S^{\max} p S m a x by the Gaussian estimate (22) , p S max ≈ [ ( 2 π ) m det Σ ⋆ ] − 1 / 2 p_S^{\max}\approx[(2\pi)^m\det\Sigma^\star]^{-1/2} p S m a x ≈ [( 2 π ) m det Σ ⋆ ] − 1/2 , which decays as a power of the number of detected photons N = ∑ j n j N=\sum_j n_j N = ∑ j n j , and § 1.4 B shows that a squeezing bound makes the decay exponential, so that ln p S max \ln p_S^{\max} ln p S m a x decreases by at least ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) per detected photon (Prop. 3). We test both statements on sources with one heralding mode, which can be solved exactly and show why the Gaussian estimate works and when it fails.
One heralding mode
For one heralding mode, the form (7) with s 0 = 0 s_0=0 s 0 = 0 has B 01 = 1 B_{01}=1 B 01 = 1 and B 11 = s 1 B_{11}=s_1 B 11 = s 1 , and the admissible set is X < 1 / ( 1 + ∣ s 1 ∣ ) X<1/(1+|s_1|) X < 1/ ( 1 + ∣ s 1 ∣ ) with X = e θ X=e^\theta X = e θ . Without displacement, mean matching is a quadratic equation for X X X , whose admissible root is the closed form of Ref. [42 ] . Figure S1 shows three families. For s 1 = 0 s_1=0 s 1 = 0 , a two-mode squeezed vacuum that heralds the Fock state ∣ n ⟩ |n\rangle ∣ n ⟩ , the herald statistics are thermal, p θ ( k ) = ( 1 − X ) X k p_\theta(k)=(1-X)X^k p θ ( k ) = ( 1 − X ) X k , and mean matching gives X ⋆ = n / ( n + 1 ) X^\star=n/(n+1) X ⋆ = n / ( n + 1 ) and p S max = n n / ( n + 1 ) n + 1 p_S^{\max}=n^n/(n+1)^{n+1} p S m a x = n n / ( n + 1 ) n + 1 [42 ] . For s 1 = 1 s_1=1 s 1 = 1 , they are
Figure S1. Damping as exponential tilting, as in Figure 2 , for one heralding mode and the pattern n = 8 n=8 n = 8 . (a) s 1 = 0 s_1=0 s 1 = 0 , whose heralding mode is thermal. (b) s 1 = 1 s_1=1 s 1 = 1 , Eq. (49) . (c) s 1 = 0 s_1=0 s 1 = 0 with the displacement b = ( 0 , 2 ) \boldsymbol{b}=(0,2) b = ( 0 , 2 ) in the heralding mode (App. D). The top row shows the herald distributions p θ ( k ) p_\theta(k) p θ ( k ) at X = 1 / 4 X=1/4 X = 1/4 , at the optimum θ ⋆ \theta^\star θ ⋆ , where ⟨ n ^ ⟩ = n \langle\hat{n}\rangle=n ⟨ n ^ ⟩ = n , and beyond it, where ⟨ n ^ ⟩ = 4 n \langle\hat{n}\rangle=4n ⟨ n ^ ⟩ = 4 n , and the markers give p θ ( n ) = p S ( θ ) p_\theta(n)=p_S(\theta) p θ ( n ) = p S ( θ ) . (d)–(f) The optimal distributions p θ ⋆ ( k ) p_{\theta^\star}(k) p θ ⋆ ( k ) (bars) with their continuum limits for large n n n , integrated over [ k − 1 2 , k + 1 2 ] [k-\frac{1}{2},k+\frac{1}{2}] [ k − 2 1 , k + 2 1 ] (dashed). These are the exponential distribution with mean n n n , the gamma distribution with shape 1 / 2 1/2 1/2 and mean n n n , and the Gaussian distribution with mean n n n and variance Σ ⋆ \Sigma^\star Σ ⋆ . The panels give the variance Σ ⋆ \Sigma^\star Σ ⋆ , the skewness γ 1 \gamma_1 γ 1 and the excess kurtosis γ 2 \gamma_2 γ 2 of p θ ⋆ p_{\theta^\star} p θ ⋆ , computed from the derivatives of Φ \Phi Φ at θ ⋆ \theta^\star θ ⋆ , which are the cumulants of p θ p_\theta p θ .
p θ ( k ) = ( 1 − 2 X ) 1 / 2 ( 2 k k ) ( X 2 ) k , (49) p_\theta(k)=(1-2X)^{1/2}\binom{2k}{k}\left(\frac{X}{2}\right)^k, \tag*{(49)} p θ ( k ) = ( 1 − 2 X ) 1/2 ( k 2 k ) ( 2 X ) k , (49)
half the photon number of a squeezed vacuum with tanh 2 r = 2 X \tanh^2r=2X tanh 2 r = 2 X , and X ⋆ = n / ( 2 n + 1 ) X^\star=n/(2n+1) X ⋆ = n / ( 2 n + 1 ) . In each case p S max = p θ ⋆ ( n ) p_S^{\max}=p_{\theta^\star}(n) p S m a x = p θ ⋆ ( n ) is the probability that the optimal distribution assigns to its own mean, which the Gaussian estimate replaces by the height of a Gaussian with the same variance. For large n n n , the optimal distributions for s 1 = 0 s_1=0 s 1 = 0 and s 1 = 1 s_1=1 s 1 = 1 approach an exponential distribution and a gamma distribution with shape 1 / 2 1/2 1/2 , whose heights at the mean are smaller than the estimate by the constant factors e / 2 π = 1.08 e/\sqrt{2\pi}=1.08 e / 2 π = 1.08 and e / 2 = 1.17 \sqrt{e/2}=1.17 e /2 = 1.17 . The estimate thus has the right power of n n n .
The displaced source heralds photon-added coherent states [42 ] . Its heralding mode is a displaced thermal state with the thermal photon number n t h = X / ( 1 − X ) n_{\mathrm{th}}=X/(1-X) n th = X / ( 1 − X ) and the coherent photon number n c o h = X ∣ b 1 ∣ 2 / ( 1 − X ) 2 n_{\mathrm{coh}}=X|b_1|^2/(1-X)^2 n coh = X ∣ b 1 ∣ 2 / ( 1 − X ) 2 , whose photon-number variance is Σ = n t h ( n t h + 1 ) + n c o h ( 2 n t h + 1 ) \Sigma=n_{\mathrm{th}}(n_{\mathrm{th}}+1)+n_{\mathrm{coh}}(2n_{\mathrm{th}}+1) Σ = n th ( n th + 1 ) + n coh ( 2 n th + 1 ) . For n ≫ ∣ b 1 ∣ 2 n\gg|b_1|^2 n ≫ ∣ b 1 ∣ 2 and n ≫ 1 / ∣ b 1 ∣ 2 n\gg1/|b_1|^2 n ≫ 1/∣ b 1 ∣ 2 , mean matching gives 1 − X ⋆ ≈ ∣ b 1 ∣ / n 1-X^\star\approx|b_1|/\sqrt{n} 1 − X ⋆ ≈ ∣ b 1 ∣/ n . The optimum then holds about n / ∣ b 1 ∣ \sqrt{n}/|b_1| n /∣ b 1 ∣ thermal photons and nearly n n n coherent ones, Σ ⋆ ≈ 2 n 3 / 2 / ∣ b 1 ∣ \Sigma^\star\approx2n^{3/2}/|b_1| Σ ⋆ ≈ 2 n 3/2 /∣ b 1 ∣ , and the Gaussian estimate gives p S max ≈ ∣ b 1 ∣ 1 / 2 / ( 2 π n 3 / 4 ) p_S^{\max}\approx|b_1|^{1/2}/(2\sqrt{\pi}n^{3/4}) p S m a x ≈ ∣ b 1 ∣ 1/2 / ( 2 π n 3/4 ) , the n − 3 / 4 n^{-3/4} n − 3/4 law of Ref. [42 ] including its prefactor. Here the estimate becomes exact for large n n n , as the optimal distribution approaches a Gaussian. For b 1 = 1 b_1=1 b 1 = 1 , the ratio of p S max p_S^{\max} p S m a x to the estimate is 0.947 at n = 8 n=8 n = 8 and 0.998 at n = 10 4 n=10^4 n = 1 0 4 .
Limits of the Gaussian estimate
The Gaussian estimate would follow from the local central limit theorem [74 ] , Ch. VII for sums of many independent contributions. Here the photons come from only m + 1 m+1 m + 1 interfered normal modes, a number that stays fixed while the pattern grows, so the theorem does not apply, and Eq. (22) is a heuristic. It needs the optimal distribution to vary smoothly on the scale of one photon near its mean, and it fails in two situations.
First, the optimal herald statistics can have a dip at the registered pattern. For the two-mode source s 1 = 5.6179 s_1=5.6179 s 1 = 5.6179 , s 2 = 3.3716 s_2=3.3716 s 2 = 3.3716 , ν 12 = − 3.1118 \nu_{12}=-3.1118 ν 12 = − 3.1118 with the pattern ( 4 , 3 ) (4,3) ( 4 , 3 ) , the optimal statistics assign the probability 1.4 × 10 − 5 1.4\times10^{-5} 1.4 × 1 0 − 5 to ( 4 , 3 ) (4,3) ( 4 , 3 ) but about 10 − 2 10^{-2} 1 0 − 2 to each of its neighbors ( 5 , 3 ) (5,3) ( 5 , 3 ) and ( 4 , 4 ) (4,4) ( 4 , 4 ) , and p S max p_S^{\max} p S m a x is 1.8 × 10 − 3 1.8\times10^{-3} 1.8 × 1 0 − 3 times the estimate.
Second, the estimate assumes a fixed number of heralding modes. If the photons that a two-mode squeezed vacuum sends towards the detectors are split over m = N m=N m = N heralding modes that each register one photon (s j = ν j k = 0 s_j=\nu_{jk}=0 s j = ν j k = 0 , n j = 1 n_j=1 n j = 1 ), the optimal damping parameters are equal by symmetry, p S = N ! X N ( 1 − N X ) p_S=N!X^N(1-NX) p S = N ! X N ( 1 − N X ) , and p S max = N ! / ( N + 1 ) N + 1 ≈ 2 π N e − N − 1 / N p_S^{\max}=N!/(N+1)^{N+1}\approx\sqrt{2\pi N}e^{-N-1}/N p S m a x = N ! / ( N + 1 ) N + 1 ≈ 2 π N e − N − 1 / N decays exponentially even without a bound.
Decay under a bound
Under a bound μ \mu μ , Prop. 3 shows that ln p S max \ln p_S^{\max} ln p S m a x decreases by at least ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) per detected photon. For s 1 = 0 s_1=0 s 1 = 0 , σ max ( A ) = X \sigma_{\max}(A)=\sqrt{X} σ m a x ( A ) = X , so the bound is active for μ 2 < n / ( n + 1 ) \mu^2<n/(n+1) μ 2 < n / ( n + 1 ) , and then
p S max ( μ ) = ( 1 − μ 2 ) μ 2 n , (50) p_S^{\max}(\mu)=(1-\mu^2)\mu^{2n}, \tag*{(50)} p S m a x ( μ ) = ( 1 − μ 2 ) μ 2 n , (50)
which decreases by 2 ln ( 1 / μ ) 2\ln(1/\mu) 2 ln ( 1/ μ ) per photon. For s 1 = 1 s_1=1 s 1 = 1 , σ max ( A ) = [ X + ( X 2 + 4 X ) 1 / 2 ] / 2 \sigma_{\max}(A)=[X+(X^2+4X)^{1/2}]/2 σ m a x ( A ) = [ X + ( X 2 + 4 X ) 1/2 ] /2 , so the bound reads X ≤ X μ = μ 2 / ( 1 + μ ) X\le X_\mu=\mu^2/(1+\mu) X ≤ X μ = μ 2 / ( 1 + μ ) , which is active for all large n n n , and then
p S max ( μ ) = ( 1 − 2 X μ ) 1 / 2 ( 2 n n ) ( X μ 2 ) n , (51) p_S^{\max}(\mu)=(1-2X_\mu)^{1/2}\binom{2n}{n}\left(\frac{X_\mu}{2}\right)^n, \tag*{(51)} p S m a x ( μ ) = ( 1 − 2 X μ ) 1/2 ( n 2 n ) ( 2 X μ ) n , (51)
which decreases by ln [ ( 1 + μ ) / ( 2 μ 2 ) ] \ln[(1+\mu)/(2\mu^2)] ln [( 1 + μ ) / ( 2 μ 2 )] per photon, which is 1.52 to 1.56 times ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) for bounds of 6 to 12 dB. For N N N heralding modes with one photon each, p S max ( μ ) = N ! ( μ 2 / N ) N ( 1 − μ 2 ) p_S^{\max}(\mu)=N!(\mu^2/N)^N(1-\mu^2) p S m a x ( μ ) = N ! ( μ 2 / N ) N ( 1 − μ 2 ) for μ 2 < N / ( N + 1 ) \mu^2<N/(N+1) μ 2 < N / ( N + 1 ) , which decreases by 1 + 2 ln ( 1 / μ ) 1+2\ln(1/\mu) 1 + 2 ln ( 1/ μ ) per photon.
For random sources with two and three heralding modes, chosen as in Table S1 , we computed the exact bounded optima for scaled patterns c n c\boldsymbol{n} c n , a base pattern with every entry multiplied by c = 1 , 2 , … c=1,2,\ldots c = 1 , 2 , … , up to N ≈ 200 N\approx200 N ≈ 200 . Fitting − ln p S max = a 0 + a 1 N + a 2 ln N -\ln p_S^{\max}=a_0+a_1N+a_2\ln N − ln p S m a x = a 0 + a 1 N + a 2 ln N over the upper half of the range of c c c (to extract the asymptotic decrease a 1 a_1 a 1 per photon) gives a 1 a_1 a 1 between 1.40 and 1.97 times ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) at bounds of 6 to 12 dB, and a 1 a_1 a 1 close to zero without a bound. For these sources, the universal lower bound ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) of Prop. 3 is therefore not tight.
Table S1. Newton steps until λ 2 / 2 < 10 − 12 \lambda^2/2 < 10^{-12} λ 2 /2 < 1 0 − 12 for random sources: s j s_j s j and ν j k \nu_{jk} ν j k independent circularly symmetric complex Gaussian variables with ⟨ ∣ s j ∣ 2 ⟩ = ⟨ ∣ ν j k ∣ 2 ⟩ = 1 \langle\lvert s_j\rvert^2\rangle= \langle\lvert\nu_{jk}\rvert^2\rangle= 1 ⟨∣ s j ∣ 2 ⟩ = ⟨∣ ν j k ∣ 2 ⟩ = 1 , and n j n_j n j drawn uniformly from { 1 , … , 9 } \{1,\ldots,9\} { 1 , … , 9 } . There are 1000 instances for each m m m (500 for m = 30 m=30 m = 30 and 300 for m = 50 m=50 m = 50 ). The random seeds are in Ref. [50 ] . The last row gives the median squeezing of the most squeezed normal mode at the optimum.
The fitted a 1 a_1 a 1 exceed ln ( 1 / μ ) \ln(1/\mu) ln ( 1/ μ ) because the heralded state carries photons as well, which the bound (D1) with k min > 0 k_{\min}>0 k m i n > 0 takes into account. For the Fock state ∣ n ⟩ |n\rangle ∣ n ⟩ , k min = n k_{\min}=n k m i n = n gives p S ≤ μ 2 n p_S\le\mu^{2n} p S ≤ μ 2 n , which exceeds the exact value (S2) only by the factor 1 / ( 1 − μ 2 ) 1/(1-\mu^2) 1/ ( 1 − μ 2 ) and decreases as fast. For the random sources, minimizing the right-hand side of Eq. (39) over k min k_{\min} k m i n gives values within 0.07 ln ( 1 / μ ) 0.07\ln(1/\mu) 0.07 ln ( 1/ μ ) of the fitted a 1 a_1 a 1 . The bound is weak only when the number of heralding modes grows with N N N . For N N N heralding modes with one photon each, it tends to one above 10 dB, although ln p S max \ln p_S^{\max} ln p S m a x decreases by 1 + 2 ln ( 1 / μ ) 1+2\ln(1/\mu) 1 + 2 ln ( 1/ μ ) per photon.
Newton’s method
Newton’s method maximizes ln p S \ln p_S ln p S by solving the mean-matching condition ⟨ n ^ ⟩ = n \langle\hat{n}\rangle= n ⟨ n ^ ⟩ = n , so its result is easy to check: for every instance of Table S1 , the mean photon numbers of the damped source agreed with the pattern to better than 10 − 12 10^{-12} 1 0 − 12 at the end of the run.
Near a point θ \theta θ , Newton’s method replaces ln p S \ln p_S ln p S by its second-order expansion and moves to the maximum of this quadratic, which gives the step Δ = Σ − 1 ( n − ⟨ n ^ ⟩ ) \Delta= \Sigma^{-1}(n-\langle\hat{n}\rangle) Δ = Σ − 1 ( n − ⟨ n ^ ⟩) . The quadratic model predicts that the step increases ln p S \ln p_S ln p S by λ 2 / 2 \lambda^2/2 λ 2 /2 , where λ 2 = ( n − ⟨ n ^ ⟩ ) T Δ \lambda^2 = (n-\langle\hat{n}\rangle)^{\mathsf T}\Delta λ 2 = ( n − ⟨ n ^ ⟩ ) T Δ is called the squared Newton decrement . Near the optimum, λ 2 / 2 \lambda^2/2 λ 2 /2 approximates the remaining gain ln p S max − ln p S \ln p_S^{\max}-\ln p_S ln p S m a x − ln p S [Eq. (29) ], which makes it a natural stopping criterion. Far from the optimum, a full step can leave Ω \Omega Ω or decrease p S p_S p S . The step is then shortened by backtracking , that is, the points θ + t Δ \theta+t\Delta θ + t Δ are tested for t = 1 , 1 2 , 1 4 , … t=1,\frac{1}{2},\frac{1}{4},\ldots t = 1 , 2 1 , 4 1 , … until one lies in Ω \Omega Ω and increases ln p S \ln p_S ln p S by at least a small fixed fraction of t λ 2 t\lambda^2 t λ 2 .
The convergence guarantee of Sec. III C [58 Sec. 9.5.3] gives no usable bound on the number of steps, because it depends on curvature constants of ln p S \ln p_S ln p S that are not known in advance. Steps become short when an iterate lands very close to the boundary of Ω \Omega Ω while the optimum also lies close to it, which happens for patterns with many photons per mode or for many heralding modes.
Our implementation [50 ] starts on the diagonal θ 1 = ⋯ = θ m \theta_1=\cdots=\theta_m θ 1 = ⋯ = θ m at the point where σ max ( A ) = 1 / 2 \sigma_{\max}(A)=1/2 σ m a x ( A ) = 1/2 (for s 0 = 0 s_0=0 s 0 = 0 ) and stops when λ 2 / 2 < 10 − 12 \lambda^2/2<10^{-12} λ 2 /2 < 1 0 − 12 . Table S1 gives the number of Newton steps for random sources with up to nine photons per heralding mode. All instances converged.
One optimization, including the computation of the starting point, took a median of 1.8 ms for m = 1 m=1 m = 1 , 23 ms for m = 50 m=50 m = 50 and 122 ms for m = 100 m=100 m = 100 on one core of an Intel Xeon processor at 2.1 GHz.
A continuation in the pattern avoids the short steps and is the default in our implementation. It first solves the problem for the pattern n n n divided by the smallest power of 4 for which no entry exceeds 16, and then for 4 times larger patterns in turn, each time starting from the previous optimum, until it reaches n n n . The intermediate patterns need not be integers, because the maximizer of n ⋅ θ − Φ ( θ ) n\cdot\theta-\Phi(\theta) n ⋅ θ − Φ ( θ ) exists for all real n j > 0 n_j>0 n j > 0 (remark after Cor. 1). With this continuation, at most 51 steps sufficed for patterns with up to 9 × 10 4 9\times10^4 9 × 1 0 4 photons per mode. Without the continuation, patterns 10 3 10^3 1 0 3 to 10 4 10^4 1 0 4 times larger than those of Table S1 needed up to several hundred steps for m ≥ 8 m\geq8 m ≥ 8 , and some instances with m = 20 m=20 m = 20 and 50 did not converge within 1000 steps.
Bounded squeezing
With a bound σ max ( A ) ≤ μ \sigma_{\max}(A)\leq\mu σ m a x ( A ) ≤ μ , the optimum lies on the boundary of Ω μ \Omega_\mu Ω μ whenever the bound is active. Mean matching is then replaced by the condition (21) , ⟨ n ^ j ⟩ = n j − ξ ∣ U j ∣ 2 \langle\hat{n}_j\rangle=n_j-\xi\lvert U_j\rvert^2 ⟨ n ^ j ⟩ = n j − ξ ∣ U j ∣ 2 . The source delivers fewer photons than the pattern prescribes, mostly in the heralding modes that make up the most squeezed normal mode, and ξ = d ln p S max / d ln μ \xi=\mathrm{d}\ln p_S^{\max}/\mathrm{d}\ln\mu ξ = d ln p S m a x / d ln μ measures what the bound costs.
Barrier method
The bounded optimum lies on the boundary of Ω μ \Omega_\mu Ω μ whenever the bound is active, so Newton’s method of Sec. III C cannot be used directly. We use a logarithmic barrier in the sense of Ref. [58, Sec. 11.2], which replaces the constraint by a term that diverges at the boundary. On Ω μ \Omega_\mu Ω μ ,
Ψ ( θ ) ≡ ln det ( μ 2 I − A A T ) = 2 ( m + 1 ) ln μ − 2 Φ B / μ ( θ ) , (52) \Psi(\theta)\equiv\ln\det(\mu^2 I-AA^{\mathsf T})=2(m+1)\ln\mu-2\Phi_{B/\mu}(\theta), \tag*{(52)} Ψ ( θ ) ≡ ln det ( μ 2 I − A A T ) = 2 ( m + 1 ) ln μ − 2 Φ B / μ ( θ ) , (52)
with Φ B / μ \Phi_{B/\mu} Φ B / μ the log-partition function of the reference source ∣ G ~ B / μ , 0 ⟩ \lvert\widetilde{G}_{B/\mu,0}\rangle ∣ G B / μ , 0 ⟩ . The gradient and the Hessian of Ψ \Psi Ψ are therefore respectively − 2 ⟨ n ^ ⟩ A / μ -2\langle\hat{n}\rangle_{A/\mu} − 2 ⟨ n ^ ⟩ A / μ and − 2 Σ A / μ -2\Sigma_{A/\mu} − 2 Σ A / μ , the moments of ∣ G ~ A / μ , 0 ⟩ \lvert\widetilde{G}_{A/\mu,0}\rangle ∣ G A / μ , 0 ⟩ , so Ψ \Psi Ψ is strictly concave and tends to − ∞ -\infty − ∞ at the boundary of Ω μ \Omega_\mu Ω μ .
The method maximizes τ ln p S + Ψ \tau\ln p_S+\Psi τ ln p S + Ψ by Newton’s method with backtracking for τ = 1 , 10 , 100 , … \tau=1,10,100,\ldots τ = 1 , 10 , 100 , … , each time starting from the previous maximizer. Large τ \tau τ weights the objective more, so the maximizer approaches the bounded optimum. The following proposition says how fast, and certifies the optimum.
Proposition S1. For directly coupled sources (H3), let τ > 0 \tau> 0 τ > 0 and let θ τ \theta_\tau θ τ maximize τ ln p S + Ψ \tau\ln p_S + \Psi τ ln p S + Ψ over Ω μ \Omega_\mu Ω μ . Then
0 ≤ ln p S max ( μ ) − ln p S ( θ τ ) ≤ m + 1 τ . (53) 0 \leq\ln p_S^{\max}(\mu) - \ln p_S(\theta_\tau) \leq\frac{m+1}{\tau}. \tag*{(53)} 0 ≤ ln p S m a x ( μ ) − ln p S ( θ τ ) ≤ τ m + 1 . (53)
Proof. The lower bound holds because θ τ ∈ Ω μ \theta_\tau\in\Omega_\mu θ τ ∈ Ω μ . The upper bound follows the textbook argument for barrier methods, in which the stationarity condition at θ τ \theta_\tau θ τ bounds ln p S \ln p_S ln p S on all of Ω μ \Omega_\mu Ω μ from above. In the textbook case, the log-det barrier certifies the gap ( m + 1 ) / τ (m+1)/\tau ( m + 1 ) / τ , one unit per eigenvalue, for a matrix inequality μ 2 I − M ⪰ 0 \mu^2 I-M \succeq0 μ 2 I − M ⪰ 0 in which M M M is a convex function of the variables in the matrix sense, for instance an affine one [58 Sec. 11.6] . Here M = A A † M=AA^\dagger M = A A † is not of this kind, and the convexity of the functions ℓ k \ell_k ℓ k of Prop. 2 takes over its role. Let
ζ i = 2 σ i 2 μ 2 − σ i 2 at θ τ , (54) \zeta_i = \frac{2\sigma_i^2}{\mu^2-\sigma_i^2}\quad\text{at }\theta_\tau, \tag*{(54)} ζ i = μ 2 − σ i 2 2 σ i 2 at θ τ , (54)
which does not increase with i i i because σ 1 ≥ σ 2 ≥ ⋯ \sigma_1 \geq\sigma_2 \geq\cdots σ 1 ≥ σ 2 ≥ ⋯ , and set ζ m + 2 = 0 \zeta_{m+2}=0 ζ m + 2 = 0 . Terms with σ i = 0 \sigma_i=0 σ i = 0 , which occur only if B B B is singular, have ζ i = 0 \zeta_i=0 ζ i = 0 and are omitted below. Since Ψ = ∑ i ln ( μ 2 − σ i 2 ) \Psi=\sum_i\ln(\mu^2-\sigma_i^2) Ψ = ∑ i ln ( μ 2 − σ i 2 ) , its gradient is − ∑ i ζ i ∇ ln σ i -\sum_i\zeta_i\nabla\ln\sigma_i − ∑ i ζ i ∇ ln σ i where the σ i \sigma_i σ i are distinct. Writing ln σ i = ℓ i − ℓ i − 1 \ln\sigma_i=\ell_i-\ell_{i-1} ln σ i = ℓ i − ℓ i − 1 with ℓ 0 = 0 \ell_0=0 ℓ 0 = 0 and collecting the terms of each ℓ k \ell_k ℓ k gives the second form of Eq. (55) below, in which ℓ k \ell_k ℓ k has the coefficient ζ k − ζ k + 1 ≥ 0 \zeta_k-\zeta_{k+1}\geq0 ζ k − ζ k + 1 ≥ 0 . This form also holds where singular values coincide. By first-order degenerate perturbation theory, a group of equal singular values σ p + 1 = ⋯ = σ p + r \sigma_{p+1}=\cdots=\sigma_{p+r} σ p + 1 = ⋯ = σ p + r enters the gradient of Ψ \Psi Ψ only through the sum of their logarithms, which is ℓ p + r − ℓ p \ell_{p+r}-\ell_p ℓ p + r − ℓ p , and the coefficients of the ℓ k \ell_k ℓ k inside the group vanish. The function ℓ k \ell_k ℓ k is differentiable wherever σ k > σ k + 1 \sigma_k>\sigma_{k+1} σ k > σ k + 1 , so only differentiable ℓ k \ell_k ℓ k appear. Setting the gradient of τ ln p S + Ψ \tau\ln p_S+\Psi τ ln p S + Ψ to zero gives
∇ ln p S = 1 τ ∑ i ζ i ∇ ln σ i = 1 τ ∑ k ( ζ k − ζ k + 1 ) ∇ ℓ k . (55) \nabla\ln p_S=\frac{1}{\tau}\sum_i\zeta_i\nabla\ln\sigma_i=\frac{1}{\tau}\sum_k(\zeta_k-\zeta_{k+1})\nabla\ell_k. \tag*{(55)} ∇ ln p S = τ 1 i ∑ ζ i ∇ ln σ i = τ 1 k ∑ ( ζ k − ζ k + 1 ) ∇ ℓ k . (55)
Let θ ′ ∈ Ω μ \theta'\in\Omega_\mu θ ′ ∈ Ω μ and d = θ ′ − θ τ d=\theta'-\theta_\tau d = θ ′ − θ τ . A concave function lies below its tangent plane and a convex function above it, so ln p S ( θ ′ ) − ln p S ( θ τ ) ≤ ∇ ln p S ⋅ d \ln p_S(\theta')-\ln p_S(\theta_\tau)\leq\nabla\ln p_S\cdot d ln p S ( θ ′ ) − ln p S ( θ τ ) ≤ ∇ ln p S ⋅ d and ∇ ℓ k ⋅ d ≤ ℓ k ( θ ′ ) − ℓ k ( θ τ ) \nabla\ell_k\cdot d\leq\ell_k(\theta')-\ell_k(\theta_\tau) ∇ ℓ k ⋅ d ≤ ℓ k ( θ ′ ) − ℓ k ( θ τ ) . With Eq. (55) , whose coefficients ζ k − ζ k + 1 \zeta_k-\zeta_{k+1} ζ k − ζ k + 1 are nonnegative, and with ℓ k ( θ ′ ) ≤ k ln μ \ell_k(\theta')\leq k\ln\mu ℓ k ( θ ′ ) ≤ k ln μ on Ω μ \Omega_\mu Ω μ ,
ln p S ( θ ′ ) − ln p S ( θ τ ) ≤ 1 τ ∑ k ( ζ k − ζ k + 1 ) [ ℓ k ( θ ′ ) − ℓ k ( θ τ ) ] ≤ 1 τ ∑ k ( ζ k − ζ k + 1 ) ∑ i ≤ k ln μ σ i = 1 τ ∑ i ζ i ln μ σ i ≤ m + 1 τ . (56) \begin{aligned}
\ln p_S(\theta')-\ln p_S(\theta_\tau)
&\leq\frac{1}{\tau}\sum_k(\zeta_k-\zeta_{k+1})[\ell_k(\theta')-\ell_k(\theta_\tau)]\\
&\leq\frac{1}{\tau}\sum_k(\zeta_k-\zeta_{k+1})\sum_{i\leq k}\ln\frac{\mu}{\sigma_i}\\
&= \frac{1}{\tau}\sum_i\zeta_i\ln\frac{\mu}{\sigma_i}\leq\frac{m+1}{\tau}. \tag*{(56)}
\end{aligned} ln p S ( θ ′ ) − ln p S ( θ τ ) ≤ τ 1 k ∑ ( ζ k − ζ k + 1 ) [ ℓ k ( θ ′ ) − ℓ k ( θ τ )] ≤ τ 1 k ∑ ( ζ k − ζ k + 1 ) i ≤ k ∑ ln σ i μ = τ 1 i ∑ ζ i ln σ i μ ≤ τ m + 1 . (56)
The last step uses ζ i ln ( μ / σ i ) = − w ln w / ( 1 − w ) ≤ 1 \zeta_i\ln(\mu/\sigma_i)=-w\ln w/(1-w)\leq1 ζ i ln ( μ / σ i ) = − w ln w / ( 1 − w ) ≤ 1 with w = σ i 2 / μ 2 w=\sigma_i^2/\mu^2 w = σ i 2 / μ 2 , which is ln x ≤ x − 1 \ln x\leq x-1 ln x ≤ x − 1 for x = 1 / w x=1/w x = 1/ w , and the fact that there are m + 1 m+1 m + 1 singular values. The supremum over θ ′ ∈ Ω μ \theta'\in\Omega_\mu θ ′ ∈ Ω μ then gives Eq. (53) .
Effect of the bound on the heralding probability
We follow the bounded optimum from 1 to 30 dB, each time starting from the optimum of the next tighter bound. For the sources with two heralding modes of Figure 4 , a bound of 15 dB keeps at least 99% of p S max p_S^{\max} p S m a x , 10 dB between 42 and 73%, and 6 dB between 2 and 13%. For the source of Figure 4 that heralds ( ∣ 0 ⟩ + ∣ 2 ⟩ + ∣ 4 ⟩ + ∣ 6 ⟩ ) / 2 (|0\rangle+|2\rangle+|4\rangle+|6\rangle)/2 ( ∣0 ⟩ + ∣2 ⟩ + ∣4 ⟩ + ∣6 ⟩) /2 with the pattern ( 3 , 3 ) (3,3) ( 3 , 3 ) , the best of them, a bound of 10 dB lowers p S max = 0.0132 p_S^{\max}=0.0132 p S m a x = 0.0132 to 0.0079, and the heralding modes then deliver 1.03 photons each on average instead of 3.
Figure S2 shows the same for an independent sample of random sources drawn from the same distribution as in Table S1 . These are benchmarks for the method rather than designs for particular targets, and their unbounded optima need more squeezing, with medians of 18.0 dB for m = 2 m=2 m = 2 and 25.3 dB for m = 12 m=12 m = 12 in this sample. A bound of 10 dB is therefore active in essentially every instance, and both the surviving fraction of p S max p_S^{\max} p S m a x and the delivered photons fall steeply with m m m . At this bound, the heralding modes deliver a median of 16% of the photons of the pattern for m = 2 m=2 m = 2 and 4% for m = 12 m=12 m = 12 .
Figure S2. Effect of a squeezing bound with ideal detection for random sources. (a) Random sources with complex control parameters chosen as in Table S1 : median of p S max ( μ ) / p S max p_{S}^{\max}(\mu)/p_{S}^{\max} p S m a x ( μ ) / p S m a x for m m m heralding modes, with 200 instances for m = 2 m=2 m = 2 , 3 and 5, 100 for m = 8 m=8 m = 8 and 60 for m = 12 m=12 m = 12 . (b) Fraction of degenerate optima, σ 1 = σ 2 = μ \sigma_{1}=\sigma_{2}=\mu σ 1 = σ 2 = μ , for the complex sources of (a) (dashed) and for sources with real control parameters (solid) for each m m m (colors as in (a)).
Equality bound
Fixing σ max = μ \sigma_{\max}=\mu σ m a x = μ , as in [44 Fig. 5] , restricts θ \theta θ to the boundary of Ω μ \Omega_\mu Ω μ , which is not convex, and p S p_S p S can have several local maxima on it. For example, the source s 1 = − 0.3427 s_1=-0.3427 s 1 = − 0.3427 , s 2 = 0.5129 s_2=0.5129 s 2 = 0.5129 , ν 12 = − 1.5773 \nu_{12}=-1.5773 ν 12 = − 1.5773 with the pattern ( 1 , 3 ) (1,3) ( 1 , 3 ) has two maxima on this boundary for μ = 0.9639 \mu=0.9639 μ = 0.9639 (17.4 dB), whose heights differ by 5.6%, although its unbounded optimum needs only 12.1 dB. Such local maxima do not arise if the bound is imposed as the inequality (18) , whose unique maximum the barrier method finds from any admissible starting point.
Optimality condition at degenerate optima
Where the largest singular value is degenerate, σ max \sigma_{\max} σ m a x need not be differentiable, and Eq. (21) , derived in App. C for a nondegenerate one, has to be generalized. Write the largest singular value as a maximum,
σ max ( A ) = max { Re ( u † A v ) : u , v ∈ C m + 1 unit } , (57) \sigma_{\max}(A)=\max\{\operatorname{Re}(u^{\dagger}Av):u,v\in\mathbb{C}^{m+1}\ \text{unit}\}, \tag*{(57)} σ m a x ( A ) = max { Re ( u † A v ) : u , v ∈ C m + 1 unit } , (57)
and let σ max = σ 1 = ⋯ = σ κ \sigma_{\max}=\sigma_{1}=\cdots=\sigma_{\kappa} σ m a x = σ 1 = ⋯ = σ κ with the Takagi vectors U D = ( U 1 , … , U κ ) U_D=(U_1,\ldots,U_\kappa) U D = ( U 1 , … , U κ ) . The maximizing pairs in Eq. (57) are ( U D a , U D ∗ a ) (U_Da,U_D^{*}a) ( U D a , U D ∗ a ) with unit a ∈ C κ a\in\mathbb{C}^{\kappa} a ∈ C κ , since we have A A † U D = σ max 2 U D AA^{\dagger}U_D=\sigma_{\max}^{2}U_D A A † U D = σ m a x 2 U D and A † U D = σ max U D ∗ A^{\dagger}U_D=\sigma_{\max}U_D^{*} A † U D = σ m a x U D ∗ . Danskin’s theorem [75 ] states that the directional derivative of a maximum such as Eq. (57) is the largest directional derivative among the maximizing pairs. With ∂ θ j A = 1 2 ( Π j A + A Π j ) \partial_{\theta_j}A=\frac{1}{2}(\Pi_jA+A\Pi_j) ∂ θ j A = 2 1 ( Π j A + A Π j ) it gives the one-sided directional derivative
lim t → 0 + ln σ max ( θ + t δ ) − ln σ max ( θ ) t = max Z ∑ j δ j Tr ( R j Z ) , (58) \lim_{t\to0^{+}}\frac{\ln\sigma_{\max}(\theta+t\delta)-\ln\sigma_{\max}(\theta)}{t}
=\max_{Z}\sum_j\delta_j\operatorname{Tr}(R_jZ), \tag*{(58)} t → 0 + lim t ln σ m a x ( θ + t δ ) − ln σ m a x ( θ ) = Z max j ∑ δ j Tr ( R j Z ) , (58)
with
( R j ) a b = Re ( U j a ∗ U j b ) . (59) (R_j)_{ab}=\operatorname{Re}(U_{ja}^{*}U_{jb}). \tag*{(59)} ( R j ) ab = Re ( U j a ∗ U j b ) . (59)
For the maximizing pair with a = x + i y a=x+iy a = x + i y , where x x x and y y y are real, the derivative of Re ( u † A v ) \operatorname{Re}(u^{\dagger}Av) Re ( u † A v ) along δ \delta δ is σ max ∑ j δ j ( x T R j x + y T R j y ) = σ max ∑ j δ j Tr ( R j Z ) \sigma_{\max}\sum_j\delta_j(x^{T}R_jx+y^{T}R_jy)=\sigma_{\max}\sum_j\delta_j\operatorname{Tr}(R_jZ) σ m a x ∑ j δ j ( x T R j x + y T R j y ) = σ m a x ∑ j δ j Tr ( R j Z ) with Z = x x T + y y T Z=xx^{T}+yy^{T} Z = x x T + y y T . The maximum in Eq. (58) can therefore be taken over the real symmetric positive semidefinite κ × κ \kappa\times\kappa κ × κ matrices Z Z Z of unit trace, which are the convex combinations of x x T xx^{T} x x T with real unit vectors x x x , because a linear function of Z Z Z is largest at one of these extreme points. The largest value of Tr ( M Z ) \operatorname{Tr}(MZ) Tr ( M Z ) over such Z Z Z is the largest eigenvalue of M M M , so the right-hand side of Eq. (58) is the largest eigenvalue of the real symmetric κ × κ \kappa\times\kappa κ × κ matrix ∑ j δ j R j \sum_j\delta_jR_j ∑ j δ j R j . This is first-order degenerate perturbation theory.
Along δ \delta δ , the κ \kappa κ -fold eigenvalue σ max 2 \sigma_{\max}^{2} σ m a x 2 of A A † AA^{\dagger} A A † splits according to the eigenvalues of 2 σ max ∑ j δ j R j 2\sigma_{\max}\sum_j\delta_jR_j 2 σ m a x ∑ j δ j R j , which is the derivative of A A † AA^{\dagger} A A † projected onto the span of U D U_D U D , and σ max \sigma_{\max} σ m a x follows the largest of them. Only a one-sided limit appears because for κ > 1 \kappa>1 κ > 1 the left- and right-hand derivatives, the smallest and the largest eigenvalue of ∑ j δ j R j \sum_j\delta_jR_j ∑ j δ j R j , generally differ. For κ = 1 \kappa=1 κ = 1 there is one matrix Z = 1 Z=1 Z = 1 and Eq. (58) reduces to the ordinary derivative ∂ ln σ max / ∂ θ j = ∣ U j 1 ∣ 2 \partial\ln\sigma_{\max}/\partial\theta_j=|U_{j1}|^{2} ∂ ln σ m a x / ∂ θ j = ∣ U j 1 ∣ 2 .
It is convenient to collect the right-hand side of Eq. (58) into a set of vectors,
ω ( Z ) = ( Tr R 1 Z , … , Tr R m Z ) , \omega(Z)=(\operatorname{Tr}R_1Z,\ldots,\operatorname{Tr}R_mZ), ω ( Z ) = ( Tr R 1 Z , … , Tr R m Z ) ,
N = { ω ( Z ) : Z ⪰ 0 , Tr Z = 1 } , (60) \mathcal{N}=\{\omega(Z):Z\succeq0,\ \operatorname{Tr}Z=1\}, \tag*{(60)} N = { ω ( Z ) : Z ⪰ 0 , Tr Z = 1 } , (60)
so that the directional derivative is max ω ∈ N ω ⋅ δ \max_{\omega\in\mathcal{N}}\omega\cdot\delta max ω ∈ N ω ⋅ δ . The set N \mathcal{N} N is compact and convex. For κ = 1 \kappa=1 κ = 1 it is the single vector ( ∣ U j 1 ∣ 2 ) j (|U_{j1}|^{2})_j ( ∣ U j 1 ∣ 2 ) j , the gradient of ln σ max \ln\sigma_{\max} ln σ m a x and thus the outward normal of the boundary of Ω μ \Omega_\mu Ω μ . For κ > 1 \kappa>1 κ > 1 the boundary generally has an edge at θ \theta θ , and the vectors in N \mathcal{N} N play the role of the outward normals there.
The next proposition is the familiar statement about Lagrange multipliers for optima under constraints.
Proposition S2. For directly coupled sources (H3), let the bound be active at the bounded optimum θ ⋆ \boldsymbol{\theta}^{\star} θ ⋆ , with σ max = σ 1 = ⋯ = σ κ \sigma_{\max}=\sigma_1=\cdots=\sigma_{\kappa} σ m a x = σ 1 = ⋯ = σ κ there. Then
n − ⟨ n ^ ⟩ = ω ( Ξ ) (61) \boldsymbol{n}-\langle\hat{\boldsymbol{n}}\rangle=\boldsymbol{\omega}(\Xi) \tag*{(61)} n − ⟨ n ^ ⟩ = ω ( Ξ ) (61) for a real symmetric positive semidefinite κ × κ \kappa\times\kappa κ × κ matrix Ξ \Xi Ξ . For κ = 1 \kappa=1 κ = 1 this is Eq. (21) with ξ = Ξ \xi=\Xi ξ = Ξ , and for κ = 2 \kappa=2 κ = 2 it reads
⟨ n ^ j ⟩ = n j − ∑ a , b = 1 2 Ξ a b Re ( U j a ∗ U j b ) . (62) \langle\hat{n}_j\rangle=n_j-\sum_{a,b=1}^{2}\Xi_{ab}\operatorname{Re}(U_{ja}^{*}U_{jb}). \tag*{(62)} ⟨ n ^ j ⟩ = n j − a , b = 1 ∑ 2 Ξ ab Re ( U j a ∗ U j b ) . (62)
Proof. Every ω ∈ N \boldsymbol{\omega}\in\mathcal{N} ω ∈ N has ∑ j ω j > 0 \sum_j\omega_j>0 ∑ j ω j > 0 . Since U U U is unitary, ∑ j ≥ 1 ω j ( x x T ) = ∑ j ≥ 1 ∣ ( U D x ) j ∣ 2 \sum_{j\geq1}\omega_j(\boldsymbol{x}\boldsymbol{x}^{\mathsf{T}})=\sum_{j\geq1}|(U D\boldsymbol{x})_j|^2 ∑ j ≥ 1 ω j ( x x T ) = ∑ j ≥ 1 ∣ ( U D x ) j ∣ 2 is the weight of the unit vector U D x U D\boldsymbol{x} U D x on the heralding modes, and ∑ j ω j ( Z ) \sum_j\omega_j(Z) ∑ j ω j ( Z ) is an average of such weights. If it vanished, some vector U D x U D\boldsymbol{x} U D x with real x \boldsymbol{x} x would have no weight on the heralding modes, hence equal e i φ e 0 e^{i\varphi}\boldsymbol{e}_0 e i φ e 0 with e 0 \boldsymbol{e}_0 e 0 the basis vector of the signal mode, and satisfy A e 0 = σ max e 2 i φ e 0 A\boldsymbol{e}_0=\sigma_{\max}e^{2i\varphi}\boldsymbol{e}_0 A e 0 = σ m a x e 2 i φ e 0 , which contradicts A j 0 = A 0 j ≠ 0 A_{j0}=A_{0j}\ne0 A j 0 = A 0 j = 0 . Hence shifting any direction by − ε ( 1 , … , 1 ) -\varepsilon(1,\ldots,1) − ε ( 1 , … , 1 ) with ε > 0 \varepsilon>0 ε > 0 strictly lowers max N ω ⋅ δ \max_{\mathcal{N}}\boldsymbol{\omega}\cdot\boldsymbol{\delta} max N ω ⋅ δ , which we use below.
A direction δ \boldsymbol{\delta} δ with max N ω ⋅ δ < 0 \max_{\mathcal{N}}\boldsymbol{\omega}\cdot\boldsymbol{\delta}<0 max N ω ⋅ δ < 0 keeps θ ⋆ + t δ \boldsymbol{\theta}^{\star}+t\boldsymbol{\delta} θ ⋆ + t δ in Ω μ \Omega_{\mu} Ω μ for small t > 0 t>0 t > 0 , by Eq. (58) . Since θ ⋆ \boldsymbol{\theta}^{\star} θ ⋆ is optimal,
( n − ⟨ n ^ ⟩ ) ⋅ δ ≤ 0 whenever max N ω ⋅ δ < 0. (63) \left(\boldsymbol{n}-\langle\hat{\boldsymbol{n}}\rangle\right)\cdot\boldsymbol{\delta}\leq0
\qquad\text{whenever}\qquad
\max_{\mathcal{N}}\boldsymbol{\omega}\cdot\boldsymbol{\delta}<0. \tag*{(63)} ( n − ⟨ n ^ ⟩ ) ⋅ δ ≤ 0 whenever N max ω ⋅ δ < 0. (63)
Suppose n − ⟨ n ^ ⟩ \boldsymbol{n}-\langle\hat{\boldsymbol{n}}\rangle n − ⟨ n ^ ⟩ were outside the convex cone { t ω : t ≥ 0 , ω ∈ N } \{t\boldsymbol{\omega}:t\geq0,\ \boldsymbol{\omega}\in\mathcal{N}\} { t ω : t ≥ 0 , ω ∈ N } , which is closed because N \mathcal{N} N is compact and does not contain 0 0 0 . By the separating hyperplane theorem [58 Sec. 2.5.1] , a plane then separates the point from the cone, and since the cone is invariant under scaling, the plane can be taken through the origin, and the normal of this plane is a direction δ \boldsymbol{\delta} δ with ( n − ⟨ n ^ ⟩ ) ⋅ δ > 0 ≥ max N ω ⋅ δ \left(\boldsymbol{n}-\langle\hat{\boldsymbol{n}}\rangle\right)\cdot\boldsymbol{\delta}>0\geq\max_{\mathcal{N}}\boldsymbol{\omega}\cdot\boldsymbol{\delta} ( n − ⟨ n ^ ⟩ ) ⋅ δ > 0 ≥ max N ω ⋅ δ . Shifting δ \boldsymbol{\delta} δ by − ε ( 1 , … , 1 ) -\varepsilon(1,\ldots,1) − ε ( 1 , … , 1 ) with ε \varepsilon ε small makes the second inequality strict while keeping the first, which contradicts Eq. (63) . Hence n − ⟨ n ^ ⟩ \boldsymbol{n}-\langle\hat{\boldsymbol{n}}\rangle n − ⟨ n ^ ⟩ lies in that cone, which is Eq. (61) after absorbing the scale of the cone into Ξ \Xi Ξ .
By the sensitivity interpretation of multipliers [58 Sec. 5.6] , Tr Ξ = d ln p Ξ max ( μ ) / d ln μ \operatorname{Tr}\Xi=\mathrm{d}\ln p_{\Xi}^{\max}(\mu)/\mathrm{d}\ln\mu Tr Ξ = d ln p Ξ m a x ( μ ) / d ln μ wherever this derivative exists, generalizing Eq. (21) .
Degenerate optima
An optimum is degenerate if the two largest singular values both equal μ \mu μ , so that two normal modes are squeezed up to the bound. Such optima are common [Fig. S2(b)]: at 10 dB they occur in 27 to 87% of the random instances with real control parameters, from m = 2 m=2 m = 2 to m = 12 m=12 m = 12 , and with complex control parameters in up to 38% for m = 12 m=12 m = 12 but essentially never for m = 2 m=2 m = 2 . They fill whole regions of patterns, because the edge σ 1 = σ 2 = μ \sigma_1=\sigma_2=\mu σ 1 = σ 2 = μ of Ω μ \Omega_{\mu} Ω μ generically has dimension m − 2 m-2 m − 2 for real and m − 3 m-3 m − 3 for complex control parameters, and the multiplier Ξ \Xi Ξ of Eq. (62) adds two or three dimensions, so that edge points and multipliers together cover a set of patterns of dimension m m m . Numerically they cause no difficulty: the barrier Ψ = ln det ( μ 2 I − A A T ) \Psi=\ln\det(\mu^2I-AA^{\mathsf{T}}) Ψ = ln det ( μ 2 I − A A T ) is smooth also where singular values coincide, so the barrier method approaches an edge like any other part of the boundary, and the certificate (S5) holds unchanged.
Imperfect detection
With imperfect detection, the detectors register the pattern n \boldsymbol{n} n with probability g n ( k ) g_{\boldsymbol{n}}(\boldsymbol{k}) g n ( k ) when the photon numbers k \boldsymbol{k} k arrive, and p S ( θ ) = ∑ k g n ( k ) p θ ( k ) p_S(\boldsymbol{\theta})=\sum_{\boldsymbol{k}}g_{\boldsymbol{n}}(\boldsymbol{k})p_{\boldsymbol{\theta}}(\boldsymbol{k}) p S ( θ ) = ∑ k g n ( k ) p θ ( k ) . For loss with the efficiencies η j \eta_j η j , g n ( k ) = ∏ j ( k j n j ) η j n j ( 1 − η j ) k j − n j g_{\boldsymbol{n}}(\boldsymbol{k})=\prod_j\binom{k_j}{n_j}\eta_j^{n_j}(1-\eta_j)^{k_j-n_j} g n ( k ) = ∏ j ( n j k j ) η j n j ( 1 − η j ) k j − n j , and Poissonian dark counts with the means d j d_j d j can be added (App. § 1.5.5 ). Several local maxima of p S p_S p S are common for sources that are symmetric under exchange of two heralding modes, rare for random sources and absent for the sources of [44 ] , and the optimum for ideal detection with the pattern ( n j − d j ) / η j (n_j-d_j)/\eta_j ( n j − d j ) / η j comes within about 1% of the best p S p_S p S for random sources.
Evaluation of the heralding probability
For a source without displacement, let P ( l ) P(\boldsymbol{l}) P ( l ) be the probability to register the pattern l \boldsymbol{l} l , so that p S = P ( n ) p_S=P(\boldsymbol{n}) p S = P ( n ) , and write y l = ∏ j y j l j y^{\boldsymbol{l}}=\prod_j y_j^{l_j} y l = ∏ j y j l j . With the matrix J ( X ) = I − B K B T J(X)=I-BKB^{\mathsf{T}} J ( X ) = I − B K B T , K = diag ( 1 , X 1 , … , X m ) K=\operatorname{diag}(1,X_1,\ldots,X_m) K = diag ( 1 , X 1 , … , X m ) , for which det J ( X ) = det ( I − A A T ) \det J(X)=\det(I-AA^{\mathsf{T}}) det J ( X ) = det ( I − A A T ) (App. B), the generating function of the registered photon numbers is
∑ l P ( l ) y l = [ det J ( X ) T ( y ) ] 1 / 2 , T ( y ) = det ( J ( X ∘ ( 1 − η + η ∘ y ) ) ) . (64) \sum_{\boldsymbol{l}}P(\boldsymbol{l})y^{\boldsymbol{l}}=
\left[\frac{\det J(X)}{T(y)}\right]^{1/2},
\qquad
T(y)=\det\left(J\left(X\circ(1-\eta+\eta\circ y)\right)\right). \tag*{(64)} l ∑ P ( l ) y l = [ T ( y ) det J ( X ) ] 1/2 , T ( y ) = det ( J ( X ∘ ( 1 − η + η ∘ y ) ) ) . (64)
where ∘ \circ ∘ is the entrywise product [76 ] . For ideal detectors, η = 1 \eta=1 η = 1 , this follows from Eq. (11) . Shifting θ \boldsymbol{\theta} θ by ln y \ln y ln y replaces X j X_j X j by X j y j X_jy_j X j y j , so ∑ k p θ ( k ) y k = exp [ Φ ( θ + ln y ) − Φ ( θ ) ] \sum_{\boldsymbol{k}}p_{\boldsymbol{\theta}}(\boldsymbol{k})y^{\boldsymbol{k}}=\exp[\Phi(\boldsymbol{\theta}+\ln y)-\Phi(\boldsymbol{\theta})] ∑ k p θ ( k ) y k = exp [ Φ ( θ + ln y ) − Φ ( θ )] with Φ = − 1 2 ln det J \Phi=-\frac{1}{2}\ln\det J Φ = − 2 1 ln det J , first for 0 < y j ≤ 1 0<y_j\leq1 0 < y j ≤ 1 and then, since both sides are analytic near y = 0 \boldsymbol{y}=0 y = 0 , as an identity of power series. Loss registers each photon independently with probability η j \eta_j η j , which replaces y j y_j y j by 1 − η j + η j y j 1-\eta_j+\eta_j y_j 1 − η j + η j y j . Dark counts multiply the generating function by ∏ j e d j ( y j − 1 ) \prod_j e^{d_j(y_j-1)} ∏ j e d j ( y j − 1 ) , which convolves the P ( l ) P(l) P ( l ) with Poisson distributions.
Without dark counts, the probabilities P ( l ) P(l) P ( l ) are therefore [ det J ( X ) ] 1 / 2 [\det J(X)]^{1/2} [ det J ( X ) ] 1/2 times the Taylor coefficients f l f_l f l of T − 1 / 2 T^{-1/2} T − 1/2 . Let T ( y ) = ∑ l t l y l T(\mathbf{y})=\sum_l t_l\mathbf{y}^l T ( y ) = ∑ l t l y l , which has at most 3 m 3^m 3 m coefficients because T T T has degree at most two in each y j y_j y j , and let ∣ l ∣ = ∑ j l j |l|=\sum_j l_j ∣ l ∣ = ∑ j l j . The operator ∑ j y j ∂ y j \sum_j y_j\partial_{y_j} ∑ j y j ∂ y j multiplies the coefficient of y l \mathbf{y}^l y l by ∣ l ∣ |l| ∣ l ∣ , and applied to T − 1 / 2 T^{-1/2} T − 1/2 it gives − 1 2 T − 1 / 2 ∑ j y j ∂ y j T / T -\frac{1}{2}T^{-1/2}\sum_j y_j\partial_{y_j}T/T − 2 1 T − 1/2 ∑ j y j ∂ y j T / T . Multiplying by T T T and comparing the coefficients of y k \mathbf{y}^k y k gives the recursion
f 0 = t 0 − 1 / 2 , f k = − 1 t 0 ∣ k ∣ ∑ 0 ≠ l ≤ k t l ( ∣ k ∣ − 1 2 ∣ l ∣ ) f k − l , (65) f_{\mathbf{0}}=t_0^{-1/2},\qquad f_k=-\frac{1}{t_0|k|}\sum_{\substack{0\ne l\le k}}t_l\left(|k|-\frac{1}{2}|l|\right)f_{k-l}, \tag*{(65)} f 0 = t 0 − 1/2 , f k = − t 0 ∣ k ∣ 1 0 = l ≤ k ∑ t l ( ∣ k ∣ − 2 1 ∣ l ∣ ) f k − l , (65)
where l ≤ k l\le k l ≤ k holds entrywise and t 0 = T ( 0 ) > 0 t_0=T(0)>0 t 0 = T ( 0 ) > 0 .
The gradient and the Hessian of ln p S \ln p_S ln p S follow from Eq. (24) , with ⟨ n ^ ⟩ \langle\hat{n}\rangle ⟨ n ^ ⟩ and Σ \Sigma Σ from Eq. (17) and the moments of q q q from P P P at neighboring patterns. For pure loss, ( k − n ) ( k n ) = ( n + 1 ) ( k n + 1 ) (k-n)\binom{k}{n}=(n+1)\binom{k}{n+1} ( k − n ) ( n k ) = ( n + 1 ) ( n + 1 k ) gives ( k j − n j ) g n ( k ) = ( n j + 1 ) r j g n + e j ( k ) (k_j-n_j)g_n(k)=(n_j+1)r_jg_{n+e_j}(k) ( k j − n j ) g n ( k ) = ( n j + 1 ) r j g n + e j ( k ) with r j = ( 1 − η j ) / η j r_j=(1-\eta_j)/\eta_j r j = ( 1 − η j ) / η j and the unit vector e j e_j e j of heralding mode j j j . Summing over k k k with the weights p θ ( k ) p_\theta(k) p θ ( k ) , and applying the identity twice, gives
⟨ k j − n j ⟩ q = ( n j + 1 ) r j P ( n + e j ) P ( n ) , \langle k_j-n_j\rangle_q=(n_j+1)r_j\frac{P(n+e_j)}{P(n)}, ⟨ k j − n j ⟩ q = ( n j + 1 ) r j P ( n ) P ( n + e j ) ,
⟨ ( k j − n j ) ( k l − n l ) ⟩ q = ( n j + 1 ) ( n l + 1 ) r j r l P ( n + e j + e l ) P ( n ) ( j ≠ l ) , \langle(k_j-n_j)(k_l-n_l)\rangle_q=(n_j+1)(n_l+1)r_jr_l\frac{P(n+e_j+e_l)}{P(n)}\qquad(j\ne l), ⟨( k j − n j ) ( k l − n l ) ⟩ q = ( n j + 1 ) ( n l + 1 ) r j r l P ( n ) P ( n + e j + e l ) ( j = l ) ,
⟨ ( k j − n j ) ( k j − n j − 1 ) ⟩ q = ( n j + 1 ) ( n j + 2 ) r j 2 P ( n + 2 e j ) P ( n ) , (66) \langle(k_j-n_j)(k_j-n_j-1)\rangle_q=(n_j+1)(n_j+2)r_j^2\frac{P(n+2e_j)}{P(n)}, \tag*{(66)} ⟨( k j − n j ) ( k j − n j − 1 ) ⟩ q = ( n j + 1 ) ( n j + 2 ) r j 2 P ( n ) P ( n + 2 e j ) , (66)
from which ⟨ k ⟩ q \langle k\rangle_q ⟨ k ⟩ q and Cov q ( k ) \operatorname{Cov}_q(k) Cov q ( k ) follow. Evaluating p S p_S p S , its gradient and its Hessian therefore needs f k f_k f k for k ≤ n + 2 ⋅ 1 k\le n+2\cdot\mathbf{1} k ≤ n + 2 ⋅ 1 .
Search for local maxima
To locate all local maxima of p S p_S p S for m = 2 m=2 m = 2 and m = 3 m=3 m = 3 , we evaluate ln p S \ln p_S ln p S on a grid over Ω \Omega Ω (and along the boundary of Ω μ \Omega_\mu Ω μ when a squeezing bound is imposed) and refine every discrete local maximum by Newton’s method in the interior and one-dimensional maximization along the boundary. For symmetric sources we also test whether the best point on the symmetry axis is a saddle point, which indicates mirror-image maxima, and locate the threshold efficiency η c \eta_c η c by bisection. Grid parameters and numerical checks are detailed in Ref. [50 ] ; as with any grid search, maxima narrower than the grid resolution cannot be excluded.
Results of the searches
Table S2 summarizes the searches. Several maxima are common for sources that are symmetric under exchange of the two heralding modes, s 1 = s 2 s_1=s_2 s 1 = s 2 , and persist when this symmetry is slightly broken; they are rare for random sources.
Table S2. Searches for several local maxima of p S p_S p S with imperfect detection. Sources: number of source–pattern combinations, with two heralding modes unless stated. Detectors: number of settings, either efficiencies η \eta η or mean dark counts d d d . Bounds: number of bound settings, including no bound. Last column: cases with several maxima.
For the source of Figure 6 , s = − 0.5 s=-0.5 s = − 0.5 , ν 12 = 5 \nu_{12}=5 ν 12 = 5 with the pattern ( 4 , 4 ) (4,4) ( 4 , 4 ) and a bound of 16 dB, all local maxima lie on the boundary of Ω μ \Omega_\mu Ω μ . Up to η = 0.279 \eta=0.279 η = 0.279 , the two mirror-image maxima sit at the corners of Ω μ \Omega_\mu Ω μ , where also σ 2 = μ \sigma_2=\mu σ 2 = μ . There the heralding modes carry 14.5 photons on average, against 8.9 at the best point on the symmetry axis, which is why the corners win at low efficiency. A third maximum appears on the axis at η = 0.355 \eta=0.355 η = 0.355 , all three are equally high at η = 0.3654 \eta=0.3654 η = 0.3654 (just above the η = 0.365 \eta=0.365 η = 0.365 shown in Figure 6 (c), where the central maximum is still slightly lower), and above η c = 0.367 \eta_c=0.367 η c = 0.367 the maximum on the axis is the only one. Without the bound, several maxima exist up to η c = 0.32 \eta_c=0.32 η c = 0.32 , and with ideal detection the source has a single maximum, on the axis.
Figure S3 shows the threshold η c \eta_c η c as a function of the bound for eight of the 24 symmetric source–pattern combinations in the first row of Table S2 (four sources, each with n = 8 n=8 n = 8 and n = 24 n=24 n = 24 ). It rises with the bound, peaks at bounds between 9 and 17 dB, where it exceeds its value without a bound, and falls back once the bound no longer constrains the maxima. Among these 24 combinations, the highest threshold is η c = 0.91 \eta_c=0.91 η c = 0.91 , for s = − 0.8 s=-0.8 s = − 0.8 , ν 12 = 16 \nu_{12}=16 ν 12 = 16 and the pattern ( 24 , 24 ) (24,24) ( 24 , 24 ) , where η c \eta_c η c exceeds 0.90 at bounds from 11 to 16 dB. The gain of the best maximum over the best point on the symmetry axis [Figure S3 ] can be large, but only where p S p_S p S is small, for example 30% at η = 0.8 \eta=0.8 η = 0.8 with p S = 6.9 × 10 − 6 p_S=6.9\times10^{-6} p S = 6.9 × 1 0 − 6 . Close to the threshold it is at most about 10%, and the fidelity of the heralded state is lower at the maxima away from the axis than at the best point on the axis. A broader scan of 540 symmetric sources found several maxima for 189 of them, all with s ≤ 0 s\leq0 s ≤ 0 , at efficiencies up to 0.95 (at a bound of 3 dB), but at efficiencies of 0.9 and above the best maximum exceeded the best point on the axis by less than 1%.
Several maxima persist when the symmetry is broken by unequal s j s_j s j or asymmetric patterns, or when s 1 = s 2 s_1=s_2 s 1 = s 2 acquires a common complex phase (Table S2 ). The random sources of Table S2 have, with equal probability, real Gaussian s j s_j s j and ν 12 \nu_{12} ν 12 with standard deviations drawn from { 0.3 , 1 , 2 } \{0.3,1,2\} { 0.3 , 1 , 2 } , or circularly symmetric complex Gaussian ones with one common standard deviation from the same set, and patterns with 1 ≤ n j ≤ 5 1\leq n_j\leq5 1 ≤ n j ≤ 5 . For them, several maxima are rare: 73 of 46500 cases with two heralding modes, all from 8 sources with real control parameters, and one of 720 cases with three heralding modes. For the 24 sources of Ref. [44 ] with two heralding modes, the search never found more than one maximum, and at efficiencies from 0.8 to 0.99 the damping that maximizes p S p_S p S under loss raised p S p_S p S by at most 5.7% over the damping that is optimal for ideal detection. With dark counts, the maximum can fail to exist (App. § 1.5.5 ). In our scans this happened only with bounds of at most 3 dB and mean dark counts of at least 0.01, where p S p_S p S increases towards the limit in which a heralding mode is in the vacuum and its count is supplied by dark counts.
Starting point of the search
Without a criterion for the global maximum, the search needs good starting points. A detector of efficiency η j \eta_j η j with the mean dark count d j d_j d j registers on average η j k j + d j \eta_j k_j+d_j η j k j + d j photons when k j k_j k j arrive. Matching the registered pattern on average suggests the damping that is optimal for ideal detection with the non-integer pattern ( n j − d j ) / η j (n_j-d_j)/\eta_j ( n j − d j ) / η j , which reduces to n j / η j n_j/\eta_j n j / η j without dark counts. Because the mean-matching condition has a unique solution for every pattern with positive real entries (remark after Cor. 1), the starting point is found by Newton’s method (or, with a squeezing bound, the barrier method), provided n j > d j n_j>d_j n j > d j .
Figure S4 compares this starting point with the largest p S p_S p S found by the search, for 200 random sources with two heralding modes, complex control parameters drawn as in Table S1 , 1 ≤ n j ≤ 5 1\leq n_j\leq5 1 ≤ n j ≤ 5 , one efficiency η ∈ { 0.5 , 0.7 , 0.8 , 0.9 , 0.95 } \eta\in\{0.5,0.7,0.8,0.9,0.95\} η ∈ { 0.5 , 0.7 , 0.8 , 0.9 , 0.95 } and one mean dark count d ∈ { 0 , 10 − 3 , 10 − 2 } d\in\{0,10^{-3},10^{-2}\} d ∈ { 0 , 1 0 − 3 , 1 0 − 2 } per source. Without a bound, it came within a median of 4 × 10 − 5 4\times10^{-5} 4 × 1 0 − 5 and at most 1.1% of the best p S p_S p S , while the optimum for the registered pattern n n n itself lost a median of 1.4% and up to 20%, most at low efficiency [Figure S4 ]. With a tight bound, both lie on the boundary of Ω μ \Omega_\mu Ω μ close to the best point, and the difference disappears [Figure S4 ]. None of these sources had several maxima. For symmetric sources, the starting point lies on the symmetry axis and misses maxima away from it, so it is only a starting point for the search.
Heralding probability and fidelity
Constrained numerical maximization of p S p_S p S under loss subject to F ≥ F 0 F \ge F_0 F ≥ F 0 and σ max ( A ) < 1 \sigma_{\max}(A) < 1 σ m a x ( A ) < 1 [50 ] confirms that the trade-off optimum for Figure 7 lies on the line of uniform damping (θ 1 = θ 2 \theta_1=\theta_2 θ 1 = θ 2 ). For this source at η = 0.99 \eta=0.99 η = 0.99 , F = 0.958 F=0.958 F = 0.958 at the maximum of p S p_S p S , and requiring F ≥ 0.98 F \ge0.98 F ≥ 0.98 or F ≥ 0.99 F \ge0.99 F ≥ 0.99 lowers p S p_S p S by factors of 26 and 1390.
Several signal modes
Some targets are states of several signal modes, for example the two-mode states of Ref. [44 ] . All results of Secs. III to VI carry over to S S S signal modes. The assumptions on the source then refer to some signal mode instead of the signal mode, and the signal–signal block of B B B takes the place of B 00 B_{00} B 00 . Most proofs apply word for word, as listed in Table S3 . Four steps need a new argument: the choice of the reference source, the positivity of the weights, the feasibility of a squeezing bound, and the optimality condition at an active bound.
Table S3. Results for one signal mode that hold for S S S signal modes, and the changes in their proofs.
Setting
The source has the form (1) with S S S signal modes and m m m heralding modes, so A A A and B B B are complex symmetric ( S + m ) × ( S + m ) (S+m)\times(S+m) ( S + m ) × ( S + m ) matrices, and it has S + m S+m S + m normal modes. We label the signal modes 0 1 , … , 0 S 0_1,\ldots,0_S 0 1 , … , 0 S and use the index i i i for them and j j j for the heralding modes. Damping acts on the heralding modes only, Λ = diag ( 1 , … , 1 , e θ 1 / 2 , … , e θ m / 2 ) \Lambda=\operatorname{diag}(1,\ldots,1,e^{\theta_1/2},\ldots,e^{\theta_m/2}) Λ = diag ( 1 , … , 1 , e θ 1 /2 , … , e θ m /2 ) with S S S entries equal to one. It therefore does not change the signal–signal block B s s B_{\mathrm{ss}} B ss of B B B , which is also the signal–signal block of A A A . A pattern n \boldsymbol{n} n heralds a state of all S S S signal modes, and the weights W k = ∑ k s ∣ ⟨ k s , k l ∣ G B , b ∣ 2 W_{\boldsymbol{k}}=\sum_{\boldsymbol{k}_s}|\langle\boldsymbol{k}_s,\boldsymbol{k}_l|\mathcal{G}_{B,\boldsymbol{b}}|^2 W k = ∑ k s ∣ ⟨ k s , k l ∣ G B , b ∣ 2 sum over the photon numbers k s \boldsymbol{k}_s k s of all signal modes.
Three conditions take the place of those for one signal mode. Assumption H2, that no set of heralding modes is in a pure state, keeps its form. Assumption H3 becomes that every heralding mode j j j has B i j ≠ 0 B_{ij}\ne0 B ij = 0 for some signal mode i i i , and we fix one such signal mode i ( j ) i(j) i ( j ) for every j j j . The third condition is σ max ( B s s ) < 1 \sigma_{\max}(B_{\mathrm{ss}})<1 σ m a x ( B ss ) < 1 . Since B s s B_{\mathrm{ss}} B ss is a submatrix of A A A , σ max ( A ) ≥ σ max ( B s s ) \sigma_{\max}(A)\ge\sigma_{\max}(B_{\mathrm{ss}}) σ m a x ( A ) ≥ σ m a x ( B ss ) for every θ \theta θ , and σ max ( A ) → σ max ( B s s ) \sigma_{\max}(A)\to\sigma_{\max}(B_{\mathrm{ss}}) σ m a x ( A ) → σ m a x ( B ss ) as all θ j → − ∞ \theta_j\to-\infty θ j → − ∞ . The admissible set Ω \Omega Ω is therefore nonempty if and only if σ max ( B s s ) < 1 \sigma_{\max}(B_{\mathrm{ss}})<1 σ m a x ( B ss ) < 1 , which for one signal mode reads ∣ B 00 ∣ < 1 |B_{00}|<1 ∣ B 00 ∣ < 1 .
Modified proofs
With several signal modes, only one coupling of every heralding mode can be set to one. For a directly coupled source we choose the reference with B i ( j ) j = 1 B_{i(j)j}=1 B i ( j ) j = 1 , by a phase rotation of heralding mode j j j and the choice of the origin of θ j \theta_j θ j , as in Sec. II B. The couplings B i j B_{ij} B ij of heralding mode j j j to the other signal modes, i ≠ i ( j ) i\ne i(j) i = i ( j ) , are then control parameters, and the block B s s B_{\mathrm{ss}} B ss takes the place of s 0 s_0 s 0 . Every admissible damping of this reference still has X j < 1 X_j<1 X j < 1 . The column of A A A that belongs to signal mode i i i contains the entries A j i = X j A_{ji}=\sqrt{X_j} A j i = X j of the heralding modes with i ( j ) = i i(j)=i i ( j ) = i , so its squared norm is at least ∑ j : i ( j ) = i X j \sum_{j:i(j)=i}X_j ∑ j : i ( j ) = i X j , and it cannot exceed σ max ( A ) 2 < 1 \sigma_{\max}(A)^2<1 σ m a x ( A ) 2 < 1 . Relative to this reference, the damping therefore again always attenuates.
Every pattern lies in the support of the weights. In the Bargmann representation (App. B), the signal variables z i z_i z i enter the exponent only through 1 2 ∑ i , i ′ A i i ′ z i z i ′ + ∑ i z i ( β i + ∑ j A i j z j ) \frac{1}{2}\sum_{i,i'}A_{ii'}z_i z_{i'}+\sum_i z_i(\beta_i+\sum_j A_{ij}z_j) 2 1 ∑ i , i ′ A i i ′ z i z i ′ + ∑ i z i ( β i + ∑ j A ij z j ) , where i i i and i ′ i' i ′ run over the signal modes and j j j over the heralding modes. The Bargmann function of the state heralded by the pattern k k k is therefore e 1 2 ∑ i , i ′ A i i ′ z i z i ′ + ∑ i β i z i e^{\frac{1}{2}\sum_{i,i'}A_{ii'}z_i z_{i'}+\sum_i\beta_i z_i} e 2 1 ∑ i , i ′ A i i ′ z i z i ′ + ∑ i β i z i times a polynomial of degree ∑ j k j \sum_j k_j ∑ j k j , whose part of the highest degree is proportional to ∏ j ( ∑ i A i j z i ) k j \prod_j(\sum_i A_{ij}z_i)^{k_j} ∏ j ( ∑ i A ij z i ) k j . Each factor ∑ i A i j z i \sum_i A_{ij}z_i ∑ i A ij z i is a nonzero linear function, because A i ( j ) j ≠ 0 A_{i(j)j}\ne0 A i ( j ) j = 0 , so their product and the heralded state are nonzero. Hence W k > 0 W_k>0 W k > 0 for every k k k , and the closed convex hull of the support is again the closed nonnegative orthant (App. A).
Under a squeezing bound, Ω μ \Omega_\mu Ω μ contains points with σ max ( A ) < μ \sigma_{\max}(A)<\mu σ m a x ( A ) < μ exactly when μ > σ max ( B s s ) \mu>\sigma_{\max}(B_{\mathrm{ss}}) μ > σ m a x ( B ss ) , by the two limits above, and we assume this. It replaces the condition μ > ∣ B 00 ∣ \mu>|B_{00}| μ > ∣ B 00 ∣ of Sec. IV. The strict inequality σ max ( A ) > ∣ B 00 ∣ \sigma_{\max}(A)>|B_{00}| σ m a x ( A ) > ∣ B 00 ∣ of Sec. IV has no counterpart, because a leading singular vector of B s s B_{\mathrm{ss}} B ss need not couple to any heralding mode. For example, let B s s B_{\mathrm{ss}} B ss have the diagonal entries 0.3 0.3 0.3 and the off-diagonal entry 0.2 0.2 0.2 , and let one heralding mode couple to the two signal modes with B 0 , 1 = 1 B_{0,1}=1 B 0 , 1 = 1 , B 0 , 2 = − 1 B_{0,2}=-1 B 0 , 2 = − 1 , and B 1 = 0 B_{1}=0 B 1 = 0 . The signal vector ( 1 , 1 ) / 2 (1,1)/\sqrt{2} ( 1 , 1 ) / 2 has the singular value σ max ( B s s ) = 0.5 \sigma_{\max}(B_{\mathrm{ss}})=0.5 σ m a x ( B ss ) = 0.5 and does not couple to the heralding mode, and σ max ( A ) = 0.5 \sigma_{\max}(A)=0.5 σ m a x ( A ) = 0.5 for all X 1 ≤ 0.1 X_1\le0.1 X 1 ≤ 0.1 .
The proof of Prop. S2 uses A 0 j ≠ 0 A_{0j}\ne0 A 0 j = 0 to show that every ω ∈ N \omega\in\mathcal{N} ω ∈ N has ∑ j ω j > 0 \sum_j\omega_j>0 ∑ j ω j > 0 . With several signal modes, suppose that a unit vector u = U D x u=U_Dx u = U D x with real x x x had no weight on the heralding modes, so that u = ( w , 0 ) u=(w,0) u = ( w , 0 ) with a unit vector w w w of the signal modes. Since x x x is real, A u ∗ = σ max u Au^*= \sigma_{\max}u A u ∗ = σ m a x u , and the signal rows of this equation give B s s w ∗ = μ w B_{\mathrm{ss}}w^*=\mu w B ss w ∗ = μ w . Then σ max ( B s s ) ≥ μ \sigma_{\max}(B_{\mathrm{ss}})\ge\mu σ m a x ( B ss ) ≥ μ , which contradicts μ > σ max ( B s s ) \mu>\sigma_{\max}(B_{\mathrm{ss}}) μ > σ m a x ( B ss ) . The rest of the proof is unchanged.
Statements that are specific to one signal mode do not carry over. These are the form (7) with a single entry s 0 s_0 s 0 and the heralded Fock states of Eq. (23) and § 2.1 . Numerical checks for S = 2 S=2 S = 2 and 3 3 3 (including confirmation that p S p_S p S retains the n − ( m + 1 ) / 2 n^{-(m+1)/2} n − ( m + 1 ) /2 scaling for S = 2 S=2 S = 2 , m = 2 m=2 m = 2 ) are provided in [50 ] .
Sources without direct coupling
Without direct coupling (H3), the first step of the proof of Cor. 1, which bounds θ j \theta_j θ j from above by A 0 j ≠ 0 A_{0j} \ne0 A 0 j = 0 , fails, and the maximum need not exist. Let H = conv supp W \mathcal{H} = \operatorname{conv}\operatorname{supp} W H = conv supp W . For a minimal family, the maximum exists iff n \boldsymbol{n} n lies in the interior of H \mathcal{H} H [45 Cor. 9.6] . For directly coupled sources, H \mathcal{H} H is the closed nonnegative orthant, whose interior contains every pattern with n j ≥ 1 n_j \ge1 n j ≥ 1 . Otherwise n \boldsymbol{n} n can lie on the boundary of H \mathcal{H} H , and then a smaller scheme is better.
Proposition S3. Let no set of heralding modes be in a pure state (H 2 H2 H 2 ), and let n ∈ supp W \boldsymbol{n} \in\operatorname{supp} W n ∈ supp W lie on the boundary of H \mathcal{H} H . Then there is a vector ℓ ≠ 0 \boldsymbol{\ell} \ne0 ℓ = 0 with ℓ ⋅ n = 0 \boldsymbol{\ell} \cdot\boldsymbol{n} = 0 ℓ ⋅ n = 0 and ℓ ⋅ k ≥ 0 \boldsymbol{\ell} \cdot\boldsymbol{k} \ge0 ℓ ⋅ k ≥ 0 for all k ∈ supp W \boldsymbol{k} \in\operatorname{supp} W k ∈ supp W , and for every θ ∈ Ω \boldsymbol{\theta} \in\Omega θ ∈ Ω
lim t → ∞ p S ( θ − t ℓ ) = W n e n ⋅ θ ∑ k : ℓ ⋅ k = 0 W k e k ⋅ θ > p S ( θ ) . (67) \lim_{t\to\infty} p_S(\boldsymbol{\theta}-t\boldsymbol{\ell}) = \frac{W_{\boldsymbol{n}}e^{\boldsymbol{n}\cdot\boldsymbol{\theta}}}{\sum_{\boldsymbol{k}:\,\boldsymbol{\ell}\cdot\boldsymbol{k}=0}W_{\boldsymbol{k}}e^{\boldsymbol{k}\cdot\boldsymbol{\theta}}} > p_S(\boldsymbol{\theta}). \tag*{(67)} t → ∞ lim p S ( θ − t ℓ ) = ∑ k : ℓ ⋅ k = 0 W k e k ⋅ θ W n e n ⋅ θ > p S ( θ ) . (67)
The limit is the heralding probability of a physical source in which the heralding modes with ℓ j ≠ 0 \ell_j \ne0 ℓ j = 0 form a set in a pure state. Leaving these modes out gives a scheme with fewer heralding modes that heralds the same state with a higher probability at the remaining damping parameters than p S ( θ ) p_S(\boldsymbol{\theta}) p S ( θ ) .
Proof. We first show that H \mathcal{H} H is a cone. Let v ⋅ k ≤ h \boldsymbol{v} \cdot\boldsymbol{k} \le h v ⋅ k ≤ h for all k ∈ supp W \boldsymbol{k} \in\operatorname{supp} W k ∈ supp W . Then
Φ ( θ + t v ) ≤ Φ ( θ ) + t h , t > 0 , \Phi(\boldsymbol{\theta}+t\boldsymbol{v}) \le\Phi(\boldsymbol{\theta})+th,\qquad t>0, Φ ( θ + t v ) ≤ Φ ( θ ) + t h , t > 0 ,
so ∀ t \forall t ∀ t , θ + t v \boldsymbol{\theta}+t\boldsymbol{v} θ + t v stays in Ω \Omega Ω . Along it, all entries of A A A and β \boldsymbol{\beta} β equal their value at t = 0 t=0 t = 0 times an exponential of t t t . Entries of A A A cannot grow, because ∣ A j k ∣ ≤ σ max < 1 \lvert A_{jk}\rvert\le\sigma_{\max}<1 ∣ A j k ∣ ≤ σ m a x < 1 on Ω \Omega Ω , and entries of β \boldsymbol{\beta} β cannot grow, because ∥ β ∥ 2 / 2 ≤ Φ \lVert\boldsymbol{\beta}\rVert^2/2\le\Phi ∥ β ∥ 2 /2 ≤ Φ grows at most linearly Eq. (31) . All entries therefore converge, and the limit has σ max < 1 \sigma_{\max}<1 σ m a x < 1 , because ln σ max \ln\sigma_{\max} ln σ m a x is convex along the half-line (Prop. 2) and negative, so it does not increase. Hence Φ \Phi Φ stays bounded along the half-line, which requires
v ⋅ k ≤ 0 for all k ∈ supp W . \boldsymbol{v}\cdot\boldsymbol{k}\le0\qquad\text{for all }\boldsymbol{k}\in\operatorname{supp}W. v ⋅ k ≤ 0 for all k ∈ supp W .
Every half-space that contains supp W \operatorname{supp} W supp W therefore still contains it when its boundary is moved through the origin, so H \mathcal{H} H is a cone, and the boundary point n \boldsymbol{n} n has a supporting plane through the origin with a normal ℓ \boldsymbol{\ell} ℓ as stated.
Next, along θ − t ℓ \boldsymbol{\theta}-t\boldsymbol{\ell} θ − t ℓ , W n e n ⋅ ( θ − t ℓ ) = W n e n ⋅ θ W_{\boldsymbol{n}}e^{\boldsymbol{n}\cdot(\boldsymbol{\theta}-t\boldsymbol{\ell})}=W_{\boldsymbol{n}}e^{\boldsymbol{n}\cdot\boldsymbol{\theta}} W n e n ⋅ ( θ − t ℓ ) = W n e n ⋅ θ of p S p_S p S is constant, and the denominator decreases term by term,
e Φ ( θ − t ℓ ) = ∑ k W k e k ⋅ θ e − t ℓ ⋅ k → t → ∞ ∑ k : ℓ ⋅ k = 0 W k e k ⋅ θ . e^{\Phi(\boldsymbol{\theta}-t\boldsymbol{\ell})}
=\sum_{\boldsymbol{k}}W_{\boldsymbol{k}}e^{\boldsymbol{k}\cdot\boldsymbol{\theta}}e^{-t\boldsymbol{\ell}\cdot\boldsymbol{k}}
\xrightarrow[t\to\infty]{}
\sum_{\boldsymbol{k}:\,\boldsymbol{\ell}\cdot\boldsymbol{k}=0}W_{\boldsymbol{k}}e^{\boldsymbol{k}\cdot\boldsymbol{\theta}}. e Φ ( θ − t ℓ ) = k ∑ W k e k ⋅ θ e − t ℓ ⋅ k t → ∞ k : ℓ ⋅ k = 0 ∑ W k e k ⋅ θ .
This gives Eq. (67) [77 ] . The inequality is strict, because some k ∈ supp W \boldsymbol{k}\in\operatorname{supp}W k ∈ supp W has ℓ ⋅ k > 0 \boldsymbol{\ell}\cdot\boldsymbol{k}>0 ℓ ⋅ k > 0 , as otherwise ℓ ∈ V \boldsymbol{\ell}\in V ℓ ∈ V , which assumption H 2 H2 H 2 excludes.
Finally, along θ − t ℓ \boldsymbol{\theta}-t\boldsymbol{\ell} θ − t ℓ the term a ^ j † A j k a ^ k † \hat{a}^{\dagger}_jA_{jk}\hat{a}^{\dagger}_k a ^ j † A j k a ^ k † of the exponent in Eq. (1) is multiplied by e − t ( ℓ j + ℓ k ) / 2 e^{-t(\ell_j+\ell_k)/2} e − t ( ℓ j + ℓ k ) /2 and the term β j a ^ j † \beta_j\hat{a}^{\dagger}_j β j a ^ j † by e − t ℓ j / 2 e^{-t\ell_j/2} e − t ℓ j /2 , with ℓ 0 = 0 \ell_0=0 ℓ 0 = 0 for the signal mode. By the first step with v = − ℓ \boldsymbol{v}=-\boldsymbol{\ell} v = − ℓ , none of them grows, so each either tends to zero or stays fixed. Let B ℓ B^{\ell} B ℓ and b ℓ \boldsymbol{b}^{\ell} b ℓ be B B B and b \boldsymbol{b} b with the entries of the vanishing terms set to zero. Damped by θ \boldsymbol{\theta} θ , this source has the Fock amplitudes of the original source for the patterns with ℓ ⋅ k = 0 \boldsymbol{\ell}\cdot\boldsymbol{k}=0 ℓ ⋅ k = 0 and zero amplitudes for all others. It heralds the same state, with the probability (S19), and it is physical, although no damping of B B B prepares it. Since it produces only patterns with ℓ ⋅ k = 0 \boldsymbol{\ell}\cdot\boldsymbol{k}=0 ℓ ⋅ k = 0 , Var ( ℓ ⋅ n ^ ) = 0 \operatorname{Var}(\boldsymbol{\ell}\cdot\hat{\boldsymbol{n}})=0 Var ( ℓ ⋅ n ^ ) = 0 , and by the proof of Thm. 1 its heralding modes with ℓ j ≠ 0 \ell_j\ne0 ℓ j = 0 form a set in a pure state. This set does not affect the heralded state, and leaving it out raises the heralding probability further.
Removing all decoupled pure-state heralding modes and repeating the reduction (at most m m m times) if n \boldsymbol{n} n still lies on a boundary face yields a smaller scheme that attains its maximum and outperforms every θ ∈ Ω \boldsymbol{\theta}\in\Omega θ ∈ Ω . In numerical tests [50 ] , Newton’s method indicates this case by iterates that diverge along − ℓ -\boldsymbol{\ell} − ℓ while p S p_S p S approaches the supremum.