Skip to content

Phase 8: Option routing for Flow(h::AbstractHamiltonian)#236

Merged
ocots merged 1 commit into
developfrom
phase8-flow-hamiltonian-routing
May 25, 2026
Merged

Phase 8: Option routing for Flow(h::AbstractHamiltonian)#236
ocots merged 1 commit into
developfrom
phase8-flow-hamiltonian-routing

Conversation

@ocots
Copy link
Copy Markdown
Member

@ocots ocots commented May 25, 2026

Add unified option routing system using CTSolvers.jl for Hamiltonian flow construction, replacing ad_backend=nothing mechanism with automatic routing to :di (backend) and :sciml (integrator) strategies.

New files:

  • src/Flows/registry.jl: Strategy registry for flow construction
  • src/Flows/flow_routing.jl: Routing and component building logic
  • test/suite/flows/test_flow_routing.jl: Unit/integration/error tests

Modified files:

  • src/Flows/building.jl: Add Flow(h) and Flow(h, n) overloads
  • src/Flows/Flows.jl: Include new routing files

Follows OptimalControl.jl pattern using CTSolvers.Orchestration.route_all_options

Add unified option routing system using CTSolvers.jl for Hamiltonian flow
construction, replacing ad_backend=nothing mechanism with automatic
routing to :di (backend) and :sciml (integrator) strategies.

New files:
- src/Flows/registry.jl: Strategy registry for flow construction
- src/Flows/flow_routing.jl: Routing and component building logic
- test/suite/flows/test_flow_routing.jl: Unit/integration/error tests

Modified files:
- src/Flows/building.jl: Add Flow(h) and Flow(h, n) overloads
- src/Flows/Flows.jl: Include new routing files

Follows OptimalControl.jl pattern using CTSolvers.Orchestration.route_all_options
@ocots ocots merged commit a2f46d5 into develop May 25, 2026
6 checks passed
@ocots ocots deleted the phase8-flow-hamiltonian-routing branch May 25, 2026 20:57
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