LXEB module¶
Utilities for computing LXEB reference values in photonic quantum advantage schemes.
This module provides numerically stable routines for evaluating Haar-averaged linear cross-entropy benchmarking (LXEB) reference values for photonic quantum advantage experiments.
For more details, see https://arxiv.org/abs/2604.15258.
- lxe_ref_boson_sampling(n: int, m: int) float¶
Computes the Haar-averaged LXEB reference value for Boson Sampling.
- Parameters:
- Returns:
The Haar-averaged LXEB reference value.
- Return type:
- Raises:
TypeError – If
normis not an integer.ValueError – If
nis negative ormis not positive.
- lxe_ref_gaussian_boson_sampling(n: int, m: int, d: int) float¶
Computes the Haar-averaged LXEB reference value for Gaussian boson sampling.
- Parameters:
- Returns:
The Haar-averaged LXEB reference value. Returns
0.0whennis odd.- Return type:
- Raises:
TypeError – If
n,m, ordis not an integer.ValueError – If
nis negative,mis not positive, orddoesnot satisfy 1 <= d <= m. –