![]() |
Q2NS dev
ns-3 module
|
Teleportation experiment with UDP/TCP control transport and Bob-side memory noise. More...
#include "ns3/applications-module.h"#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 <string>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc} |
Functions | |
| void | anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc}::TryCorrections (Ptr< QNode > bob, NetController &net, BobInfo &info, Ptr< DepolarizingQMap > depol, Ptr< UniformRandomVariable > u, std::shared_ptr< Qubit > qRef, Time tStart, bool verbose) |
| static void | anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc}::OnControlRxTrace (Ptr< QNode > bob, BobInfo *bobInfo, NetController *net, Ptr< DepolarizingQMap > depol, Ptr< UniformRandomVariable > u, std::shared_ptr< Qubit > qRef, Time *tStart, bool verbose, Ptr< const Packet > packet, const Address &) |
| static void | anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc}::OnTcpConnectSuccess (std::shared_ptr< TcpSendState > tcpState, Ptr< Socket > s) |
| static void | anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc}::OnTcpConnectFail (bool verbose, Ptr< Socket > s) |
| TrialResult | anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc}::RunOnce (const std::string &proto, double distanceKm, double TDepMs, bool verbose) |
| int | main (int argc, char *argv[]) |
Teleportation experiment with UDP/TCP control transport and Bob-side memory noise.
Demonstrates:
Tunable parameters: –proto udp | tcp –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-advanced-example – –proto=udp –distanceKm=50 –TDepMs=5 –trials=20 –verbose=1 ./ns3 run q2ns-5-noisy-teleportation-advanced-example – –proto=tcp –distanceKm=50 –TDepMs=5
Definition in file q2ns-5-noisy-teleportation-advanced-example.cc.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 380 of file q2ns-5-noisy-teleportation-advanced-example.cc.
References anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc}::RunOnce().