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

Namespaces

namespace  anonymous_namespace{q2ns-analysis.cc}
 

Functions

double Fidelity (const QState &a, const QState &b)
 Compute fidelity between two QState objects of the same backend type.
 
double Purity (const QState &s)
 Compute the purity of a quantum state.
 
bool IsPure (const QState &s, double tol=1e-12)
 Check whether a quantum state is pure within a numerical tolerance.
 
double VonNeumannEntropy (const QState &s)
 Compute the von Neumann entropy of a quantum state in bits.
 
double TraceDistance (const QState &a, const QState &b)
 Compute the trace distance between two QState objects of the same backend type.