Q2NS dev
ns-3 module
Loading...
Searching...
No Matches
q2ns-analysis.h File Reference

Backend-agnostic analysis for q2ns quantum states. More...

Go to the source code of this file.

Namespaces

namespace  q2ns
 
namespace  q2ns::analysis
 

Functions

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

Detailed Description

Backend-agnostic analysis for q2ns quantum states.

Definition in file q2ns-analysis.h.