![]() |
Q2NS dev
ns-3 module
|
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>Go to the source code of this file.
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[]) |
Teleportation experiment with UDP and Bob-side memory noise.
Demonstrates:
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
Definition in file q2ns-5-noisy-teleportation-example.cc.
| 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().