Skip to content

feat: fidelity measurement rows (goal_fidelity, phase_max_fidelity_at)#9

Merged
aarontrowbridge merged 1 commit into
mainfrom
feat/fidelity-measurement-row
Jul 3, 2026
Merged

feat: fidelity measurement rows (goal_fidelity, phase_max_fidelity_at)#9
aarontrowbridge merged 1 commit into
mainfrom
feat/fidelity-measurement-row

Conversation

@aarontrowbridge

Copy link
Copy Markdown
Member

Scalar fidelity as a first-class MeasurementModel row — the sensor of the Liu et al. 2026 method and the anchor row of a fused estimator.

  • goal_fidelity(x_iso, goal_iso): $|\langle g|\psi\rangle|^2$ in pure real arithmetic on iso-vecs — ForwardDiff-safe, global-phase invariant (local phases documented as NOT quotiented)
  • goal_fidelity_at(goal_iso): closure factory for measurement models
  • phase_max_fidelity_at(goal; n_grid): free-phase-maximized row wrapping the existing helper; documented experiment-side-only (grid max, complex arithmetic)
  • Tests: values, global-phase invariance, ForwardDiff-vs-central-difference gradient, MeasurementModel round-trip on SimulatedExperiment, free-phase ≥ raw sanity

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

…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>
@aarontrowbridge aarontrowbridge merged commit 4dcc9ec into main Jul 3, 2026
7 checks passed
@aarontrowbridge aarontrowbridge deleted the feat/fidelity-measurement-row branch July 3, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant