Variational quantum algorithm for anion exchange across an electrolyzer membrane
Variational quantum algorithm for anion exchange across an electrolyzer membrane We present a variational quantum algorithm that solves the one-dimensional diffusion problem with a space-dependent diffusion constant $D(x)$. This problem is relevant for the exchange of hydroxide ions acro
Variational quantum algorithm for anion exchange across an electrolyzer membrane
We present a variational quantum algorithm that solves the one-dimensional diffusion problem with a space-dependent diffusion constant $D(x)$. This problem is relevant for the exchange of hydroxide ions across a two-layer membrane in an alkaline electrolyzer, where the concentration of OH$^-$ ion determines the chemical stability for longer time periods. We use $16$ to $64$ grid points across the membrane, resulting from $n=4$ to 6 data qubits for the ideal statevector and shot-based quantum simulations implemented using Qiskit. For these qubit numbers, the depth of the parametric quantum circuit has been chosen to ensure sufficient expressibility. The state preparation requires particular attention since the diffusivity $D$ is piecewise constant in the different layers with discontinuities at the interface. Furthermore, we compare different classical optimization schemes with respect to their convergence in the VQA method. We demonstrate the applicability of the quantum algorithm to a problem with non-trivial boundary conditions and jump conditions of the diffusion constant and outline possible extensions of the proof-of-concept application case of quantum computing. Our simulations show that pronounced hydroxide ion concentration gradients, and thus chemical instabilities, can occur only when the ratio of diffusivity in both layers of the membrane exceeds approximately 50.
Dataset description and structure
The provided dataset contains Python scripts and data generated thereof that can be used to reproduce figures 2-4, 7, 9-16 of [1]. It is organized as a set of .zip files, each corresponding to its purpose and figures as indicated in the table below. Each .zip file contains .ipynb interactive Python notebooks with the corresponding data.
| File | Purpose | Related figures |
| 1dPWCDE_analytical_solution.zip | Solves the problem analytically. | Figure 2 |
| 1dPWCDE_relaxation_rate_analysis.zip | Computes the relaxation rate of the problem for various values of $D_2$. | Figure 3 |
| 1dPWCDE_gradients.zip | Computes the steady-state solution of the problem for various values of $r_D$, $c_A$ and $ x_1$. | Figure 4 |
| rpqc_expressibility_simulations.zip | Computes expressibility of the real-valued parameterized quantum circuit for various numbers of qubits $n$ and layers $d$. | Figure 7 |
| rpqc_expressibility_analysis.zip | Plots expressibility of the real-valued parameterized quantum circuit. | Figure 7 |
| 1dPWCDE_456_4_5_6_sv_bfgs.zip | Performs state-vector simulations of the VQA algorithm for $n = 4, 5, 6$ qubits (with $d = 4, 5, 6$ layers, respectively) using the BFGS📤 Share this pageFound this useful? Share it with your network. Files are hosted on the source repository. Click download to access the full dataset. Gubaev, Timur (2026). Variational quantum algorithm for anion exchange across an electrolyzer membrane. https://doi.org/10.5281/zenodo.20444655
|