![]() |
Q2NS dev
ns-3 module
|
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. | |
|
inlineprivate |
Return the CNOT gate descriptor.
| d | Optional duration metadata. |
Definition at line 410 of file q2ns-qgate.h.
References q2ns::CNOT.
Referenced by q2ns::QProcessor::CreateBellPair(), main(), and q2ns::QProcessor::MeasureBell().
Return a custom gate descriptor by copying a matrix.
| U | Unitary matrix to copy. |
| d | Optional duration metadata. |
Definition at line 438 of file q2ns-qgate.h.
References q2ns::QGate::Custom().
Referenced by q2ns::QNode::Apply(), and main().
Return a custom gate descriptor by moving a matrix.
| U | Unitary matrix to move. |
| d | Optional duration metadata. |
Definition at line 448 of file q2ns-qgate.h.
References q2ns::QGate::Custom().
|
inlineprivate |
Return the CZ gate descriptor.
| d | Optional duration metadata. |
Definition at line 419 of file q2ns-qgate.h.
References q2ns::CZ.
Referenced by anonymous_namespace{q2ns-4-multipartite-scaling-example.cc}::RunOnce().
|
inlineprivate |
Return the Hadamard gate descriptor.
| d | Optional duration metadata. |
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().
|
inlineprivate |
Return the identity gate descriptor.
| d | Optional duration metadata. |
Definition at line 347 of file q2ns-qgate.h.
References q2ns::I.
|
inlineprivate |
Return the phase gate descriptor.
| d | Optional duration metadata. |
Definition at line 392 of file q2ns-qgate.h.
References q2ns::S.
Referenced by main(), and main().
|
inlineprivate |
Return the inverse phase gate descriptor.
| d | Optional duration metadata. |
Definition at line 401 of file q2ns-qgate.h.
References q2ns::SDG.
|
inlineprivate |
Return the SWAP gate descriptor.
| d | Optional duration metadata. |
Definition at line 428 of file q2ns-qgate.h.
References q2ns::SWAP.
|
inlineprivate |
Return the Pauli-X gate descriptor.
| d | Optional duration metadata. |
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().
|
inlineprivate |
Return the Pauli-Y gate descriptor.
| d | Optional duration metadata. |
Definition at line 365 of file q2ns-qgate.h.
References q2ns::Y.
Referenced by q2ns::DepolarizingQMap::Sample().
|
inlineprivate |
Return the Pauli-Z gate descriptor.
| d | Optional duration metadata. |
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().