flamingpy.cv.gkp.GKP_binner¶
- flamingpy.cv.gkp.GKP_binner(outcomes, return_fraction=False)[source]¶
Naively translate CV outcomes to bit values.
The function treats values in (-sqrt(pi)/2, sqrt(pi)/2) as 0 and those in (sqrt(pi)/2, 3*sqrt(pi)/2) as 1. Values on the boundary are binned to 0. The rest of the bins are defined periodically.
- Parameters
outcomes (array) – the values of a p-homodyne measurement.
return_fraction (bool) – also return the fractional part of the outcome, if desired.
- Returns
the corresponding bit values.
- Return type
array
source/api/flamingpy.cv.gkp.GKP_binner
Download Python script
Download Notebook
View on GitHub