預測 Forecast vs. actual (synthetic test set, 10-min steps)
風 Try it: next-step forecast
The sliders build a 16-step history ending at the chosen speed; the power columns follow a generic cubic power curve.
衡 Test-set metrics (synthetic)
| Model | Persistence |
|---|
Persistence predicts "next = current". At 10 minutes ahead it is already very accurate, so it is the honest yardstick.
道 How it works
A Conv1D-LSTM encoder feeds a 3-qubit variational quantum circuit (RY/RZ rotations, circular CNOT entanglement); a small dense head turns the qubit read-outs into the forecast. The model predicts the 10-minute change in wind speed and adds it to the current reading.
Weights were trained in PyTorch, exported to JSON and re-implemented in plain JavaScript, including a small statevector simulator for the quantum circuit. A test checks that the JS and Python predictions match within 1e-4.