Skip to content

RecursionTrainer nested evaluator_init: resolve overwrite vs .setdefault() semantics #87

Description

@anurag-r20

Background

Deferred from PR #84's review (gh-review-pr:finding=nested-recursion-evaluator-init), 2026-08-15.

RecursionTrainer's nested-config construction currently overwrites an inner evaluator_init key outright rather than using .setdefault()-style merge semantics. The current overwrite behavior is the exact code path that generated the Interp/I_MPSAer results shipped in PR #84 (and the associated Nautilus campaigns), so changing it now would need those results re-validated, not just the training-pipeline code.

What needs deciding

  • Should nested evaluator_init keys be overwritten by the outer config (current behavior) or merged via .setdefault() (only fill in missing keys, preserve any inner ones already set)?
  • Whichever choice is made, confirm it doesn't silently change results for existing committed campaigns (Interp/I_MPSAer especially, since that's the method currently exercising this path).

Where

qaoa_training_pipeline's RecursionTrainer (or wherever the nested trainer-config construction lives in this repo's IBM_QAOA pipeline code — trace from RESULT_TAGs using I_MPSAer/Interp methods).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions