arXiv:2608.28468physics.plasm-phAug 2026

Manuscript Offprint

arXiv:2608.28468

Real-time virtual circuits for plasma shape control via neural network emulators: experimental demonstration on MAST Upgrade

Nicola C. Amorisco, Kamran Pentland, Adriano Agnello, George K. Holt, Alasdair Ross, Matthew J. Marshall, Edward Jones, Graham J. McArdle, Charles Vincent, Timothy Nunn, Martin Kochan, Pedro Cavestany, Aran Garrod, Stanislas Pamela, James Buchanan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

N. C. Amorisco 1^{1} K. Pentland 1^{1} A. Agnello 2^{2} G. K. Holt 1^{1} A. Ross 2^{2}

M. J. Marshall 2^{2} E. Jones 1^{1} G. McArdle 1^{1} C. Vincent 1^{1} T. Nunn 1^{1} M. Kochan 1^{1}

P. Cavestany 2^{2} A. Garrod 2^{2} S. Pamela 1^{1} J. Buchanan 1^{1} the MAST Upgrade Team 3^{3}

August 31, 2026

Abstract. Conventional plasma shape control in tokamaks relies on virtual circuits (VCs) that are computed offline from linearisations around a small, tailored number of reference equilibria, and deployed as expertly prepared schedules during the discharge. Here, we report on the first experimental deployment of real-time VCs. We replace pre-set look up tables with VCs updated in real time using surrogates of the plasma response. Both the existing control architecture and the interpretability of VC-based control are retained.

Previous work showed that neural network emulators can produce accurate VCs, and validated their performance in closed-loop shape control simulations. Here, we report their first experimental validation on MAST Upgrade (MAST-U). Dedicated experiments spanning different scenarios, including prescribed shape perturbations, feedback-driven divertor-leg motion, and strongly evolving plasma configurations, show that real-time VCs can realise plasma shape-control tasks within the MAST-U plasma control system.

These results establish the experimental feasibility of real-time linearisations as a practical extension of conventional plasma shape control in tokamaks. The present implementation demonstrates a central step towards a simpler control workflow, in which manually constructed, phased VC schedules are replaced by VCs generated automatically online from a trained surrogate model, without scenario-specific retraining.

Keywords. Virtual circuits • Real-time control • Neural-network emulators • Plasma control systems • MAST Upgrade

1 Introduction

Accurate control of the plasma position and shape is fundamental to the operation of magnetic confinement fusion experiments, enabling the exploration of high-performance operating scenarios while maintaining safe plasma operation (e.g., Ariola and Pironti, 2016). As fusion devices move towards higher power operation and increasingly demanding engineering constraints, there is growing interest in the application of artificial intelligence (AI) and machine learning to plasma control, with the aim of improving controller performance, reducing the burden of manual controller design and tuning, and enabling increasingly autonomous operation.

Applications of AI to tokamak plasma control have significantly progressed in the 2020s, with approaches spanning several levels of the control architecture. Neural networks (NNs) have provided real-time estimates for vertical stability control on DIII-D and for fast and adaptive vertical position control on EAST (Rui et al., 2025; Sammuli et al., 2021; Song et al., 2024), building on earlier neural-network-assisted equilibrium control experiments (Bishop et al., 1995; Windsor et al., 1997). Learned predictors and policies have also been deployed on DIII-D for plasma performance control, tearing instability avoidance and prevention of H–L back-transitions (Char et al., 2023; Orozco et al., 2022; Seo et al., 2024). Reinforcement learning has been used to develop policies that map measurements and control targets either to high-level control requests or directly to actuator commands (Char et al., 2023; De Tommasi et al., 2022; Degrave et al., 2022; Kerboua-Benlarbi et al., 2024; Seo et al., 2024; Tracey et al., 2024; Wang et al., 2025) and used to control plasmas on TCV, HL-3, and DIII-D (Degrave et al., 2022; Subbotin et al., 2026; Tracey et al., 2024; Wu et al., 2025).

While these developments demonstrate the potential of AI to enhance plasma control and operation, their routine use within a plasma control system (PCS) must satisfy considerations beyond control robustness. In particular, interpretability and operational familiarity remain important, while retraining learned controllers around new scenarios can be costly. In this work, we demonstrate a different approach designed to address these concerns. Rather than replacing the feedback controller, we use neural network emulators to update the local plasma response linearisations from which virtual circuits (VCs) are derived. Shape errors and actuator requests therefore remain connected through the established VC decomposition, retaining the structure and operational familiarity of conventional shape control. Because the emulators are trained over a broad operating space rather than for individual discharge scenarios, the same models can provide real-time VCs across different plasma conditions without scenario-specific retraining or manually prepared VC schedules. Compared with static, pre-set schedules, these real-time updates keep the VCs matched to the evolving plasma response, maintaining the intended orthogonality between shape-control parameters and allowing the existing controller to adapt its actuator response when the plasma departs unexpectedly from the planned trajectory.

The timeliness of this approach is reinforced by a con-

1^{1} United Kingdom Atomic Energy Authority, Culham Campus, Abingdon, Oxfordshire, OX14 3DB, United Kingdom (nicola.amorisco@ukaea.uk)

2^{2} STFC Hartree Centre, Sci-Tech Daresbury, Keckwick Lane, Daresbury, Warrington, WA4 4AD, United Kingdom

3^{3} See author list of J.R. Harrison at al 2026 Nucl. Fusion 66 116005

Figure

Figure 1.1 Schematic comparison between conventional virtual-circuit operation and RTVC operation. Conventional operation uses precomputed linearisations scheduled by discharge phase, whereas RTVCs generate the local linearisation from the instantaneous plasma state. The shape reconstruction, shape/VC controllers, and machine safety limits within the PCS interface are unchanged.

temporaneous experimental demonstration of an inverse Grad-Shafranov neural network for tokamak magnetic control (Wang et al., 2026). That method maps requested plasma shapes and real-time estimates of the plasma state directly to PF-coil current references, which are then tracked by lower-level current controllers. RTVC addresses the same broad challenge from a complementary direction: rather than learning the inverse mapping from shape requests to coil currents, it learns the forward plasma response, differentiates this model to construct local VCs, and retains explicit feedback on the reconstructed plasma-shape error. The emergence of these complementary approaches highlights real-time, learned equilibrium models as an increasingly active direction in tokamak shape control.

The methodological and validation foundations of RTVC were established in a sequence of earlier studies. Agnello et al. (2024) introduced a framework for efficiently generating synthetic Grad-Shafranov (GS) equilibria using the FreeGSNKE free-boundary equilibrium solver (Amorisco et al., 2024). Ross et al. (2026) applied this framework at scale to produce a large equilibrium library spanning a broader range of configurations than those explored in previous campaigns on MAST Upgrade (MAST-U; Fishpool et al., 2013; McArdle et al., 2020; Ryan et al., 2023). The resulting library was used to train plasma-shape emulators, whose Jacobians were used to construct VCs, which were then tested against physics-based reference VCs in static validation. Subsequent closed-loop simulations using the FreeGSNKE Pulse Design Tool (FPDT) (Pentland et al., 2026a) showed that these real-time VCs delivered the requested shape corrections across a broad region of the MAST-U operating space (Pentland et al., 2026b). Most recently, the emulators were incorporated into a real-time virtual circuit (RTVC) server and control algorithm and integrated into the MAST-U PCS. Playback, performance, and non-actuating “piggyback” tests verified real-time execution and consistency with the offline emulator implementation (Marshall et al., 2026).

Here, we present the first experimental demonstration of RTVCs on MAST-U. The experiments span progressively more demanding plasma scenarios, from control of conventional plasma shapes, through prescribed shape perturbations and feedback-driven divertor leg motion, to strongly evolving plasma configurations. Together, they establish the feasibility of integrating RTVCs within an existing control architecture and applying the same trained models across distinct scenarios without scenario-specific retraining or manually prepared VC schedules. They also provide a first experimental assessment of the resulting shape control performance and its present limitations.

References (31)