Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuEST-Kit/QuEST
/ isApprox
Function
isApprox
quest/src/core/utilities.cpp:473–475 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
471
*/
472
473
bool isApprox(qreal a, qreal b, qreal eps) {
474
return std::abs(a-b) <= eps;
475
}
476
bool isApprox(qcomp a, qcomp b, qreal eps) {
477
return std::norm(a-b) <= eps;
478
}
Callers
3
getUnitarity
Function · 0.85
getHermiticity
Function · 0.85
getWhetherNonZero
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected