Skip to content

✨ Add Qiskit and stochastic RL actions - #793

Closed
flowerthrower wants to merge 19 commits into
v3/674-normalized-featuresfrom
v3/675-qiskit-passes
Closed

flowerthrower wants to merge 19 commits into
v3/674-normalized-featuresfrom
v3/675-qiskit-passes

Conversation

@flowerthrower

Copy link
Copy Markdown
Member

🤖 AI text below 🤖

Description

Creates the first downstream layer after the reviewed #758 observation PR.

This layer contains the remaining compact scalar observation encoding together with the Qiskit action and stochastic-selection changes:

  • encode num_qubits and depth as normalized one-element float32 arrays;
  • add TrivialLayout, ElidePermutations, SabreSwap, BasicSwap, LookaheadSwap, GateDirection, RemoveIdentityEquivalent, and Optimize1qGatesSimpleCommutation actions;
  • collect Clifford blocks before OptimizeCliffords and decompose its result;
  • evaluate 20 candidates by default for actions marked stochastic and retain the best configured figure of merit;
  • continue after individual failed candidates while propagating pass and scoring timeouts immediately.

Existing RL models must be retrained because both the observation and action schemas change. The IBM AI routing actions remain excluded because the published IBM transpiler packages conflict with the dependency versions required by this stack.

This draft depends directly on #758.

Validation

  • repository lint;
  • focused observation, routing, mapping, optimization, and stochastic-action checks;
  • direct pass- and scoring-timeout smokes.

Fixes #667

Part of #675

Part of #664

Checklist

  • The pull request contains only the changes assigned to this stack layer.
  • Existing focused tests and release metadata cover the changed behavior.
  • The changes follow the repository style and introduce no new warnings.
  • I reviewed the complete base-to-head diff.

If PR contains AI-assisted content:

  • Any agent that created, edited, or submitted GitHub content was explicitly authorized for that scope.
  • Every agent-authored or agent-edited public text body begins with the visible disclosure 🤖 *AI text below* 🤖.
  • I confirm that I have personally reviewed and understood all AI-generated content, and accept full responsibility for it.

flowerthrower and others added 19 commits August 27, 2026 15:04
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Assisted-by: GPT-5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Assisted-by: GPT-5 via Codex

Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Assisted-by: GPT-5 via Codex

Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Assisted-by: GPT-5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
@flowerthrower

Copy link
Copy Markdown
Member Author

🤖 AI text below 🤖

Recreated after restoring #758 to its human-reviewed commit, so this temporary downstream diff is retired.

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