BosonSampling.H_matrixMethod
H_matrix(U, input_state, partition_occupancy_vector)
H_matrix(interf::Interferometer, i::Input, o::FockDetection)
H_matrix(interf::Interferometer, i::Input, subset_modes::ModeOccupation)

H matrix for a partition defined by partition_occupancy_vector, see definition in the article below.

Note

Conventions follow the author's Boson bunching is not maximized by indistinguishable particles which are the ones compatible with Tichy's conventions (Shshnovitch has a different one for the evolution of the creation operators).

source
BosonSampling.bunching_probability_brute_force_bosonicMethod
bunching_probability_brute_force_bosonic(U, input_state, output_state; print_output = false)
bunching_probability_brute_force_bosonic(interf::Interferometer, i::Input, subset_modes::ModeOccupation)

Bosonic bunching probability by direct summation of all possible cases

bunching_event_proba gives the probability to get the event of $[1^n 0^(m-n)]$.

source