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

Teleportation without any classical communication. More...

#include "ns3/q2ns-netcontroller.h"
#include "ns3/q2ns-qnode.h"
#include "ns3/q2ns-qubit.h"
#include "ns3/core-module.h"
#include "ns3/simulator.h"
#include <iostream>
Include dependency graph for q2ns-3-teleportation-basic-example.cc:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Teleportation without any classical communication.

Demonstrates: Quantum links, CreateBellPair, Send, receive callbacks. See docs/README-examples.md for detailed walkthrough.

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

Function Documentation

◆ main()

int main ( )

Definition at line 29 of file q2ns-3-teleportation-basic-example.cc.

References q2ns::NetController::CreateNode(), q2ns::gates::H(), q2ns::NetController::InstallQuantumLink(), q2ns::NetController::SetQStateBackend(), q2ns::gates::X(), and q2ns::gates::Z().

Here is the call graph for this function: