Make density_matrix_single_mode not include the cutoff - n=[0,cutoff) rather than n=[0,cutoff];
Make density_matrix_single_mode return the expected dimensions even if an even cutoff is provided meaning an odd cutoff is used;
Condense repeated functions f and f_all_charpoly into one function f_from_matrix which now calls f_from_powertrace instead of repeating this code;
Remove distinguishable_pnr_prob.py as this function doesn't add anything that can't be done in pnr_prob and is less accurate;
Condense three tests into one (test_distinguishable_probs, test_distinguishable_vacuum_probs, test_distinguishable_probs_collision) as they are the same with different variables;
Order the modes in prepare_cov as we expect when the squeezing is equal (it currently reverses them).
We make changes to the internal_modes branch to:
density_matrix_single_mode
not include the cutoff - n=[0,cutoff) rather than n=[0,cutoff];density_matrix_single_mode
return the expected dimensions even if an even cutoff is provided meaning an odd cutoff is used;f
andf_all_charpoly
into one functionf_from_matrix
which now callsf_from_powertrace
instead of repeating this code;pnr_prob
and is less accurate;test_distinguishable_probs
,test_distinguishable_vacuum_probs
,test_distinguishable_probs_collision
) as they are the same with different variables;prepare_cov
as we expect when the squeezing is equal (it currently reverses them).