Agentic AI for Scientific Reasoning in Autonomous Quantum Sensing Experiments
Problem Statement
Lab automation usually runs fixed scripts. Real experiments need scientific reasoning: picking which measurement to run next, spotting calibration errors, and telling a real signal from noise. Existing LLM-agent demos rarely evaluate that reasoning separately from execution, so it is unclear when an agent's judgments can be trusted or whether more 'thinking' actually helps. Without that, it is hard to safely give agents control of physical hardware.
Key Novelty
- An end-to-end autonomous NV-center workflow in which an LLM agent chose a single NV, calibrated its resonance, measured T2* with Ramsey measurements, and on its own initiative added a CPMG measurement to probe a weak feature possibly caused by nearby 13C.
- An architecture that separates the LLM's hypothesis formation and data interpretation from deterministic hardware control and safety enforcement, with persistent project records providing memory.
- Two offline benchmarks that evaluate the agent's scientific reasoning without laboratory execution: a Ramsey checkpoint benchmark for detecting a residual calibration offset and a pODMR data-evaluation benchmark for judging resonances. Both expose how reasoning effort affects accuracy and false positives.
Evaluation Highlights
- Ramsey checkpoint benchmark (GPT-5.4, GPT-5.5, GPT-5.6 Sol): higher reasoning effort generally improved recognition of a residual resonance calibration offset.
- pODMR benchmark: with pulse-sequence information alone, higher reasoning effort increased false-positive resonance judgments. Requiring an explicit expected-signal calculation kept false-positive rates low across all three models and all reasoning settings.
Signal Assessment
Methodology
- Build an LLM-agent workflow with persistent project records, calculation and data-analysis tools, and a deterministic experiment-control layer that drives the NV hardware and enforces safety constraints.
- Run an autonomous experiment: the agent selects an NV center, calibrates its resonance frequency, runs Ramsey measurements to get T2*, and adds a CPMG measurement to test a hypothesis about a weak feature possibly linked to 13C.
- Build offline benchmarks from experimental checkpoints and data (Ramsey calibration-offset detection, pODMR resonance evaluation), and test multiple GPT models at different reasoning-effort levels.
- Compare prompting conditions in the pODMR benchmark (pulse-sequence information only vs. a required expected-signal calculation) and measure false-positive rates.
System Components
Plans experiments, forms scientific hypotheses, interprets data, and decides on follow-up measurements.
Long-term memory of experimental state, prior results, and decisions, so the agent stays consistent across steps.
Fitting, signal-expectation calculations, and data analysis that ground the agent's judgments in physics rather than free-form interpretation.
Code that executes pulse sequences and measurements on the NV setup and enforces hardware safety constraints independently of the LLM.
Offline test of whether the agent detects a residual resonance calibration offset from Ramsey data.
Offline test of whether the agent correctly judges the presence of a resonance in pulsed ODMR data, with emphasis on false positives.
Results
| Metric/Benchmark | Baseline | This Paper | Delta |
|---|---|---|---|
| Ramsey offset recognition vs. reasoning effort | Lower reasoning effort | Higher reasoning effort | Generally improved recognition (qualitative) |
| pODMR false-positive rate, pulse-sequence info only | Lower reasoning effort | Higher reasoning effort | More false positives at higher effort (qualitative) |
| pODMR false-positive rate with required expected-signal calculation | Pulse-sequence info only | Expected-signal calculation required | Kept low across all three models and reasoning settings |
| Autonomous end-to-end experiment | Manual/scripted workflow | Agent-driven NV selection, calibration, Ramsey T2*, and a self-initiated CPMG follow-up | Qualitative demonstration of autonomy |
Key Takeaways
- More reasoning effort is not uniformly better. On ambiguous signal-detection tasks it can push models toward over-interpretation and false positives, so evaluate reasoning settings per task rather than defaulting to the maximum.
- Require the agent to compute an explicit quantitative expectation (e.g., expected signal size) before judging data. This simple tool-use constraint sharply reduced hallucinated detections across models.
- For physical-world agents, keep the LLM at the hypothesis and analysis layer and leave hardware actuation and safety to deterministic code. This division of labor is a reusable design pattern for lab automation.
- Offline benchmarks built from real experimental checkpoints let you measure an agent's scientific judgment separately from execution, enabling cheap, reproducible model comparisons before deployment on expensive hardware.
Abstract
We implement an agentic AI workflow built around a large language model (LLM) agent for autonomous experiments with nitrogen-vacancy (NV) centers in diamond. NV centers are a widely used platform for quantum sensing, and the ability to control many measurements from a computer makes NV experiments a natural setting for autonomous workflows. We make two main contributions. First, we demonstrate an autonomous NV experiment workflow that combines persistent project records, quantitative calculation and data analysis tools, and deterministic experiment control. In one autonomous experiment, the agent selected a single NV center, calibrated its resonant frequency, measured \(T_2^\ast\) with Ramsey measurements, and added a Carr--Purcell--Meiboom--Gill (CPMG) measurement to check a weak feature that could be related to nearby \(^{13}\mathrm{C}\). Second, we introduce two offline benchmarks that evaluate the agent's reasoning separately from laboratory execution. We evaluated both benchmarks with GPT-5.4, GPT-5.5, and GPT-5.6 Sol. In the Ramsey checkpoint benchmark, greater reasoning effort generally improved recognition of a residual resonance calibration offset. By contrast, in the pulsed optically detected magnetic resonance (pODMR) data evaluation benchmark, pulse sequence information alone produced more false positive resonance judgments at higher reasoning effort. Requiring an expected signal calculation kept false positive rates low across all three models and reasoning settings. The results suggest a clear division of labor for autonomous experiments. The agent forms scientific hypotheses and uses quantitative tools to evaluate data, while deterministic code controls the hardware and enforces safety constraints.