BosonSampling.noisy_distribution — Methodnoisy_distribution(;input::Input, loss::Real, interf::Interferometer, exact=true, approx=true, samp=true, error=1e-4, failure_probability=1e-4)Compute the exact and/or approximated and/or sampled probability distribution of all possible output configurations of partially-distinguishable photons through a lossy interferometer. By default, exact, approx and samp are set to true meaning that noisy_distribution returns an array containing the three distributions.
- The probabilities within a distribution are indexed following the same order as
output_mode_occupation(n,m) - The approximated distribution has error and failure probability of $1e^{-4}$.
BosonSampling.theoretical_distribution — Methodtheoretical_distribution(;input::Input, interf::Interferometer, i=nothing)Compute the probability distribution of all possible output configurations of fully/partially-indistinguishable photons through a lossless interferometer.
- The probabilities within the distribution are indexed following the same order as
output_mode_occupation(n,m) - If
i(with default valuenothing) is set to an integertheoretical_distributionreturns the probability to find the photons in the i'th configuration given byoutput_mode_occupation