BosonSampling.compute_probability! — Methodcompute_probability!(ev::Event{TIn,TOut}) where {TIn<:InputType, TOut<:BosonSamplingDistribution}Computes the full Boson Sampling probability distribution for this event.
BosonSampling.compute_probability! — Methodcompute_probability!(ev::Event{TIn,TOut}) where {TIn<:InputType, TOut<:BosonSamplingThresholdDistribution}Computes the full Boson Sampling probability distribution for this event with threshold detection.
BosonSampling.full_distribution — Methodfull_distribution(i::Input, interf::Interferometer)
full_distribution(params::SamplingParameters)Generates the complete BosonSampling distribution for the Input i and the given Interferometer.
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)WARNING: use full_distribution() instead, depreciated
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