# BosonSampling.jl: A Julia package for quantum multi-photon interferometry

- **DOI:** [10.22331/q-2024-06-18-1378](https://doi.org/10.22331/q-2024-06-18-1378)
- **Rating:** Sound (3.3 out of 5)
- **Verdict:** BosonSampling.jl integrates extensible multi-photon simulation and validation tools, but its performance evidence remains limited to narrowly documented benchmarks.
- **Framework version:** v5.13
- **Pipeline version:** v0.4
- **Evaluation date:** 2026-11-25
- **Evaluation page:** https://www.nabu.science/paper/10.22331%2Fq-2024-06-18-1378

## Key claims

1. We first compute permanents of Haar distributed unitary matrices (Fig. 6.a) showing that our implementation of Ryser’s algorithm remains faster [than The Walrus and Perceval] even on single-core.
   - Support: Tentative
   - Type: Primary finding
   - Basis: single-platform timing comparison without reported replication, variability or warmup handling
   - Location: Section 4.2
2. Our simulations of perfect boson sampling through Clifford and Clifford’s algorithm achieves comparable performance to what is possible on Perceval, and is more performant only via multithreading (Fig. 6.b).
   - Support: Supported
   - Type: Secondary
   - Basis: explicitly bounded sampling comparison with incomplete timing and comparator-thread reporting
   - Location: Section 4.2
3. [For n=25 photons in m=400 modes,] a brute force calculation would be practically impossible, while the new methods used in this package allow for a fast computation [about 30s on a single core]
   - Support: Supported
   - Type: Secondary
   - Basis: single reported partition-counting run without timing replication or reference-value correctness checks
   - Location: Section 3.3, Code sample 5
4. Fig. 5 shows how Julia outperforms the two other implementations [of Ryser’s algorithm in Matlab and Python] by two orders of magnitude in computation time.
   - Support: Tentative
   - Type: Secondary
   - Basis: insufficiently specified comparator implementations cannot establish a general language-level speed advantage
   - Location: Section 4.1
5. [BosonSampling.jl] performance positively compares to similar packages written in other languages
   - Support: Supported
   - Type: Secondary
   - Basis: comparisons cover permanent computation and exact sampling rather than the full range of advertised capabilities
   - Location: Section 6 Conclusion

## Strengths

- **Integrated tools within an extensible architecture** The package combines exact and noisy sampling, partition-count probabilities and validation tools within a Julia type hierarchy. The architecture provides a common framework for adding physical models without restructuring the package.
  - Dimension: contribution
  - Location: Sections 2.1–2.2 and 3.3–3.5
- **Direct comparisons with established simulation packages** Permanent computation and exact sampling are compared with The Walrus and Perceval, with comparator versions and thread configurations identified. The text explicitly reports comparable single-core sampling performance rather than claiming uniform superiority.
  - Dimension: methodological rigour
  - Location: Section 4.2; Figure 6
- **Worked examples connect physics to code** Examples progress from Hong–Ou–Mandel interference to sampling, partition counting and custom measurement types. This sequence makes the relationship between physical inputs, interferometers and output measurements concrete.
  - Dimension: reporting
  - Location: Sections 3.1–3.5; Code samples 2–8

## Limitations

- **Timing protocol leaves benchmark uncertainty unresolved** The benchmarks do not report repeat counts, timing variability or JIT warmup handling. The sampling comparison also leaves Perceval's thread configuration insufficiently specified, limiting interpretation beyond the reported setup.
  - Dimension: methodological rigour
  - Location: Section 4; Figures 5–6
- **Language speed comparison uses unspecified implementations** The Matlab and Python implementations behind the two-order-of-magnitude claim are not described sufficiently to distinguish language effects from implementation choices. The established-package comparisons in Section 4.2 provide a more informative comparison but do not establish the broader language claim.
  - Dimension: methodological rigour
  - Location: Sections 4.1–4.2; Figures 5–6
- **Correctness evidence does not cover package breadth** The paper provides limited quantitative correctness checks across its advertised capabilities, and the Bayesian validation illustration uses only indistinguishable input data. The custom detector example is described as threshold detection while returning non-binary occupations, leaving its physical interpretation unclear.
  - Dimension: methodological rigour
  - Location: Sections 2.1, 3.2, 3.4–3.5; Code sample 8

## Reliability checks

Caveats (4 of 4 checks).

- **Results check:** Clean. The reported numbers and statistics are consistent with the stated results.
- **Reporting and transparency:** Noted. A source-code repository and documentation are identified. The citation attached to the introductory NASA speed-up statement does not establish its connection to the stated example.
  - Code availability: declared
- **Reference integrity:** Noted
  - 68 references in manuscript
  - 62 of 64 checkable references found in an index
  - 4 have no canonical index record — counted, but not index-checkable
  - 4 mistyped DOIs matched to the cited work by its details
  - 3 references confirmed by manual review
  - Title diverges from identifier for 1 reference:
    - Peter W Shor. Algorithms for quantum computation: discrete logarithms and factoring. In Proceedings 35th annual symposium on foundations of computer science, pages 124–134. Ieee, 1994. DOI: 10.1109/S-FCS.1994.365700. (Cited DOI resolves in no index (Crossref, DataCite) and no matching work found by title search — the identifier was never minted and the work itself cannot be located. Flagged for manual review.)
  - Could not be verified automatically — queued for manual review:
    - Avik Sengupta. Julia High Performance. Packt, 2019. ISBN 978-1-78829-811-7. (Crossref bibliographic top candidate ratio 0.18 — no plausible match)
  - Citation details diverge for 3 references:
    - #1 Richard P Feynman. Simulating physics with computers. In Feynman and computation, pages 133–153. CRC Press, 2018. DOI: 10.1007/BF02650179. URL https://doi.org/ 10.1007/BF02650179. (DOI resolves to: “Simulating physics with computers” — Feynman, 1982 (International Journal of Theoretical Physics). Differs from the DOI’s record on: year, container) https://doi.org/10.1007/bf02650179
    - #5 John Preskill. Quantum computing 40 years later. arXiv preprint arXiv:2106.10522, 2021. DOI: 10.1201/9781003358817-7. (DOI resolves to: “Quantum Computing 40 Years Later” — Preskill, 2023 (Feynman Lectures on Computation). Differs from the DOI’s record on: year) https://doi.org/10.1201/9781003358817-7
    - #30 Ranjan Anantharaman, Kimberly Hall, Viral B. Shah, and Alan Edelman. Circuitscape in julia: High performance connectivity modelling to support conservation decisions. Proceedings of the JuliaCon Conferences, 1(1):58, 2020. DOI: 10.21105/jcon.00058. URL https://doi.org/10.21105/ jcon.00058. (DOI resolves to: “Circuitscape in Julia: High Performance Connectivity Modelling to Support Conservation Decisions” — 2020 (JuliaCon Proceedings). Differs from the DOI’s record on: container) https://doi.org/10.21105/jcon.00058
  - References not verified automatically are resolved manually within 24 hours.

## Post-publication record

- **Status:** Clean
- **Summary:** No retraction or expression of concern found in Crossref (includes Retraction Watch).
- **Last checked:** 2026-11-25
