Q2NS dev
ns-3 module
Loading...
Searching...
No Matches
q2ns::gates Namespace Reference

Functions

QGate I (ns3::Time d=ns3::Seconds(0))
 Return the identity gate descriptor.
 
QGate X (ns3::Time d=ns3::Seconds(0))
 Return the Pauli-X gate descriptor.
 
QGate Y (ns3::Time d=ns3::Seconds(0))
 Return the Pauli-Y gate descriptor.
 
QGate Z (ns3::Time d=ns3::Seconds(0))
 Return the Pauli-Z gate descriptor.
 
QGate H (ns3::Time d=ns3::Seconds(0))
 Return the Hadamard gate descriptor.
 
QGate S (ns3::Time d=ns3::Seconds(0))
 Return the phase gate descriptor.
 
QGate SDG (ns3::Time d=ns3::Seconds(0))
 Return the inverse phase gate descriptor.
 
QGate CNOT (ns3::Time d=ns3::Seconds(0))
 Return the CNOT gate descriptor.
 
QGate CZ (ns3::Time d=ns3::Seconds(0))
 Return the CZ gate descriptor.
 
QGate SWAP (ns3::Time d=ns3::Seconds(0))
 Return the SWAP gate descriptor.
 
QGate Custom (const Matrix &U, ns3::Time d=ns3::Seconds(0))
 Return a custom gate descriptor by copying a matrix.
 
QGate Custom (Matrix &&U, ns3::Time d=ns3::Seconds(0))
 Return a custom gate descriptor by moving a matrix.
 

Function Documentation

◆ CNOT()

QGate q2ns::gates::CNOT ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the CNOT gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 410 of file q2ns-qgate.h.

References q2ns::CNOT.

Referenced by q2ns::QProcessor::CreateBellPair(), main(), and q2ns::QProcessor::MeasureBell().

Here is the caller graph for this function:

◆ Custom() [1/2]

QGate q2ns::gates::Custom ( const Matrix U,
ns3::Time  d = ns3::Seconds(0) 
)
inlineprivate

Return a custom gate descriptor by copying a matrix.

Parameters
UUnitary matrix to copy.
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 438 of file q2ns-qgate.h.

References q2ns::QGate::Custom().

Referenced by q2ns::QNode::Apply(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Custom() [2/2]

QGate q2ns::gates::Custom ( Matrix &&  U,
ns3::Time  d = ns3::Seconds(0) 
)
inlineprivate

Return a custom gate descriptor by moving a matrix.

Parameters
UUnitary matrix to move.
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 448 of file q2ns-qgate.h.

References q2ns::QGate::Custom().

Here is the call graph for this function:

◆ CZ()

QGate q2ns::gates::CZ ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the CZ gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 419 of file q2ns-qgate.h.

References q2ns::CZ.

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

Here is the caller graph for this function:

◆ H()

QGate q2ns::gates::H ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the Hadamard gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 383 of file q2ns-qgate.h.

References q2ns::H.

Referenced by q2ns::QProcessor::CreateBellPair(), main(), main(), main(), main(), q2ns::QProcessor::MeasureBell(), anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc}::RunOnce(), anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}::RunOnce(), and anonymous_namespace{q2ns-4-multipartite-scaling-example.cc}::RunOnce().

Here is the caller graph for this function:

◆ I()

QGate q2ns::gates::I ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the identity gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 347 of file q2ns-qgate.h.

References q2ns::I.

◆ S()

QGate q2ns::gates::S ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the phase gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 392 of file q2ns-qgate.h.

References q2ns::S.

Referenced by main(), and main().

Here is the caller graph for this function:

◆ SDG()

QGate q2ns::gates::SDG ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the inverse phase gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 401 of file q2ns-qgate.h.

References q2ns::SDG.

◆ SWAP()

QGate q2ns::gates::SWAP ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the SWAP gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 428 of file q2ns-qgate.h.

References q2ns::SWAP.

◆ X()

QGate q2ns::gates::X ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the Pauli-X gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 356 of file q2ns-qgate.h.

References q2ns::X.

Referenced by main(), main(), main(), main(), q2ns::DepolarizingQMap::Sample(), q2ns::SwapApp::TryApply(), q2ns::TeleportationApp::TryApplyCorrection(), anonymous_namespace{q2ns-3-teleportation-comms-example.cc}::TryCorrections(), anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}::TryCorrections(), and anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc}::TryCorrections().

Here is the caller graph for this function:

◆ Y()

QGate q2ns::gates::Y ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the Pauli-Y gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 365 of file q2ns-qgate.h.

References q2ns::Y.

Referenced by q2ns::DepolarizingQMap::Sample().

Here is the caller graph for this function:

◆ Z()

QGate q2ns::gates::Z ( ns3::Time  d = ns3::Seconds(0))
inlineprivate

Return the Pauli-Z gate descriptor.

Parameters
dOptional duration metadata.
Returns
Gate descriptor.

Definition at line 374 of file q2ns-qgate.h.

References q2ns::Z.

Referenced by main(), main(), main(), q2ns::DephasingQMap::Sample(), q2ns::DepolarizingQMap::Sample(), q2ns::SwapApp::TryApply(), q2ns::TeleportationApp::TryApplyCorrection(), anonymous_namespace{q2ns-3-teleportation-comms-example.cc}::TryCorrections(), anonymous_namespace{q2ns-5-noisy-teleportation-example.cc}::TryCorrections(), and anonymous_namespace{q2ns-5-noisy-teleportation-advanced-example.cc}::TryCorrections().

Here is the caller graph for this function: