BosonSampling.compute_probability!Method
compute_probability!(ev::Event{TIn,TOut}) where {TIn<:InputType, TOut<:BosonSamplingDistribution}

Computes the full Boson Sampling probability distribution for this event.

source
BosonSampling.compute_probability!Method
compute_probability!(ev::Event{TIn,TOut}) where {TIn<:InputType, TOut<:BosonSamplingThresholdDistribution}

Computes the full Boson Sampling probability distribution for this event with threshold detection.

source
BosonSampling.full_distributionMethod
full_distribution(i::Input, interf::Interferometer)
full_distribution(params::SamplingParameters)

Generates the complete BosonSampling distribution for the Input i and the given Interferometer.

source
BosonSampling.noisy_distributionMethod
noisy_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.

Note
  • 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}$.
source
BosonSampling.theoretical_distributionMethod
theoretical_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.

Note
  • The probabilities within the distribution are indexed following the same order as output_mode_occupation(n,m)
  • If i (with default value nothing) is set to an integer theoretical_distribution returns the probability to find the photons in the i'th configuration given by output_mode_occupation
source