Per-domain quickstarts
Drop-in patterns for photonics, RF, quantum hardware, and sensing.
Photonics: pass a complete detected response profile and an explicit feasible target; write the returned phases or amplitudes.
RF and arrays: pass a vector of measured channel errors and regulate it to the desired response.
Quantum hardware: aggregate a parallel shot batch into resolved per-channel responses and keep the acquisition budget frozen across every baseline.
Sensing: carry the accepted configuration between scans and regulate the measured profile to the target.
The one supported shape
Every supported domain uses the same vector-response loop. To minimize a least-squares objective, set target to the desired response and regulate the measured response error to zero.
opt = SWCOptimizer(key, n=len(x0), mode="regulation", target=target)
x = opt.start(x0)
for _ in range(rounds):
x = opt.step(measure(x), target=target)
opt.end()Run the envelope, then race the runtime and your incumbent under the same measured budget.