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

Basic example demonstrating qubit creation, gate application, and measurement. More...

#include "ns3/core-module.h"
#include "ns3/q2ns-netcontroller.h"
#include "ns3/q2ns-qgate.h"
#include "ns3/q2ns-qnode.h"
#include "ns3/q2ns-qstate.h"
Include dependency graph for q2ns-1-basics-example.cc:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Basic example demonstrating qubit creation, gate application, and measurement.

Definition in file q2ns-1-basics-example.cc.

Function Documentation

◆ main()

int main ( )

Definition at line 23 of file q2ns-1-basics-example.cc.

References q2ns::NetController::CreateNode(), q2ns::NetController::GetState(), q2ns::gates::H(), and q2ns::NetController::SetQStateBackend().

Here is the call graph for this function: