Skip to content

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

Open
@Naphann

Description

@Naphann

When a QNIC has more than one quantum memory, the photons are generated in batch (photon train) and the BSA would send the results back in batch. The rate at which a BSA can detect photons is specified by a parameter photon_detection_per_second in the BellStateAnalyzer.ned file, which in turns, dictates the temporal separation of the photons (wavepacket) in the train.

When the value is set to 1GHz, the actual attempt rate in the simulation is much much lower, (around 250 MHz), and is probably due to the conversion from detection per second parameter to time interval between photon (line 43).

if (is_active) {
time_interval_between_photons = SimTime(1, SIMTIME_S) / SimTime(getParentModule()->getSubmodule("bsa")->par("photon_detection_per_second").intValue(), SIMTIME_S);
simtime_t first_notification_timer = SimTime(par("initial_notification_timing_buffer").doubleValue());
right_qnic = getExternalQNICInfoFromPort(1);
offset_time_for_first_photon = calculateOffsetTimeFromDistance();
scheduleAt(first_notification_timer, time_out_message);

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingphysicalerror models, simulation of new hardware elements

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions