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

Teleportation with classical communication (UDP) More...

#include "ns3/q2ns-netcontroller.h"
#include "ns3/q2ns-qnode.h"
#include "ns3/q2ns-qubit.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 <iostream>
Include dependency graph for q2ns-3-teleportation-comms-example.cc:

Go to the source code of this file.

Classes

struct  anonymous_namespace{q2ns-3-teleportation-comms-example.cc}::BobInfo
 

Namespaces

namespace  anonymous_namespace{q2ns-3-teleportation-comms-example.cc}
 

Functions

void anonymous_namespace{q2ns-3-teleportation-comms-example.cc}::TryCorrections (Ptr< QNode > bob, BobInfo &bobInfo)
 
int main ()
 

Detailed Description

Teleportation with classical communication (UDP)

Demonstrates:

  • Quantum link + Bell pair distribution
  • Bell-state measurement at Alice
  • UDP transmission of the two classical correction bits
  • Bob waiting for both the qubit and the classical bits before correcting

Definition in file q2ns-3-teleportation-comms-example.cc.

Function Documentation

◆ main()

int main ( )

Definition at line 74 of file q2ns-3-teleportation-comms-example.cc.

References q2ns::NetController::CreateNode(), q2ns::gates::H(), q2ns::NetController::InstallQuantumLink(), m1, m2, q2ns::NetController::SetQStateBackend(), and anonymous_namespace{q2ns-3-teleportation-comms-example.cc}::TryCorrections().

Here is the call graph for this function: