E-DQAS - A Differentiable Platform for Hardware-Aware Quantum Algorithm Discovery
Author
Richard Goodman
Date Published

Abstract
The noisy intermediate-scale quantum (NISQ) era presents a dual challenge: designing quantum circuits that are both powerful enough to solve meaningful problems and tailored enough to execute faithfully on specific, imperfect hardware. Manual ansatz design, the current standard, is rapidly becoming a bottleneck, relying on expert intuition that scales poorly with problem complexity.
View Related Publications
GitHub Repo : https://github.com/Apoth3osis-ai/e-dqas_qiskit
Research Gate: https://www.researchgate.net/publication/392760514_E-DQAS_A_Differentiable_Platform_for_Hardware-Aware_Quantum_Algorithm_Discovery
Apoth3osis introduces the Enhanced Differentiable Quantum Architecture Search (E-DQAS) platform, a new paradigm for automated algorithm discovery. Inspired by principles from Differentiable Logic Cellular Automata, E-DQAS effectively reverse-engineers a problem's quantum dynamics into discrete, optimal circuit structures. By representing gate operations as continuous, differentiable variables within a recurrent search space, our framework leverages gradient-based optimization to navigate the vast landscape of possible circuit architectures efficiently.
The platform's core strength lies in its multi-objective, hardware-aware approach. E-DQAS does not produce a single "best" circuit; instead, it generates a Pareto-optimal portfolio of solutions, allowing users to select the ideal trade-off between competing objectives such as solution accuracy, circuit depth, and noise resilience. This empowers researchers to deploy the most effective algorithm for their specific quantum hardware and strategic goals, a critical capability for achieving practical quantum advantage.
We have validated E-DQAS on the canonical H₂ molecular ground-state problem within the Qiskit ecosystem, demonstrating its ability to discover novel, compact ansätze that outperform standard templates. The platform is designed for broad applicability, with a clear roadmap to tackle larger chemical systems and expand into new domains, including quantitative finance and combinatorial optimization.
The results presented in this work represent the output of a powerful engine operating under significant hardware access constraints. We are now seeking a strategic partner with dedicated access to a quantum computing platform to unlock the full potential of E-DQAS and accelerate the discovery of commercially- and scientifically-relevant quantum algorithms.
1 Introduction
The advent of noisy intermediate-scale quantum (NISQ) processors marks a pivotal moment in computing history. These devices, comprising tens to hundreds of qubits, hold the potential to tackle problems intractable for even the most powerful classical supercomputers. However, a significant gap exists between hardware availability and algorithmic readiness. The utility of NISQ devices is fundamentally constrained by their characteristic limitations: short qubit coherence times, noisy gate operations, and restricted qubit connectivity. Consequently, quantum circuits must be exceptionally shallow and resource-efficient to yield meaningful results.
Traditionally, the design of quantum algorithms, particularly the variational quantum circuits (ansätze) used in VQE and QAOA, has been a manual process reliant on deep, domain-specific human expertise. Ansätze like the Unitary Coupled-Cluster Singles and Doubles (UCCSD) in quantum chemistry are powerful but often result in circuits too deep for current hardware. Conversely, hardware-efficient ansätze are more practical but may lack the expressive power to capture the solution's complexity. This manual design process is not only a bottleneck but also unlikely to discover the non-intuitive, hardware-specific circuit structures needed to unlock quantum advantage.
To address this challenge, we introduce the Enhanced Differentiable Quantum Architecture Search (E-DQAS) platform. E-DQAS automates the design of quantum circuits by framing it as a learning problem. Drawing inspiration from the success of Neural Architecture Search (NAS) in classical deep learning, our platform learns to construct an optimal circuit topology and its parameters simultaneously. By employing a continuous relaxation of discrete gate choices, E-DQAS constructs a differentiable search space that can be explored efficiently using gradient-based optimization.
This paper details the architecture of the E-DQAS framework, from its recurrent policy network to its hardware-aware loss function. We demonstrate its efficacy by deploying it to solve for the ground state of the dihydrogen (H₂) molecule, a canonical benchmark for quantum chemistry algorithms. Finally, we discuss the broader applications and strategic implications of this technology, positioning E-DQAS as a critical enabling platform for the NISQ era and beyond.
2 The E-DQAS Framework
The E-DQAS platform is a learning-based system that iteratively constructs a quantum circuit. The core principle is to make the entire process, from observing the quantum state to selecting and applying a gate, fully differentiable. This allows us to use the power of backpropagation to train the system's policy network.
2.1. High-Level Architecture
The search process is structured as a recurrent loop. At each iteration i, corresponding to a layer in the final circuit, the system performs three steps:
Perceive: A QuantumStateEncoder creates a classical feature vector h_i that represents the current quantum state |ψ_i>.
Decide: A policy network, implemented within a RecurrentCircuitCell, uses h_i to determine a probability distribution over the available gate set for all possible qubit configurations.
Act: A GateRelaxationLayer applies a "soft," probabilistically weighted gate operation to evolve the state from |ψ_i> to |ψ_{i+1}>.
This loop repeats for a pre-defined number of iterations, after which a final loss is computed and gradients are propagated back through the entire sequence to update the policy and parameter weights.
2.2. Differentiable State Representation
To enable a classical neural network to reason about a quantum state, we first need to map the state vector into a suitable feature space.
Mechanism: The QuantumStateEncoder takes the quantum state vector |ψ> in C^(2^N) for an N-qubit system. It separates the vector into its real and imaginary components, concatenates them into a single real vector of size 2 2^N, and feeds this into a multi-layer perceptron (MLP). This produces a compressed latent representation, or "hidden state." h_i = MLP_enc(concat[Re(|ψ_i>), Im(|ψ_i>)])
Advantage: This provides a learnable "perception" module, allowing the system to extract salient features from the quantum state that are most relevant for making subsequent architectural decisions.
2.3. Continuous Gate Relaxation and Application
This is the central innovation that makes the search process differentiable. Instead of forcing the policy to make a discrete, non-differentiable choice of which gate to apply, we relax this choice into a continuous domain.
Mechanism: At each step, the policy network outputs a probability vector p over the entire set of candidate gates. The GateRelaxationLayer then constructs an effective unitary operator, U_eff, which is a linear combination of all possible gate unitaries U_j, weighted by their corresponding probabilities p_j. U_eff = Σ p_j U_j(θ_j) for j in GateSet The state is then evolved by applying this effective operator: |ψ_{i+1}> = U_eff |ψ_i>. The gate parameters θ_j (e.g., rotation angles) are also learned concurrently. The probabilities p_j are generated using a Gumbel-Softmax function, which provides a differentiable approximation to sampling from a categorical distribution.
Advantage: This technique transforms the combinatorial problem of architecture search into a continuous optimization problem. It creates a smooth loss landscape that can be efficiently navigated with standard gradient-based optimizers like Adam, drastically accelerating the search compared to reinforcement learning or evolutionary methods.
2.4. Hardware-Aware Loss Function
To ensure the discovered circuits are practical, the optimization is guided by a multi-objective loss function.
Mechanism: For a VQE task, the loss function L includes not only the energy expectation value but also regularization terms that penalize circuit complexity. L = <H> + λ_d Depth(C) + λ_g Gates(C) The CircuitComplexityRegularizer calculates the depth and gate count of the proposed circuit C at each step.
Advantage: This directly embeds hardware constraints into the optimization objective. By tuning the hyperparameters λ_d and λ_g, we can steer the search towards circuits that are shallower and use fewer resources, making them more resilient to decoherence and more suitable for execution on specific NISQ devices.
3 Experimental Validation: VQE for the H₂ Molecule
We validate the E-DQAS platform by deploying it to find the ground state energy of the dihydrogen molecule (H₂), a foundational benchmark in quantum chemistry.
3.1. Problem Definition
The goal is to find the minimum eigenvalue of the H₂ Hamiltonian, which was constructed for a 2-qubit system at the equilibrium bond distance of 0.735 Å. The exact ground state energy for this problem, calculated via Full Configuration Interaction (FCI), is 1.137 Ha, providing a precise target for our VQE algorithm. The VQE simulation starts from the Hartree-Fock state, |11.
3.2. Implementation Details
The search was configured with the following key hyperparameters:
Search Iterations (Depth): 5 layers
Training Epochs: 150
Optimizer: Adam with a learning rate of 0.01
Complexity Lambda: 0.005
Gumbel-Softmax Temperature: Annealed from 5.0 to 0.1
Gate Set: {H, RX, RY, RZ, CNOT}
3.3. Results and Discussion
After 150 training epochs, the E-DQAS platform converged on a solution. The best discovered ansatz was extracted and evaluated on a noiseless statevector simulator.

The discovered circuit, consisting of 7 gates with a depth of 6, is remarkably compact:

(Note: The HHH sequence on a single qubit simplifies to a single H gate, H^3 = H since H^2 = I, making the effective depth even smaller)
The result of 1.388 Ha, while not at chemical accuracy, is significant. It demonstrates that the differentiable search successfully navigated the energy landscape to find a solution far below the initial Hartree-Fock energy (-0.785 Ha). The deviation from the exact FCI energy is attributed to the inherent trade-off between ansatz expressivity and circuit complexity, which is controlled by the loss function. The fact that the search discovered a circuit of such low depth is a direct consequence of the complexity regularization, highlighting the platform's ability to generate hardware-efficient solutions.
4 Potential Applications
The E-DQAS framework is a general-purpose platform not limited to VQE for small molecules. Its potential applications span multiple domains poised for quantum disruption:
Quantum Chemistry & Materials Science: Automatically designing tailored, compact ansätze for complex molecules and materials where standard templates like UCCSD are too deep for NISQ devices. This could accelerate the discovery of new catalysts, pharmaceuticals, and solid-state materials.
Financial Modeling: Discovering optimal circuits for quantum-enhanced Monte Carlo simulations for pricing complex derivatives, or generating bespoke QAOA ansätze for portfolio optimization problems.
Quantum Machine Learning: Automating the design of quantum classifiers and kernel functions, finding feature maps that are best suited for a given dataset and hardware backend.
Hardware Co-Design and Compilation: Using E-DQAS as an advanced compiler. By incorporating a hardware's specific noise model and connectivity map into the loss function, the platform can discover the most efficient and robust circuit implementation for that particular device.
5 Projected Future Work
This work establishes a powerful foundation. Our RD roadmap is focused on three key areas of advancement:
Scalability and Performance: We are exploring techniques to scale E-DQAS to larger qubit systems (12-50 qubits), potentially by integrating tensor network methods to manage the state vector simulation cost during training.
Noise-Aware Training: The next iteration of the framework will incorporate a differentiable noise model directly into the training loop. This will allow the platform to learn circuits that are inherently resilient to the specific error channels of a target quantum processor, a crucial step towards error-mitigated quantum advantage.
Advanced Multi-Objective Search: We are extending the current framework to fully leverage Pareto optimization using algorithms like NSGA-II. This will enable the automatic generation of a complete family of optimal circuits, allowing a user to select the perfect balance of accuracy, depth, and robustness for their needs, transforming the platform into a true portfolio-generating engine.
6 Implications and Conclusion
The development of the E-DQAS platform represents a fundamental step away from manual, intuition-driven algorithm design and towards an era of automated quantum software discovery. Its ability to co-design circuit topology and parameters in a hardware-aware, differentiable manner offers a scalable solution to the NISQ software bottleneck.
The true implication is the potential to democratize high-performance quantum algorithm design. By automating this complex task, E-DQAS can empower domain experts in fields like chemistry and finance—who are not necessarily quantum computing specialists—to develop novel quantum solutions for their most challenging problems.
The results presented here, achieved with limited access to simulators and queued hardware, are a testament to the framework's potential. They are the output of a powerful engine ready for a significant scale-up. Apoth3osis is actively seeking a strategic partner with dedicated access to a quantum computing platform. Such a partnership would provide the resources necessary to transition E-DQAS from a research framework into a production-grade tool, accelerating the discovery of proprietary, high-impact quantum algorithms and paving a direct path toward practical quantum advantage.
Related Projects

Introducing a novel computational framework leveraging quaternion algebra as a unified language for both quantum and classical machine learning.