Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuEST-Kit/QuEST
/ getReferencePurity
Function
getReferencePurity
tests/utils/measure.cpp:130–133 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
128
129
130
qreal getReferencePurity(qmatrix state) {
131
132
return std::real(getTrace(state * state));
133
}
134
qreal getReferencePurity(qvector state) {
135
136
return getReferencePurity(getOuterProduct(state, state));
Callers
1
SECTION
Function · 0.85
Calls
2
getTrace
Function · 0.85
getOuterProduct
Function · 0.85
Tested by
no test coverage detected