Q2NS dev
ns-3 module
Loading...
Searching...
No Matches
q2ns-5-noisy-teleportation-example.cc File Reference

Teleportation experiment with UDP and Bob-side memory noise. More...

#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/simulator.h"
#include "ns3/q2ns-analysis.h"
#include "ns3/q2ns-netcontroller.h"
#include "ns3/q2ns-qmap.h"
#include "ns3/q2ns-qnode.h"
#include "ns3/q2ns-qubit.h"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <limits>
#include <memory>
#include <numeric>
#include <vector>
Include dependency graph for q2ns-5-noisy-teleportation-example.cc:

Go to the source code of this file.

Classes

struct  anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}::RunningStats
 
struct  anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}::BobInfo
 
struct  anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}::TrialResult
 

Namespaces

namespace  anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}
 

Functions

void anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}::TryCorrections (Ptr< QNode > bob, NetController &net, BobInfo &info, Ptr< DepolarizingQMap > depol, Ptr< UniformRandomVariable > u, std::shared_ptr< Qubit > qIdealPlus, Time tStart, bool verbose)
 
TrialResult anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}::RunOnce (double distanceKm, double TDepMs, bool verbose)
 
int main (int argc, char *argv[])
 

Detailed Description

Teleportation experiment with UDP and Bob-side memory noise.

Demonstrates:

  • quantum teleportation over a quantum link
  • classical correction delivery over UDP
  • distance-dependent propagation delay
  • Bob-side depolarizing noise while waiting for classical corrections
  • repeated trials with fidelity / latency statistics

Tunable parameters: –distanceKm Alice-Bob distance in km –TDepMs Bob memory characteristic time in ms (0 => ideal memory) –trials number of repeated trials –verbose print per-trial details

Example: ./ns3 run q2ns-5-noisy-teleportation-example – –distanceKm=50 –TDepMs=5 –trials=20

–verbose=1

Definition in file q2ns-5-noisy-teleportation-example.cc.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 299 of file q2ns-5-noisy-teleportation-example.cc.

References anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}::RunOnce().

Here is the call graph for this function: