arXiv Science⌕ Search

arXiv subjects

Alán Aspuru-Guzik

Publications and source records attributed to Alán Aspuru-Guzik.

At least 19 recordsLinked to original sources

Can Language Models Build Molecules in Three Dimensions?

Chemical drawings convey which atoms are bonded and how stereocentres are configured, but not molecular shape. Every simulation starts from three-dimensional coordinates, and building them from a drawing remains a manual step. We introduce MolDraft, a curated benchmark of 300 drawing-structure pairs spanning natural products, hypervalent compounds, and coordination complexes. Given an image and a short instruction, an AI system must generate a complete set of atomic coordinates, which are checked for molecular identity, stereochemical configuration, and coarse ligand geometry. We evaluate nine multimodal language models using the same agent setup. The share of molecules built correctly, the resolve rate, ranges from 26.3% to 85.0% and falls as molecules grow, most sharply above about 80 atoms. Only 30 of the 300 molecules are resolved by all nine models, and literature structures, mostly metal complexes, are the hardest source for every model. Language models can thus build many molecules in three dimensions, but not yet reliably reproduce the coordination chemistry of the research literature.

physics.chem-ph↗

Thinking Needs Forgetting: A Quantum Language Model Cannot Afford To

Everett's many-worlds interpretation describes observers with definite measurement records within a globally coherent quantum state. Wigner's friend asks what it would take for an outside observer to reveal interference between such branches. We make the question concrete by taking the friend to be a language model, which reasons about her measurement, and by representing her inference as a reversible quantum computation. For the 7- and 27-billion-parameter Qwen models, the implementations we study leave different records on trillions of auxiliary qubits in the two outcome branches. Recovering interference requires coherent control of these qubits. If each unprotected qubit relaxes independently, the interference visibility falls exponentially with the number of qubits whose records differ. Holding the 27B model's record unchanged for one hour while keeping 90% of the ideal visibility would require a qubit relaxation time of about 26 billion years, about twice the age of the Universe. Such a language model is an example of an agent that reasons about its measurement and meets a collapse-like measurement event in a coherent world, and the counts make that event quantitative, setting how fast the recoverable interference decays and how long the records must be held coherent.

quant-ph↗

Learning Quantum Circuit Structure for Born Machines with a Generative Transformer

A quantum circuit Born machine (QCBM) is a quantum circuit whose measurement outcomes follow a target probability distribution, so that each measurement yields one sample. Standard QCBMs fix the circuit structure by hand and tune only the rotation angles by gradient descent. The structure is therefore never optimised, and training is exposed to barren plateaus. Here we adapt the generative quantum eigensolver (GQE), in which a transformer writes a circuit as a sequence of (Pauli operator, rotation angle) tokens, from energy minimisation to distribution matching. The resulting model, G-QCBM, keeps this transformer but trains it differently. It stores the best circuits found so far in a replay buffer and learns to imitate them, weighting each circuit by how closely it matches the target distribution. We test G-QCBM on four continuous target distributions (Gaussian, bimodal, exponential, and log-normal) at 20 qubits, where every target has about one million ($2^{20}$) entries to match. Trained on the Kullback-Leibler (KL) divergence, it reaches a KL 14-300 times lower than the conventional variational QCBM trained on either KL or the maximum mean discrepancy (MMD), while using 2.2-3.1 times fewer CX gates. The advantage does not carry over to structured discrete targets (GHZ, Bars-and-Stripes, Dicke states), where the variational QCBM outperforms G-QCBM even when G-QCBM is given the target's symmetry as an inductive bias. These results suggest that GQE-style circuit generators are better suited to targets whose probability is spread smoothly over many basis states than to targets concentrated on a few symmetry-constrained states.

quant-ph↗

El Agente Estructural: An Artificially Intelligent Molecular Editor

We present El Agente Estructural, a multimodal, natural-language-driven geometry-generation and manipulation agent for autonomous chemistry and molecular modelling. Unlike molecular generation or editing via generative models, Estructural mimics how human experts directly manipulate molecular systems in three dimensions by integrating a comprehensive set of domain-informed tools and vision-language models. This design enables precise control over atomic or functional group replacements, atomic connectivity, and stereochemistry without the need to rebuild extensive core molecular frameworks. Through a series of representative case studies, we demonstrate that Estructural enables chemically meaningful geometry manipulation across a wide range of real-world scenarios. These include site-selective functionalization, ligand binding, ligand exchange, stereochemically controlled structure construction, isomer interconversion, fragment-level structural analysis, image-guided generation of structures from schematic reaction mechanisms, and mechanism-driven geometry generation and modification. These examples illustrate how multimodal reasoning, when combined with specialized geometry-aware tools, supports interactive and context-aware molecular modelling beyond structure generation. Looking forward, the integration of Estructural into El Agente Quntur, an autonomous multi-agent quantum chemistry platform, could enhance its capabilities by adding sophisticated tools for the generation and editing of three-dimensional structures.

physics.chem-ph↗

El Agente en acción: Closed-loop prediction of longer molecular qubit lifetimes

Energy transfer from an electron spin to vibrations of the surrounding crystal (phonons) limits how long a molecular qubit can retain quantum information. Over five weeks, a team of supervised agents tested ways to slow this loss at room temperature. A discovery agent proposed chemical changes and predicted how each would affect spin relaxation. Specialist agents calculated crystal and electronic structures and modeled spin relaxation times. The discovery agent used their results to choose the next test. The team tested a benchmark vanadyl qubit with a measured spin-lattice relaxation time of 3.37 microseconds at 293 K in a magnetically diluted crystal. A predicted gain from adding fluorine to a neighbouring ion prompted the team to try chlorine and bromine at the same site. The spin-bearing molecule folded more in the bromine salt than in the chlorine salt, and its spin relaxed faster when the model allowed vibrations farther apart in frequency to contribute. The discovery agent chose the iodine analogue to test whether this trend extended to a heavier halogen and predicted that, under the same model, iodine would relax faster than the parent. The calculation gave that faster relaxation and, when the model favoured vibrations close in frequency, a longer lifetime for iodine. At phonon-pair broadenings of 3, 5 and 7 inverse centimetres, substituting iodine or fluorine on the counterion extended the benchmark qubit's calculated room-temperature spin lifetime by 22-53% with iodine and 21-34% with fluorine. Molecular qubits are a first application of this infrastructure. By changing the specialist calculations, the same discovery agent could explore how substitutions tune the colour of light from molecular quantum emitters, which solvents promote ion transport in battery electrolytes, or how pore chemistry controls water uptake in porous frameworks.

quant-ph↗

Reducing T gates in product formulas with agent loops

Quantum chemistry calculations on a fault-tolerant quantum computer usually require many $\text{T}$ gates. This cost depends on the simulation method and how precisely its rotations are implemented. In this paper, we used Nemotron 3.5 Lightning, a large language model (LLM), in a coding-agent loop to optimize the structure and rotation-synthesis precision of product formulas (PFs) for quantum phase estimation (QPE). Each of five independent searches optimized a shared protocol across 115 HamLib molecular Hamiltonians spanning 4--16 qubits over 100 code mutations. The searches started from a calibrated, nested second-order PF with uniform synthesis precision. We minimized $T_{95}$, the estimated total $\text{T}$-gate cost including QPE queries and repeated attempts for $95\%$ success probability, while requiring chemical accuracy for every training Hamiltonian. We name the best protocol found error-limited optimized Trotter evolution (ELOTE). It achieves chemical accuracy for its training data and achieved median and geometric-mean $T_{95}$ reductions of $85.35\%$ and $84.82\%$, respectively. ELOTE combines contributions to the same Pauli string, uses a first-order PF, and varies synthesis precision with coefficient magnitude, Pauli support, and diagonal character. We also tested ELOTE on 76 larger Hamiltonians with 18--22 qubits, which met chemical accuracy in every case. For ten reaction energies, we further optimized a shared $δ$-ELOTE protocol. It reduced geometric-mean $T_{95}$ by $58.90\%$ relative to ELOTE while preserving chemical accuracy for every signed reaction difference. These classically verified results show cost savings from shared protocols across molecules and reactions, and motivate similar searches in which energy measurements from quantum computers guide explorations in a coding-agent loop.

quant-ph↗

SPARC: Evidence-guided adaptive model composition for materials discovery

Closed-loop experimentation requires more than selecting the next experiment. It must also determine which existing measurements and model-derived relationships are sufficiently supported to influence that decision. Here we introduce SPARC (Sparse Predictive Aggregation of Regression Components), a framework that continually revises this support as experimental evidence accumulates. Competing model families are evaluated through out-of-fold predictions, so that each model is tested on observations not used in its corresponding fit. Sparse posterior composition assigns model influence according to predictive contributions supported by the out-of-fold evidence, retaining complementary contributions from several model families. Candidate-dependent predictive dispersion and residual variability define trust, which modulates exploration alongside the predicted response. Independent diagnostics also prioritize existing measurements for prospective verification, with model-derived trust reported alongside them. Across eight published materials datasets, SPARC achieved higher $R^2$ than the corresponding literature-reported values in six, with relative gains of up to 77% without the density-functional-theory- or experiment-derived descriptors used by several published pipelines. In an automated alkaline oxygen-evolution-reaction campaign, 8 of 11 SPARC-selected experiments reached overpotentials below 300 mV, with a best value of 242 mV, compared with 18 of 125 initial experiments. Measurements prioritized for verification before repetition subsequently deviated by 76 mV on average, compared with 27 mV for matched controls. SPARC therefore turns experimental evidence into a basis for revising model influence, directing exploration and identifying measurements that warrant verification.

cond-mat.mtrl-sci↗

Arbitrary Boundary Conditions and Constraints in Quantum Algorithms for Differential Equations via Penalty Projections

Complicated boundary conditions are essential to accurately describe phenomena arising in nature and engineering. Recently, the investigation of a potential speedup through quantum algorithms in simulating the governing ordinary and partial differential equations of such phenomena has gained increasing attention. We propose an approach to enforce arbitrary boundary conditions and constraints through adding a penalty projection to the governing equations, relying on known quantum differential equation solvers, leading to an overall efficient quantum algorithm for solving differential equations under boundary conditions and constraints. Assuming a fast-forwardable representation of the projection to ensure an efficient interaction picture simulation, the cost to enforce the constraints is at most $O(\log λ)$ in the strength of the penalty $λ$ in the gate complexity within the scenarios we considered, for precision $\varepsilon$ and a dynamical system generated by $A_0(t)$ of size $n^d \times n^d$ with forcing $b(t)$. E.g., for the heat equation, this leads roughly to a gate complexity overhead of $\widetilde O(d \log n + \log t)$. We show constraint error bounds for the penalty approach,both constraint and solution error, and provide validating numerical experiments, and estimate the circuit complexity using the Linear Combination of Hamiltonian Simulation.

quant-ph↗

End-to-End Quantum Algorithm for Differential Equations: Application to Simulating a Biomolecular System

Quantum algorithms for differential equations have the potential for substantial algorithmic speedups over classical methods. However, they rely on certain assumptions and abstract oracle specifications that leave their practical feasibility and computational advantages for realistic applications unclear. Here we formalize the concept of an end-to-end quantum algorithm for differential equations as one that accepts classical inputs and returns classical outputs, and provide implementations for algorithmic primitives in constructing such algorithms. We present a tailored end-to-end quantum algorithm for the linearized Poisson-Boltzmann (LPB) equation, a partial differential equation (PDE) with variable coefficients widely used in simulating a biomolecular system. We explicitly implement all aspects of the algorithm, from preparing an initial state to generating a quantum solution and estimating properties of the system. In particular, we develop a new discrete representation for variable-coefficient PDEs on a grid that enables efficient implementation of the operator oracle, and build on a recent technique based on optimal wavelet preconditioning to generate a quantum solution with a cost independent of the condition number of the discretized operator. We show the algorithm can be implemented by quantum circuits of size polylogarithmic in both the number of grid points $N_g$ and the inverse of the desired accuracy $\varepsilon$, with an overall gate cost polylogarithmic in $N_g$ and quasilinear in $1/\varepsilon$. We also show the classical preprocessing to construct the circuits has polylogarithmic cost in $N_g$ and $1/\varepsilon$. Our work provides a concrete end-to-end quantum algorithm for a PDE of practical value, demonstrates an exponential improvement in scaling with $N_g$ over classical methods, and provides a foundation for assessing its potential quantum advantage in practice.

quant-ph↗

Closing the Analyze-to-Design Gap: An Authorization-Bounded Agent for Self-Driving Laboratories

Artificial intelligence (AI) agents are increasingly integrated into self-driving laboratories (SDLs) to plan experiments and interpret results. However, analytical reasoning alone does not make a laboratory autonomous: autonomy in an SDL is achievable only when the agent can be trusted to act on physical hardware unsupervised and knows when to defer to a human. Here, we present an architecture that integrates an agent at the Analyze-Design interface of the Design-Make-Test-Analyze (DMTA) cycle, enabling agent-driven measurement selection and data interpretation while ensuring that state-changing operations are authorized, validated, and auditable. We demonstrate this architecture on a liquid chromatography-mass spectrometry (LC-MS) instrument in an oxidant-screening campaign for synthesizing an organic dye. Within human-defined campaign limits, the agent submitted measurement jobs, interpreted mass spectrometry (MS) and diode-array detection (DAD) data, flagged failed experiments, and produced an oxidant ranking. This ranking matched that obtained from scripted peak integration, and organic chemists confirmed the agent's spectral interpretations and failure assignments. In a simulated environment that replays the archived LC-MS data, where the agent chose which wells to inject under varying injection limits, it measured the highest-yielding condition at about its seventh injection, against 14.5 on average for a random order, and identified it in every campaign with a limit of eight or more injections. An agent can therefore close the analysis-to-design gap while its actions stay bounded and verifiable, which is a step toward greater autonomy for SDLs.

cs.AI↗

Where the Tokens Go: Heat, Entropy and Error in Agentic Coding

Coding agents are billed by the token, yet software engineering says nothing about what a token actually buys. Here we introduce a theory of software thermodynamics. The theory draws analogues from classical and stochastic thermodynamics, extends them, and applies them to modern agentic coding. We count the tokens an agent generates as its cost and divide that cost into work and heat. The test suite acts as a software Maxwell's daemon that judges every coding change. We test the theory with an analogue of the experiments in which a single molecule is pulled open and let fold again: an agent makes a change to a repository (coding) and then undoes it (uncoding), many times over, and we count the tokens of every model call. The cycle returns the requested edits to where they began, with each direction started from a stored reference tree, and the spread of its cost over repeated cycles defines a software temperature, which rose with the sampling temperature of the model. About 80 per cent of the tokens of a successful run are generated in model calls that leave the requested change where it was, and we call these tokens heat. The free energy of a change, which we estimate by analogy with the equality of Jarzynski, is 14 to 22 per cent of the mean cost of a successful coding run. Coding costs 1.1 to 1.5 times as much as uncoding. The daemon is imperfect: the verdict of a test suite varies with its environment, and a suite that accepts a broken change has a cost in tokens. The practical implication of the proposed theory could be new tools for analysing and optimising coding agents through the lens of thermodynamics.

cs.AI↗

Nahual: A Sequence Model for Language and Atoms

Generative models play a rapidly growing role in the design and simulation of molecules. The most widely used applications of generative models are in large language models (LLMs), owing to the natural flexibility of language for specifying and answering queries. However, generalist LLMs do not effectively handle large sets of 3D coordinates, whereas specialist generative models of 3D molecules cannot reach the controllability afforded by language. To bridge these capabilities, we propose Nahual, a decoder-only autoregressive diffusion model for any sequence of text and 3D molecules. To enable expressive autoregression on continuous coordinates, we propose next-token diffusion, whereby a causal transformer denoises each token while attending to the clean tokens before it, without increasing context size. We train Nahual on a curated set of twelve 3D chemistry tasks ranging from microsolvation to molecular conformer search to adsorption on metal surfaces, with associated evaluation metrics and baselines. The result is a single set of end-to-end-trained weights that simultaneously performs all tasks and surpasses state-of-the-art models specialized for crystal structure prediction and property-conditional molecule generation. Our results demonstrate the viability of scaling generalist decoder-only models for native multimodal understanding and generation across language and chemistry. Code is available at https://github.com/the-matter-lab/nahual.

cs.LG↗

Self-Building Labs

Self-driving laboratories (SDLs) accelerate scientific discovery by automating experimental execution and optimization. AI agents can increasingly propose new experiments, but existing SDLs can only run the procedures they were built for. Adapting them to a new experiment still requires extensive manual engineering, which makes laboratory flexibility the bottleneck for scaling discovery. We introduce the self-building laboratory (SBL), which designs, configures, and operates its own laboratory setup given a high-level scientific goal. SBL starts from whatever already exists, from an empty room to a working SDL, and builds the missing capabilities: the lab layout, its digital twin, robot skills, and experimental workflows. We demonstrate the system working across different robots and setups, scaling from a single workstation to laboratories with several robots working together. We validate SBL's end-to-end capabilities through a real-world quantum-dot synthesis experiment. By shifting human researchers from manually configuring and programming device automation to specifying scientific objectives, SBL makes scientific automation more accessible, flexible, and scalable. Project website: https://self-building-labs.github.io/

cs.AI↗

Verifiable pXRD: Hill-climbing pXRD structure determination with LLM agents

Autonomous crystal-structure determination from powder X-ray diffraction (pXRD) remains a key bottleneck for self-driving materials laboratories. We formulate the task of pXRD structure determination as a verifiable agentic search problem: candidate structures can be assessed during inference through forward-simulated profile agreement and during evaluation through structural matching to a known reference. To benchmark progress, we introduce pXRD-Bench, a suite of 200 simulated single-phase problems spanning in-distribution structure determination, challenging and polymorphic structures, and controlled compositional and topological distribution shifts. Agent adaptation raises selected structural recovery from 27% to 69%, with further gains from repeated sampling and verifier-guided inference-time scaling. We extend this approach to experimental multiphase pXRD through a reflexive evolution framework that learns from self-generated synthetic problems. A replaceable laboratory specification defines the sample family and measurement conditions. An evolver agent uses the known generating structures and measurement parameters to diagnose solver failures and develop persistent guidance and executable tools, which are then provided to agents on measured patterns. This supplies verifiable training experience without requiring a collection of solved experimental measurements. On 15 measured patterns from solid-state synthesis, the evolved package improves average profile agreement and transfers an analogue-substitution procedure that recovers a phase whose structure is absent from the supplied reference library. These results demonstrate how learning from verifiable synthetic experience can improve agentic characterization of experimental samples whose structures are not known in advance.

cs.AI↗

Informing Acquisition Functions via Foundation Models for Molecular Discovery

Bayesian Optimization (BO) is a key methodology for accelerating molecular discovery by estimating the mapping from molecules to their properties while seeking the optimal candidate. Typically, BO iteratively updates a probabilistic surrogate model of this mapping and optimizes acquisition functions derived from the model to guide molecule selection. However, its performance is limited in low-data regimes with insufficient prior knowledge and vast candidate spaces. Large language models (LLMs) and chemistry foundation models offer rich priors to enhance BO, but high-dimensional features, costly in-context learning, and the computational burden of deep Bayesian surrogates hinder their full utilization. To address these challenges, we propose a likelihood-free BO method that bypasses explicit surrogate modeling and directly leverages priors from general LLMs and chemistry-specific foundation models to inform acquisition functions. Our method also learns a tree-structured partition of the molecular search space with local acquisition functions, enabling efficient candidate selection via Monte Carlo Tree Search. By further incorporating coarse-grained LLM-based clustering, it substantially improves scalability to large candidate sets by restricting acquisition function evaluations to clusters with statistically higher property values. We show through extensive experiments and ablations that the proposed method substantially improves scalability, robustness, and sample efficiency in LLM-guided BO for molecular discovery.

cs.LG↗

Fast Organic Crystal Structure Prediction with Unit Cell Flow Matching

Organic crystal structure prediction (CSP) is a requirement for computational modelling of organic solids, but traditionally costs several CPU-years per molecule. Generative models such as OXtal dramatically reduce this cost by sampling stable organic crystal structures directly. However, OXtal forgoes explicit lattice parametrization in favour of modelling large crops of the bulk material with expensive triangle layers, which can incur a computational cost of minutes per molecule. In this paper, we reduce this to seconds with Clari, a large-scale flow matching model that generates redundancy-free unit cells and replaces triangle layers with pair-bias attention. Clari requires only atom types and bonds as input and does not need an RDKit-sanitizable input molecule, which expands its applicability to challenging chemistries such as fullerenes, metal complexes, and atom clusters. We further ablate key design choices such as auxiliary losses, timestep distributions, noise priors, and self-conditioning. On OXtal's test sets, we surpass OXtal's solve rate while obtaining a speedup of 15-30$\times$. Because Clari also models explicit hydrogens, it supports inference-time scaling via direct energy ranking, without any decoration or relaxation step. When generating 150 crystals and selecting the top-30 by energy, we further improve solve rate while maintaining a speedup of 5-8$\times$. We also introduce the CSD Teaching Subset as a new test split of diverse and complex molecules for future benchmarking. Our contributions enable CSP within seconds, making large-scale virtual screening of organic solids practical. Code is available at https://github.com/the-matter-lab/clari.

cs.LG↗

Colour me shocked: Exact Molecular Hessians from local MLIPs in O(N) time using sparse differentiation!

The Hessian of the energy with respect to the nuclear positions is indispensable in atomistic modelling. However, constructing this matrix requires $O(N)$ Hessian vector products, traditionally limiting high-accuracy Hessians to small systems. Machine learning interatomic potentials (MLIPs) have accelerated atomistic modelling by providing highly accurate energies and forces at $O(N)$ cost, yet the resulting $O(N^2)$ cost of Hessians remains a practical bottleneck for large systems. Based on the insight that we can derive the sparsity pattern for an MLIP's Hessians in closed form, we show in this paper how to use techniques from sparse automatic differentiation to reduce the cost of a local MLIP's Hessians to a system-size-independent number of Hessian-vector products, yielding overall $O(N)$ total cost without any approximations. We benchmark our approach on a variety of systems ranging from alkane chains to water clusters to $A\beta40$ conformers. Depending on the MLIP configuration, we achieve the linear scaling regime already on relatively small systems, resulting in large runtime reductions between 2$\times$-15$\times$ for these systems. This opens up the possibility of scaling high-accuracy MLIP Hessians to very large systems, such as proteins that were previously inaccessible.

cs.CE↗

El Agente Fármaco: A Scalable AI Scientist for Drug Discovery

Computational drug discovery offers a growing range of tools for proposing and evaluating molecules, but combining them and deciding what to do next still requires substantial expert effort. Here, we introduce El Agente Fármaco, an AI scientist that uses modern large language model (LLM) technology to turn discovery goals expressed in everyday language into complex, scalable computational screening workflows. The agentic harness selects scientific tools, reviews their results, and adjusts subsequent steps to the target and the user's objectives. Our approach centers on a shared scientific memory: Fármaco Atlas, which stores molecules, structures, and results together with their provenance -- a record of how they were obtained. The agent uses targeted database queries to retrieve the evidence needed for each decision. A single request can launch calculations for an entire collection of molecules, without requiring a separate LLM decision for every compound. This design limits the information the model must process as screening collections grow, while keeping the underlying results available for inspection and further analysis. The integrated tools support molecule generation, prediction of binding and molecular properties, and searches for compounds available for purchase. In a retrospective comparison with an expert-led campaign, the agent proposed chemically distinct candidates with competitive docking scores and higher calculated drug-likeness under explicitly imposed selection criteria. In a 22-task benchmark against plain tool calls and Codex, the agent achieved the highest observed mean model-judged score, with lower median cumulative token use and peak context. Fármaco provides a foundation for flexible, scalable drug discovery workflows that connect scientific reasoning with an enduring, traceable record of computational work.

cs.AI↗