Manuscript Offprint
arXiv:2608.26216Real-time virtual circuits for plasma shape control via neural network emulators: integration and testing in the MAST-U PCS
Matthew J. Marshall , Edward Jones , Graham J. McArdle , Alasdair Ross , Kamran Pentland , Nicola C. Amorisco , Charles Vincent , Martin Kochan , Colin Hogben , Graham Jones , Adam Stephen , George K. Holt and Adriano Agnello
2026
Hartree Centre, STFC, Daresbury Laboratory, Daresbury, WA4 4AD, United Kingdom
UKAEA, Culham Campus, Abingdon, OX14 3DB, United Kingdom
ARTICLE INFO
Keywords:
real-time control
shape control
MAST-U
neural network emulators
real-time inference
ABSTRACT
The deployment of advanced, AI-enabled control algorithms in tokamak experiments requires robust integration with existing plasma control system (PCS) architectures and extensive pre-experimental validation. In this contribution, we describe the integration and testing of neural-network-emulated virtual circuits for plasma shape control within the MAST Upgrade (MAST-U) PCS environment. The neural network models predict the plasma shape using the plasma current, poloidal field coil currents, and plasma profile parameters. In this paper, we explain how they are deployed via a real-time C++ inference server that interfaces with the PCS, returning the shape prediction and its Jacobian, and how, from the latter, virtual circuit matrices and updated coil current requests are computed for real-time actuation. Emphasis is placed on the validation workflow and best practices adopted to ensure confidence in the proposed control framework prior to experimental deployment. This work demonstrates practical AI-based shape control components for fusion control systems, with direct relevance for upcoming MAST-U experiments and future devices.
1. Introduction
To achieve net energy production, future magnetic fusion devices will require accurate and responsive plasma position and shape control in order to access high performance operational regimes [1, 2]. Recent work has shown that machine-learning methods can be integrated into plasma control systems (PCS) at several different levels of the control stack. Early neural-network (NN) work already established the feasibility of real-time learned feedback for tokamak position and shape control [3]. More recently, reinforcement-learning controllers have been trained in simulation and deployed directly on TCV for magnetic control of diverse plasma configurations, including advanced shapes [4], with subsequent work addressing practical issues such as training time, steady-state offsets, and routine controller generation [5]. Related developments on DIII-D have demonstrated reconstruction-free magnetic control using raw magnetic diagnostics in the PCS [6], while broader AI-control infrastructure has enabled the deployment of multiple machine-learning predictors and controllers within integrated real-time experiments [7]. These results highlight that the central challenge is not only the learning algorithm itself, but the full deployment chain: simulator-based testing, real-time-compatible execution, diagnostic and actuator interfacing, constraint handling, and experimental validation.
In this paper, we detail the integration and testing of a new AI-enabled plasma shape controller within the MAST Upgrade (MAST-U) PCS. The NN-based shape controller takes in real-time measurements of the plasma current, poloidal field (PF) coil currents, and plasma current density profile parameters, returning state-aware virtual circuits (VCs) to the PCS, which are used to compute updated PF coil current requests for real-time shape actuation. Compared to the conventional VCs, computed offline prior to a plasma shot, these emulated VCs provide state-aware shape sensitivity, enabling adaptivity to unforeseen plasma trajectories on milliseconds timescales—a capability well-suited to MAST-U which explores a wide range of highly shaped plasma configurations [8, 9].
This work completes the validation process for AI-enabled shape control, building on the prior validation of the emulated VCs accuracy against Grad-Shfranov (GS) solutions in static scenarios [10] and in closed-loop simulations [11]. Here, we demonstrate that the fully PCS-software integrated real-time VC (RTVC) controllers produce the
matthew.marshall@stfc.ac.uk (M.J. Marshall); edward.jones1@ukaea.uk (E. Jones)
ORCID(s): 0000-0003-1454-2890 (M.J. Marshall); 0000-0001-6814-9117 (G.K. Holt); 0000-0001-9775-0331 (A. Agnello)
M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier
Page 1 of 10 expected output during pre-shot testing and “piggyback” commissioning shots (to levels), while retaining the conventional shape control capabilities.
In Section 2, we review the existing shape control capability on MAST-U PCS. In Section 3, we detail the architecture of the RTVC Server, the system that serves real-time inference of NN models, covering the real-time constraints, the communication model between it and PCS, and the outputs produced. In Section 4, we detail the RTVC Algorithm that integrates RTVC Server into PCS, what transformations are made for downstream control, and in-silico testing of this integration with timing and command validation. In Section 5, we present final validation of the control scheme in several commissioning shots on MAST-U. Finally, in Section 6, we discuss opportunities there are to improve on the control scheme, including generalisation for RTVC Server's use to other aspects of tokamak control.
A VC matrix is defined as the pseudoinverse of the sensitivity matrix , where is the vector of PF coil currents. It maps requested changes in each shape parameter to the corresponding combination of coil current changes needed to produce it, leaving the other shape parameters unchanged. Requested changes from the shape controller are multiplied by a VC at each time step to obtain requested changes in coil currents . Machine-protection limits are applied to these requests before they are converted to PF coil voltages.
VCs are typically computed offline, via finite-differences, using a small number of GS equilibria taken along the anticipated scenario trajectory, with each VC applied over a preset time interval. This complicates planning scenarios in which the plasma shapes evolves substantially. Furthermore, in case of departures from the anticipated trajectory, the accuracy of the VC degrades and control performance suffers. Since computing S using GS solutions and inverting it is too slow for real-time deployment, we use the trained emulators from [10] to predict and generate the VCs in real-time. These require real-time measurements of , the total plasma current, and the plasma current density profile parameters.
3. Real-time Virtual Circuit Server
Any control scheme for the MAST-U PCS must meet basic real-time constraints: operating system (OS) level memory allocation confined to initialisation, low-latency inter-process communication that avoids OS-level routine calls (syscalls), and a sufficiently fast cycle time. The aforementioned NN emulators were trained using TensorFlow [16] and Keras [17], and were validated using their native Python/Keras interface [10, 11]. This interface is unsuitable for real-time use: inference times are long and jittery, and memory allocation cannot be constrained.
We identified TensorFlow Lite for Microcontrollers (TFLM) [19] as a suitable inference engine, since it targets microcontroller environments with constraints similar to PCS (differing mainly in available memory, processor power, and PCS's x86-64 architecture). Alternatives such as ONNX [20], OpenVINO [21], and NCNN [22] were ruled out as they could not avoid memory allocation during inference, while TVM AOT [23] had steeper model development and integration times. After NN training, Keras models are easily converted to TFLM's flatbuffer fomrat using its tooling; these flatbuffers, plus a short descriptor file, are fed to RTVC Server and stored in a dedicated mount on PCS hardware.
Figure 1 shows RTVC Server’s two components: command-line interface (CLI) program (purple) and library (blue), as well as the associated PCS initialisation system (red). The CLI validates inputs and allocates memory, then hands off to a library-provided mode, after which NN inference begins. RTVC Server runs in three modes: shape-parameters only, Jacobian, and multi-threaded Jacobian. The first two are single-threaded; shape-parameters-only returns just the emulator-predicted shape parameters, while the other two also return the emulators’ Jacobian. TFLM (like all real-time-suitable inference engines considered here) lacks autodiff support, but tuned finite differences were found to give comparable or better accuracy to autodiff Jacobians [10], making this our preferred approach for this implementation.
Now known as LiteRT for Microcontrollers [18].
M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier
Page 2 of 10

Figure 1: RTVC Server architecture, showing related PCS initialisation (red), RTVC Server initialisation (purple), RTVC Server "server mode" (blue). All memory allocations occur in the red and purple phases, with the blue phase simply performing inferences and finite-differences, retrieving inputs from and sending results to a shared memory segment.
| Description | Average | p90 | p95 | p99 | ||||
|---|---|---|---|---|---|---|---|---|
| ns | kHz | ns | kHz | ns | kHz | ns | kHz | |
| No Inference | 650 | 1500 | 830 | 1200 | 920 | 1100 | 1200 | 833 |
| Single Model | 50000 | 20 | 65000 | 15 | 65000 | 15 | 190000 | 5 |
| Ensemble of 8 | 590000 | 1.7 | 730000 | 1.4 | 890000 | 1.1 | 930000 | 1.1 |
Table 1 Timings and frequencies of RTVC Server for end-to-end requests (average and 90th, 95th, 99th percentiles).
RTVC Server can also load an ensemble of models, averaging their shape parameters and Jacobian predictions to trade accuracy against extra computational time (i.e. the achievable VC update rate). In multi-threaded mode, the perturbed inferences needed for finite-difference gradients are distributed across worker threads, while the main thread computes each model's baseline inference and collects the results to form the averaged Jacobian. With models, the fastest net inference time scales linearly with the sequential baseline inference.
Timing tests (see Table 1) were run on a development machine with similar hardware to PCS covering three scenarios: no inference, single model, and ensemble of 8. Each test spans the full round trip from sending inputs to RTVC Server to retrieving outputs. With no inference, RTVC Server achieves sub-microsecond latency except at the 99th percentile, averaging 1.5MHz—confirming interprocess communications are sufficient for PCS's 1MHz control cycle. With a single model, RTVC Server exceeds PCS's 10kHz shape-control frequency up to the 90th percentile and stays sub-0.2ms at the 99th. With the 8 model ensemble (all results hereafter are generated using this), timings remain sub-1ms at the 99th percentile.
PCS and RTVC Server communicate via two shared memory segments, one for data and one for synchronisation flags (using flags instead of OS semaphores avoids syscalls, cutting latency and jitter), with dedicated isolated cores letting OS threads wait rather than sleep on synchronisation. RTVC Server allocates a fixed 1GB model buffer plus 100kB per model for intermediate buffers, so our 8-model ensemble uses under 1.1GB.
4. PCS Integration and Testing
Control functionality in the MAST-U PCS is organised into independently-scheduled “Categories” (e.g. reconstruction, shape control, divertor control), each of which steps through a sequence of “Phases” during a pulse, with configuration data and an associated “Algorithm” attached to the Category at each Phase [13, 15]. Conventional shape control uses the VC Algorithm, selecting VCs in real time from a pre-set schedule, and runs directly on CPU2 of PCS at a 0.1ms (10kHz) cycle time.
M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier
Page 3 of 10
To enable the NN emulated VCs, we developed the RTVC Algorithm (and Category) for selection during a given shot Phase. It sends the required real-time measurement data to RTVC server for inference, which returns the ensemble-averaged Jacobian , the pseudoinverse of which (i.e. the VC) is then calculated using CBLAS. Entries in the VC Algorithm's VC are then overridden with the corresponding entries from this real-time VC for the selected shape parameters (subsets of which can be chosen). This overwriting requires the VC Algorithm to be running in the background of the RTVC algorithm when enabled.
This computational work is split across two PCS cores. CPU2 (0.1ms / 10kHz) handles the VC entry overriding and PF coil current request calculation, identical to the VC Algorithm, while CPU5 (0.5ms / 2kHz) handles the RTVC Server signalling, sending inputs/outputs, and performing the pseudoinverse calculation. As mentioned above, RTVC Server itself runs on separate pinned threads on cores unused by PCS, asynchronously rather than on a fixed cycle, yielding fast inference times. We note that while the first pseudoinverse call incurs a high execution time ( allocating worker threads), this happens only once, with the subsequent calls occurring in 8-12 .
Build infrastructure to target PCS hardware optimisations, such as vectorisation, are planned for future work. In this implementation, generic Linux binaries were produced and used instead. In the future, architecture-optimised binaries will be generated and benchmarked—we expect the timings in Section 3 to be achievable on PCS hardware, with further reduced jitter.
Following successful unit testing, we built a dedicated test suite for control-level verification of the complete PCS shape control algorithm, mocking the PCS real-time heap and associated data structures to emulate shot execution and support debugging. Using this data, MAST-U shots can be “re-played” on development machines (equivalent to PCS hardware) using the PCS simulation capabilities from initiation to termination. These tests include both inference inputs and intermediate VC-matrix-computation variables, allowing direct comparison between the suite’s Jacobians and VC matrices and those produced from the TensorFlow emulators. The latter are used within the FreeGSNKE Pulse Design Tool’s (FPDT) [24] closed-loop simulation environment, which reproduces the PCS Category framework in Python.
We selected MASTU shots 53000 (high elongation) and 53010 (super-X divertor). Shot playback generated the RTVC-predicted shape parameters and the VC matrices that would have been computed had RTVC Algorithm been configured for these shots during operation. Table 4 summarises the different scenarios developed to assess the robustness of the deployed PCS implementation. A baseline configuration was established for each plasma shot, with subsequent tests introducing controlled variations in the inference time window, plasma current density profile parameters, inverse matrix configuration, and shape parameter override selection. This approach enabled each configurable aspect of the implementation to be validated independently while maintaining reproducible test conditions.
| ID | Shot | Interval (s) | Inverse configuration | Override configuration | Purpose |
|---|---|---|---|---|---|
| 1 | 53000 | 0.2–0.6 | All seven emulated shape parameters | All controlled parameters: Shape1–Shape4 | Baseline configuration for shot 53000. |
| 2* | 53000 | 0.2–0.6 | All seven emulated shape parameters | All controlled parameters | Use of an alternative profile definition. |
| 3 | 53000 | 0.2–0.6 | Squareness gap, nose gap and strike point excluded | All controlled parameters | Variation of the parameters included in the pseudo-inverse. |
| 4 | 53000 | 0.2–0.6 | All seven emulated shape parameters | Shape1 () not overridden | Single-parameter override variation. |
| 5 | 53000 | 0.2–0.6 | All seven emulated shape parameters | Shape1 () and Shape3 () not overridden | Multiple-parameter override variation. |
| 6 | 53010 | 0.2–0.8 | All seven emulated shape parameters | Shape1–Shape4 and Div-T5 | Baseline configuration for shot 53010. |
| 7 | 53010 | 0.2–0.8 | Squareness gap and nose gap excluded | Strike-point parameters Div1, Div3 and Div4 not overridden | Combined inverse and override variation. |
Table 2: Summary of software validation scenarios used during simulation testing. *Scenario 2 was ran using plasma current density profiles from shot 53010.
Figure 2 displays the results from each of these tests, focusing on the cumulative integral of the PF coil current requests. Results of the shot playback (with the RTVC Algorithm enabled) are compared to those of the TensorFlow
M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier
Page 4 of 10 emulators embedded with the FPDT. We consistently observe in the majority of tests, with any offsets attributable to the PCS simulation environment rather than to the controller itself. Within PCS, each input channel has individual analogue-to-digital converter calibration parameters (offset and scaling), whereas simulation replay applies a single global offset and scaling factor to all channels. This calibration mismatch accumulates through the control calculations, producing an offset most visible in the final coil current requests, as seen in the plots. Alongside this testing, we also measured inference performance (i.e. how often the real-time VCs were updated throughout the shot), achieving a bounded cycle time of 5–5.6ms.
5. MAST-U Commissioning Shots
Before deploying the RTVC Algorithm for active plasma shape control on MAST-U, we ran it in parallel (i.e. “piggyback” mode) to the conventional VC Algorithm on real MAST-U shots. Using the production-ready PCS hardware, the VC Algorithm produced the real-time coil current derivative requests used to control the plasma, while the RTVC Algorithm logged requests it would have produced to control the plasma, given the real-time input plasma measurements. These requests could then be directly compared to those issued by the TensorFlow VC emulators.
This commissioning was performed over three different shots: 53974, 53975, and 53976. The “unapproved” (i.e. prior to machine safety limit clipping) coil current derivative requests from both RTVC and the FPDT can be found in Figure 3. The values show almost perfect agreement between the two sets of requests, completing the validation and integration of RTVC within the MAST-U PCS.
As with the integration testing, the VC update latency during the commissioning shots was confirmed to lie within [5, 5.6]ms, corresponding to approximately 130-144 real-time, state-dependent VCs being generated per shot (for full 1s shot cases).
6. Conclusions
This paper outlines how emulators trained to predict a tokamak plasma shape (given plasma currents, coil currents, and plasma profile parameters) were translated into a real-time control scheme and integrated into the MAST-U PCS. We demonstrate that this real-time scheme issues the same commands as the TensorFlow-based emulators in a closed-loop control workflow, establishing readiness for plasma control via the RTVC Algorithm.
We have also characterised the real-time execution latency of the RTVC workflow. The measured timings indicate that the present implementation is compatible with experimental testing on MAST-U under the conditions considered here, while leaving margin for further optimisation of inference and communication overheads.
RTVC has been used successfully to actively control MAST-U plasmas across a range of scenarios, as described separately [25]. These results inform future development of the RTVC Server and Algorithm, including further safety constraints and improved handling of unexpected deviations in control.
By demonstrating real-time appropriate latencies, with an inference server capable of running general neural network models, this work lays the groundwork for other full-precision models to be used in control functions on tokamaks with system-on-a-chip PCS environments, where an accuracy-latency tradeoff (which may be required on accelerated hardware) is currently not necessary.
7. Acknowledgements
This work was funded by the Fusion Computing Lab collaboration (between UKAEA and STFC Hartree) and part funded by the EPSRC Energy Programme (EP/W006839/1).
References
[1] A C C Sips, for the Steady State Operation, and the Transport Physics topical groups of the International Tokamak Physics Activity. "Advanced scenarios for ITER operation". en. In: Plasma Physics and Controlled Fusion 47.5A (Apr. 2005), A19. ISSN: 0741-3335. DOI: 10.1088/0741-3335/47/5A/003. URL: https://doi.org/10.1088/0741-3335/47/5A/003 (visited on 07/15/2026).
[2] Hendrik Meyer. “The Physics of the Preferred Plasma Scenario for STEP”. In: 2022. URL: https://indico.fusenet.eu/event/28/contributions/302/ (visited on 05/22/2023).
[3] Chris M. Bishop et al. “Real-Time Control of a Tokamak Plasma Using Neural Networks”. In: Neural Computation 7.1 (Jan. 1995), pp. 206–217. DOI: 10.1162/neco.1995.7.1.206. URL: https://doi.org/10.1162/neco.1995.7.1.206 (visited on 07/27/2026).
M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier
Page 5 of 10
[4] Jonas Degrave et al. “Magnetic Control of Tokamak Plasmas through Deep Reinforcement Learning”. In: Nature 602.7897 (Feb. 2022), pp. 414–419. DOI: 10.1038/s41586-021-04301-9. URL: https://www.nature.com/articles/s41586-021-04301-9 (visited on 07/27/2026).
[5] Brendan D. Tracey et al. “Towards Practical Reinforcement Learning for Tokamak Magnetic Control”. In: Fusion Engineering and Design 200 (Mar. 2024), p. 114161. DOI: 10.1016/j.fusengdes.2024.114161. URL: https://www.sciencedirect.com/science/article/pii/S0920379624000140 (visited on 07/27/2026).
[6] G. F. Subbotin et al. “Demonstration of Reconstruction-Free Static Magnetic Control of DIII-D Plasma with Deep Reinforcement Learning”. In: Nuclear Fusion 66.2 (Jan. 2026), p. 026040. DOI: 10.1088/1741-4326/ae34c6. URL: https://doi.org/10.1088/1741-4326/ae34c6 (visited on 07/27/2026).
[7] A. Rothstein et al. “Enabling Integrated AI Control on DIII-D: A Control System Design with State-of-the-Art Experiments”. In: Nuclear Fusion 66.7 (July 2026), p. 076050. DOI: 10.1088/1741-4326/ae7f9d. URL: https://doi.org/10.1088/1741-4326/ae7f9d (visited on 07/27/2026).
[8] J.R. Harrison et al. “Overview of physics results from MAST upgrade towards core-pedestal-exhaust integration”. en. In: Nuclear Fusion 64.11 (Aug. 2024), p. 112017. ISSN: 0029-5515. DOI: 10.1088/1741-4326/ad6011. URL: https://doi.org/10.1088/1741-4326/ad6011 (visited on 07/21/2026).
[9] H. Anand et al. “Real-time plasma equilibrium reconstruction and shape control for the MAST Upgrade tokamak”. en. In: Nuclear Fusion 64.8 (July 2024), p. 086051. ISSN: 0029-5515. DOI: 10.1088/1741-4326/ad5c80. URL: https://doi.org/10.1088/1741-4326/ad5c80 (visited on 07/08/2026).
[10] Alasdair Ross et al. Real-time virtual circuits for plasma shape control via neural network emulators. en. May 2026. URL: https://arxiv.org/abs/2605.14939v2 (visited on 07/08/2026).
[11] K. Pentland et al. Real-time virtual circuits for plasma shape control via neural network emulators: dynamic validation in closed-loop simulations. en. Apr. 2026. URL: https://arxiv.org/abs/2604.00781v2 (visited on 07/08/2026).
[12] B. G. Penaflor et al. “Worldwide collaborative efforts in plasma control software development”. In: Fusion Engineering and Design. Proceedings of the 6th IAEA Technical Meeting on Control, Data Acquisition, and Remote Participation for Fusion Research 83.2 (Apr. 2008), pp. 176–180. ISSN: 0920-3796. DOI: 10.1016/j.fusengdes.2007.11.012. URL: https://www.sciencedirect.com/science/article/pii/S0920379607005315 (visited on 07/23/2026).
[13] Graham McArdle, Luigi Pangione, and Martin Kochan. “The MAST Upgrade plasma control system”. In: Fusion Engineering and Design 159 (Oct. 2020), p. 111764. ISSN: 0920-3796. DOI: 10.1016/j.fusengdes.2020.111764. URL: https://www.sciencedirect.com/science/article/pii/S0920379620303124 (visited on 07/08/2026).
[14] Martin Kochan. “Real-time plasma shape reconstruction on MAST Upgrade based on local expansion”. In: Proceedings of the 30th IEEE Symposium on Fusion Engineering (SOFE). IEEE, 2023.
[15] Graham McArdle. “Integrated real-time control on the MAST Upgrade tokamak”. en-GB. In: Oct. 2023. URL: https://scientific-publications.ukaea.uk/papers/integrated-real-time-control-on-the-mast-upgrade-tokamak/ (visited on 07/08/2026).
[16] Martín Abadi et al. “TensorFlow: a system for large-scale machine learning”. In: Proceedings of the 12th USENIX conference on Operating Systems Design and Implementation. OSDI'16. USA: USENIX Association, Nov. 2016, pp. 265–283. ISBN: 978-1-931971-33-1. (Visited on 03/30/2026).
[17] François Chollet. “Keras: The Python Deep Learning library”. In: Astrophysics Source Code Library (June 2018). ADS Bibcode: 2018ascl.soft06022C, ascl:1806.022. URL: https://ui.adsabs.harvard.edu/abs/2018ascl.soft06022C (visited on 03/30/2026).
[18] Lu Wang et al. LiteRT: The Universal Framework for On-Device AI- Google Developers Blog. en. Blog. Google for Developers, Jan. 2026. URL: https://developers.googleblog.com/litert-the-universal-framework-for-on-device-ai/ (visited on 03/30/2026).
[19] Robert David et al. “TensorFlow Lite Micro: Embedded Machine Learning for TinyML Systems”. en. In: Proceedings of Machine Learning and Systems 3 (Mar. 2021), pp. 800–811. URL: https://proceedings.mlsys.org/paper_files/paper/2021/hash/6c44dc73014d66ba49b28d483a8f8b0d-Abstract.html (visited on 03/30/2026).
[20] ONNX Runtime | Home. en. URL: https://onnxruntime.ai/ (visited on 07/23/2026).
[21] V. V. Zunin. “Intel OpenVINO Toolkit for Computer Vision: Object Detection and Semantic Segmentation”. In: 2021 International Russian Automation Conference (RusAutoCon). Sept. 2021, pp. 847–851. DOI: 10.1109/RusAutoCon52004.2021.9537452. URL: https://ieeexplore.ieee.org/document/9537452 (visited on 07/23/2026).
[22] Hui Ni, blank, and blank. ncnn. original-date: 2017-06-30T10:55:37Z. June 2017. URL: https://github.com/Tencent/ncnn (visited on 07/23/2026).
[23] Tianqi Chen et al. “TVM: an automated end-to-end optimizing compiler for deep learning”. en. In: Proceedings of the 13th USENIX conference on Operating Systems Design and Implementation. ACM, 2018. URL: https://dl.acm.org/doi/10.5555/3291168.3291211 (visited on 07/23/2026).
M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier
Page 6 of 10
[24] K. Pentland et al. The FreeGSNKE Pulse Design Tool (FPDT): a computational framework for evolutive plasma scenario and control design. arXiv:2603.28513 [physics.plasm-ph]. June 2026. DOI: 10.48550/arXiv.2603.28513. URL: http://arxiv.org/abs/2603.28513 (visited on 07/13/2026).
[25] N.C. Amorisco, K. Pentland, and et al. “Real-time virtual circuits for plasma shape control via neural network emulators: experimental demonstration on MAST Upgrade”. In: subm. (2026).
M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier
Page 7 of 10
| Test 1 PCS | Test 2 PCS | Test 3 PCS | Test 4 PCS | Test 5 PCS | Test 6 PCS | Test 7 PCS | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Test 1 emulator | Test 2 emulator | Test 3 emulator | Test 4 emulator | Test 5 emulator | Test 6 emulator | Test 7 emulator |

Figure 2: Scenarios 1-7 of PCS Simulation testing, comparing the coil current requests produced by TensorFlow emulators in FPDT ("emulator") against the requests produced by RTVC ("PCS").
M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier
Page 8 of 10
RTVC category (UDA) …… FPDT emulated VCs
Shot 53974
Shot 53975
Shot 53976



Unapproved dl/dt [A s ]
Shot time [s]
Shot time [s]
Shot time [s]
Figure 3: Unapproved dl/dt requests in commissioning shots 53974, 53975 and 53976 from Python emulators and RTVC. Note that shot 53976 terminated at 0.38s—unrelated to RTVC.
M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier
Page 9 of 10