Skip to content

Fix Bell pair link generation rate#578

Merged
Naphann merged 2 commits into
masterfrom
fix-generation-rate
Mar 25, 2026
Merged

Fix Bell pair link generation rate#578
Naphann merged 2 commits into
masterfrom
fix-generation-rate

Conversation

@Naphann
Copy link
Copy Markdown
Contributor

@Naphann Naphann commented Mar 25, 2026

Previously, the link generation rate is set by photon_detection_per_second parameter at BSA.
It was not converted properly to the time_interval_between_photons when scheduling photon arrival specified by BSA_Controller due to the division of integers.

I fixed this by converting the base unit to attosecond. While it could still result in imprecise actual rate, as long as the division into attosecond (using long long) is close enough, it should not be a problem.

This fixes #562.


This change is Reviewable

Naphann added 2 commits March 25, 2026 12:25
…een photons. Using attosecond as the base unit instead of seconds.
@Naphann Naphann merged commit e711a1a into master Mar 25, 2026
15 of 17 checks passed
@Naphann Naphann deleted the fix-generation-rate branch March 25, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BSA attempt rate is lower than specified in the simulation setting file (ini file)

1 participant