feat: fidelity measurement rows (goal_fidelity, phase_max_fidelity_at)#9
Merged
Merged
Conversation
…ity_at Scalar fidelity as a first-class MeasurementModel row: goal_fidelity computes |<goal|psi>|^2 in pure real arithmetic on iso-vecs (ForwardDiff-safe, global-phase invariant); goal_fidelity_at closure factory; phase_max_fidelity_at wraps the existing free-phase helper (experiment-side only, documented non-differentiable). Enables the scalar-sensor model-gradient calibration arm (fidelity-only QILC cell of the demo factorial) and the fidelity anchor row of the fused estimator. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scalar fidelity as a first-class
MeasurementModelrow — the sensor of the Liu et al. 2026 method and the anchor row of a fused estimator.goal_fidelity(x_iso, goal_iso):goal_fidelity_at(goal_iso): closure factory for measurement modelsphase_max_fidelity_at(goal; n_grid): free-phase-maximized row wrapping the existing helper; documented experiment-side-only (grid max, complex arithmetic)Full suite: 298/298 local. Unblocks the scalar-sensor model-gradient demo arm (2×2 factorial) and the fidelity anchor of the joint estimator.
🤖 Generated with Claude Code