Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Add calibration validation #46

Open
calgray opened this issue Oct 22, 2020 · 1 comment
Open

Add calibration validation #46

calgray opened this issue Oct 22, 2020 · 1 comment

Comments

@calgray
Copy link
Collaborator

calgray commented Oct 22, 2020

It is possible to validate that the calibration result is conformant with the mathematical model at the end of calibration. The following expressions can be converted into asserts or warnings at the end of PhaseRotate()

V == AG
therefore
G == Ad
V
V-A*G ~= 0

@calgray
Copy link
Collaborator Author

calgray commented Oct 22, 2020

e.g.

auto G = cal.back();
double PRECISION = 0.000001;
assert(isApprox(V-(ToMatrix(metadata.A) * ToMatrix(G)), 0, PRECISION));

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant