Abstract
We introduce Quantum Molecular Autoencoder (MolQAE), the first quantum autoencoder to leverage the complete molecular structures. MolQAE uniquely maps SMILES strings directly to quantum states using parameterized rotation gates, preserving vital structural information. Its quantum encoder-decoder framework enables latent space compression and reconstruction. A dual-objective strategy optimizes fidelity and minimizes trash state deviation. Our evaluations demonstrate effective capture of molecular characteristics and a remarkable preservation of fidelity, approaching robust molecular reconstruction even with substantial dimensionality reduction. Our model establishes a quantum pathway in cheminformatics by being the first to process complete molecular structural information with a dedicated quantum architecture considering the Noisy Intermediate-Scale Quantum (NISQ)-era development and promising significant advances in drug and materials discovery.
Introduction
Molecular representation learning is a foundational task in computational chemistry, essential for drug discovery and materials science. While classical machine learning methods, such as Graph Neural Networks, have seen significant success, they often struggle to capture the exponentially large conformational and quantum-mechanical electronic states inherent to molecules.
Quantum computing offers a natural alignment with molecular physics. However, translating classical molecular descriptions, such as SMILES strings, into quantum states without losing structural information (like atomic connectivity and bond types) remains a significant challenge. Furthermore, training quantum circuits on Noisy Intermediate-Scale Quantum (NISQ) hardware is hindered by measurement noise and the "barren plateau" problem. MolQAE addresses these challenges by providing a framework to bridge the classical-to-quantum gap while remaining trainable on near-term hardware.
The MolQAE Architecture
The Quantum Molecular Autoencoder (MolQAE) utilizes a hybrid quantum-classical approach designed for efficiency and structural preservation.
The framework consists of three primary components:
- Direct Quantum Encoding: Instead of standard amplitude encoding, MolQAE tokenizes SMILES strings into fixed-length vectors (22 tokens) and maps them directly to an 8-qubit quantum state. This is achieved using parameterized single-qubit rotations ($U_3$ gates) and a ring topology of CNOT gates to capture sequential and structural entanglement.
- Quantum Encoder-Decoder: The encoder uses multiple layers of rotation and entangling gates to compress the input into a smaller "latent" space (ranging from 1 to 7 qubits). Ancillary qubits are forced into a $|0\rangle$ "trash state." The decoder then reconstructs the original state from this latent representation.
- Dual-Objective Training: A classical optimization loop minimizes a combined loss function that maximizes reconstruction fidelity while penalizing deviation of ancillary qubits from the target trash state.
Experimental Results
MolQAE was evaluated using the QM9 dataset, a standard benchmark containing approximately 134,000 organic molecules. The results highlight the model's efficiency and robustness.
Fidelity and Parameter Efficiency
A key finding is the model's ability to achieve high fidelity with remarkably low parameter counts. A baseline 5-layer circuit achieved ~0.77 reconstruction fidelity. By increasing the depth to 15 layers, fidelity improved to ~0.91 using only approximately 1,580 trainable parameters. The deepest configuration tested (30 layers) reached a fidelity of 96.8% with just 3,143 parameters, representing a total improvement of 24.7% over the baseline.
Robustness to Compression
The architecture demonstrates extreme resilience to dimensionality reduction. In a 15-layer model, the fidelity variance across different latent space sizes (compressing from 8 qubits down to anywhere between 1 and 7) was only 0.004. This stability suggests that MolQAE effectively captures the essential features of the molecular state in a highly compressed form, a critical advantage for resource-constrained NISQ hardware.
Conclusion and Future Work
MolQAE establishes a highly efficient, quantum-native foundation for cheminformatics. The authors identified a 20-25 layer circuit depth as the optimal balance between performance and resource limits, where the model leverages quantum superposition and entanglement to achieve significant performance gains with sublinear parameter growth relative to classical counterparts. While the model shows a "theoretical performance ceiling" around 30 layers, it provides a clear blueprint for NISQ-era quantum circuit design. Future work will focus on scaling the framework to larger molecular systems and more complex chemical reactions that currently remain intractable for classical supercomputers.
Summary updated