Parameters estimation
The role of parameters estimation is to estimate the different values that will be used for the computation of the secret key rate. The parameters you need depends on the exact security proof you are using, and the idea of the software was that the output of the parameters estimation procedure could be plugged into the secret key rate calculator. However, this is not currently the case. This issue is also discussed in .
This is why in the following we restrict in the case of the Gaussian modulation where the channel can be assumed Gaussian since the optimal attack is Gaussian. In this setting we need to evaluate the effect on the two first moments of our coherent states: the transmittance \(T\) and the excess noise \(\xi\).
Taking a simple model where the symbols of Alice are represented by \(X\) and the symbols of Bob by \(Y\), then we have the relation
where \(n\) is some white gaussian noise \(n \sim \mathcal{N}(0, 1+V_{el}+\eta T \xi)\). Then it’s possible to show that
so that
and
The actual exact formula depends on the exact schema of detection and the representation of \(X\) and \(Y\). Also, one does not usually have direct access to \(X\), but rather \(X'\) such that \(X = \alpha X'\) with \(\alpha\) a real number, and this \(\alpha\) might not be known. This coefficient corresponds to the transformation from the arrays on the computer to the actual string of symbols (DAC, modulator, attenuation). This coefficient could be characterized, but this is not mandatory. Instead one can deduce \(\alpha\) by computing \(\langle X'^2 \rangle\) and comparing it to the average number of photons per symbol \(\langle n \rangle\).
The parameters estimation method will also output the normalized value of \(V_{el}\). The action of the parameters estimation method can summarized as:
Get the shot noise value by subtracting the electronic noise value to the electronic and shot noise value;
Compute the normalized value of the electronic noise \(V_{el}\);
Measure the coefficient \(\alpha\) by comparing the variance of Alice symbols to the photon number;
Measure the covariance between the symbols of Alice and of Bob, get \(T\);
Measure the variance of the symbols of Bob, get \(\xi\).
Here is an example of use for the parameters estimation:
from qosst_bob.parameters_estimation.base import DefaultEstimator
symbols_alice = ...
symbols_bob = ...
photon_number = ...
electronic_symbols = ...
electronic_shot_symbols = ...
t, xi, vel = DefaultEstimator.estimate(symbols_alice, symbols_bob, photon_number, electronic_symbols, electronic_shot_symbols)