Duanyang Wang,Lu Qi,Yuanheng Xie,Norbert M Linke,Kenneth Brown
{"title":"A hardware-safety-gated system for LLM-written native ARTIQ control code on a trapped-ion platform","authors":"Duanyang Wang,Lu Qi,Yuanheng Xie,Norbert M Linke,Kenneth Brown","doi":"10.1088/2058-9565/aec8a9","DOIUrl":null,"url":null,"abstract":"Abstract Large-language-model (LLM) agents can write and run experimental control code, but unchecked code can damage the apparatus. We present a control system that places an LLM agent in the loop of a trapped-ion experiment. It enforces a per-operation boundary between agent decisions and human authorization. The agent controls the existing Advanced Real-Time Infrastructure for Quantum physics (ARTIQ) stack through tools provided by a Model Context Protocol (MCP) server. The gate authorizes ARTIQ submissions with a token bound to the script and its arguments. Tokens are issued automatically once the script has run in an isolated hardware simulation (dax.sim) and the resulting trace has passed the configured device bounds. Sensitive actions require a token from a human operator. Within this boundary the agent writes its own experiments rather than calling pre-built routines. On a co-trapped 40 Ca + / 40 CaOH + crystal, the agent builds a full calibration stack and, with operator guidance, closes a cross-instrument loop to calibrate a feed-forward magnetic-field-stabilization waveform. On a separate 171 Yb + platform we run the control stack against live hardware. In that platform's configuration we attack the authorization mechanism with adversarial scripts, mapping the boundary of its protection. Analyzing where the agent still needed human guidance, we observe that under this system's configuration its limits lie in metacognitive control rather than domain knowledge. The agent did not recognize when a problem had to be re-framed.","PeriodicalId":20821,"journal":{"name":"Quantum Science and Technology","volume":"26 1","pages":""},"PeriodicalIF":4.9000,"publicationDate":"2026-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Quantum Science and Technology","FirstCategoryId":"101","ListUrlMain":"https://doi.org/10.1088/2058-9565/aec8a9","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"PHYSICS, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Abstract Large-language-model (LLM) agents can write and run experimental control code, but unchecked code can damage the apparatus. We present a control system that places an LLM agent in the loop of a trapped-ion experiment. It enforces a per-operation boundary between agent decisions and human authorization. The agent controls the existing Advanced Real-Time Infrastructure for Quantum physics (ARTIQ) stack through tools provided by a Model Context Protocol (MCP) server. The gate authorizes ARTIQ submissions with a token bound to the script and its arguments. Tokens are issued automatically once the script has run in an isolated hardware simulation (dax.sim) and the resulting trace has passed the configured device bounds. Sensitive actions require a token from a human operator. Within this boundary the agent writes its own experiments rather than calling pre-built routines. On a co-trapped 40 Ca + / 40 CaOH + crystal, the agent builds a full calibration stack and, with operator guidance, closes a cross-instrument loop to calibrate a feed-forward magnetic-field-stabilization waveform. On a separate 171 Yb + platform we run the control stack against live hardware. In that platform's configuration we attack the authorization mechanism with adversarial scripts, mapping the boundary of its protection. Analyzing where the agent still needed human guidance, we observe that under this system's configuration its limits lie in metacognitive control rather than domain knowledge. The agent did not recognize when a problem had to be re-framed.
期刊介绍:
Driven by advances in technology and experimental capability, the last decade has seen the emergence of quantum technology: a new praxis for controlling the quantum world. It is now possible to engineer complex, multi-component systems that merge the once distinct fields of quantum optics and condensed matter physics.
Quantum Science and Technology is a new multidisciplinary, electronic-only journal, devoted to publishing research of the highest quality and impact covering theoretical and experimental advances in the fundamental science and application of all quantum-enabled technologies.