Fig. 7: Diagram of the method used to simulate the effect of dark counts in the PNRDs.

ρin is the density matrix of the input state. The grey box represents a realistic photon number resolving detector with efficiency ηd and dark noise \((1-{\eta }_{d})\bar{n}\).