Q2NS dev
ns-3 module
Loading...
Searching...
No Matches
q2ns-4-multipartite-scaling-example.cc File Reference

Multipartite entanglement distribution and backend scaling demo. More...

#include "ns3/core-module.h"
#include "ns3/simulator.h"
#include "ns3/q2ns-netcontroller.h"
#include "ns3/q2ns-qnode.h"
#include "ns3/q2ns-qubit.h"
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <memory>
#include <numeric>
#include <string>
#include <vector>
Include dependency graph for q2ns-4-multipartite-scaling-example.cc:

Go to the source code of this file.

Classes

struct  anonymous_namespace{q2ns-4-multipartite-scaling-example.cc}::RunningStats
 

Namespaces

namespace  anonymous_namespace{q2ns-4-multipartite-scaling-example.cc}
 

Functions

double anonymous_namespace{q2ns-4-multipartite-scaling-example.cc}::RunOnce (uint32_t numNodes, const std::string &backend, bool verbose)
 
int main (int argc, char *argv[])
 

Detailed Description

Multipartite entanglement distribution and backend scaling demo.

Demonstrates:

  • creating a 1D cluster state on a central node
  • distributing one qubit to each remote node
  • comparing wall-clock runtime across backends

Tunable parameters: –numNodes total number of nodes (>= 2) –backend ket | dm | stab –trials repeated runs for mean/stdev wall-clock timing

Example:

./ns3 run q2ns-4-multipartite-scaling-example – –numNodes=16 –backend=stab –trials=5

Definition in file q2ns-4-multipartite-scaling-example.cc.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 176 of file q2ns-4-multipartite-scaling-example.cc.

References anonymous_namespace{q2ns-4-multipartite-scaling-example.cc}::RunOnce().

Here is the call graph for this function: