Introduction

Quantum mechanical (QM) molecular orbital calculation methods can provide accurate absolute energy calculations in structure-based molecular modeling methods, which lead to an accurate computational prediction of the binding affinity and selectivity of many drugs to their targets. Although QM methods can provide accurate results quantitatively for intra- and intermolecular interactions in absolute energy calculations, their high computational cost hinders their application to large systems like biomolecules1. Owing to practical limitations on computational power, many computational methods, including molecular mechanics (MM) force field, hybrid QM/MM, semi-empirical QM, and fragment-based QM methods such as fragment molecular orbital (FMO), have been developed and applied to large biological systems2,3,4. One solution to resolve the computational cost of QM methods is quantum computing, and its application to QM methods would help solve numerous biological puzzles with quantum effects.

The development of quantum computers has been considered to accelerate dramatically by solving challenging problems that require high computational costs in many fields, including physics, chemistry, materials science, and biology5,6. Since Feynman proposed the simulation of quantum systems using quantum computers, there have been many developments in quantum computing applications6,7. Most of the initially proposed quantum algorithms, such as Shor’s, require millions of physical qubits for quantum error correction8. However, the currently realized quantum computers are called noisy intermediate-scale quantum (NISQ) devices, whose qubits are in the order of 100, and whose quantum operations are substantially imperfect9. Thus, the algorithms for NISQ devices require low circuit depths that allow quantum operation within the limited coherence time of the devices.

Quantum chemistry is a promising candidate for applications in quantum computers. It is believed that they will facilitate a more accurate understanding of biological systems, as well as the capability to more accurately simulate a greater range of complex and realistic systems. Quantum computers can provide the full configuration interaction (FCI) for the numerically best wave functions of systems within basis sets using quantum phase estimation algorithms (QPEA)10. The QPEA is a quantum algorithm for estimating the eigenvalues (phase) of an eigenvector of a unitary operator. After Feynman’s idea for quantum simulations, a recursive QPEA has been proposed for an initial ground state problem of interacting fermions undergoing an adiabatic evolution11. Although the QPEAs have been frequently used as a central building block for many quantum algorithms, such as Shor’s8, the QPEAs require many gates and long circuit depths, which surpass the capabilities of existing NISQ devices.

Because of the limitations of the current NISQ system, quantum chemistry algorithms should adopt alternative methods to reduce the quantum errors from NISQ devices. First, most current NISQ algorithms rely on harnessing the power of quantum computers in a hybrid quantum–classical arrangement (HQA). It assigns the classically difficult part of some computations to a quantum computer and performs the classically tractable part on a sufficiently powerful classical device. The variational quantum eigensolver (VQE) is a type of HQA and variational quantum algorithm that variationally updates the parameters of a parameterized quantum circuit11,12,13. Second, a full quantum eigensolver (FQE) has been proposed for calculating the ground-state wave function and energy through quantum gradient descent14. Compared to VQE, the FQE allows that a quantum computer performs all the calculations with faster convergence. Because the optimization by gradient descent is performed on a quantum computer, the FQE does not require measurements of the expectation values of Hamiltonian during each iteration procedure, which leads to the reduction of the computational resources14. Third, quantum algorithms are restricted to a subset of degrees of freedom containing essential quantum behavior, called the active space. This approximation allows one to treat more difficult problems by using fewer qubits and lower gate depths. Hartree–Fock (HF)-and/or density functional theory (DFT)-based quantum embedding schemes incorporate a mean-field potential generated by the inactive electrons of the environment15,16. By adopting these approximations, the applications to quantum chemistry have been expanded from small molecules, such as hydrogen and lithium hydride, to larger molecules, such as oxiranes, and even protein–ligand systems15,17.

A transition state is the balance point of catalysis in which covalent bonds are partially formed and broken. This is defined as the state with the highest potential energy along the reaction coordinates18. The idea of a transition state was developed in 1935 by Eyring, Evans, and Polanyi, who formulated the transition state as a stable state with thermodynamic, kinetic, and statistical-mechanical treatments19. The transition states are first-order saddle points on the potential energy surface (PES) in a system of interest, and the geometries can be determined by searching the saddle points and minimum energy pathways on the PES20,21. It is feasible to use QM methods to search for geometries on PES.

A common example in organic chemistry is the bimolecular nucleophilic substitution reaction (SN2). In the SN2 reaction mechanism, there is a single transition state in which bond-breaking and bond-making events occur simultaneously. In an example of the SN2 reaction between chloromethane (\({\mathrm{CH}}_{3}\mathrm{Cl}\)) and chloride ion (\({\mathrm{Cl}}^{-}\)), the attack of the nucleophile (\({\mathrm{Cl}}^{-}\)) on the electrophile (\({\mathrm{CH}}_{3}\mathrm{Cl}\)) forms a transition state in which the carbon under nucleophilic attack has a pentacoordinate. This pushes off the leaving group (\({\mathrm{Cl}}^{-}\)) to the opposite side and forms the product (\({\mathrm{CH}}_{3}\mathrm{Cl}\)) with inversion of the tetrahedral geometry at the central carbon atom.

In this work, we investigated the PES of the SN2 reaction between \({\mathrm{CH}}_{3}\mathrm{Cl}\) and \({\mathrm{Cl}}^{-}\) in the gas phase using VQE and unitary coupled-cluster (UCC) analyses. We compared the PES from ansatzes and classical quantum mechanical results in noiseless simulations and compared the quantum noise effects on ansatzes in noise simulations. The intrinsic reaction pathway of the SN2 reaction between \({\mathrm{CH}}_{3}\mathrm{Cl}\) and \({\mathrm{Cl}}^{-}\) was made by 6-31+G*/B3LYP. Based on this path, we performed a single-point analysis with quantum computational algorithms for generating the PES. In quantum algorithms, we used the UCCSD ansatz and the generalized UCC ansatzes (k-UpCCGSD) from one to five products with the HOMO/LUMO active space and Bravyi–Kitaev (BK) transformation. We then performed quantum noise simulations with the UCCSD and k-UpCCGSD ansatzes with a Qulacs-based arbitrary noise model and quantum hardware-driven noise model (IBM’s ibmq-bogota). Therefore, this work demonstrates the applicability of quantum computing to the PES analysis of the SN2 reaction between \({\mathrm{CH}}_{3}\mathrm{Cl}\) and \({\mathrm{Cl}}^{-}\).

Methods

Backgrounds of quantum computing calculations

Electronic structure problem of Hamiltonian

The electronic structure problem involves determining the low-lying energy levels of chemical systems. Based on the Born–Oppenheimer approximation, the nuclei are much heavier than the electrons, meaning they do not move on the same time scale and their behaviors can be decoupled. The energy levels of the electrons in the system are used to solve the non-relativistic time-independent Schrödinger’s equation shown in Eq. (1).

$${H}_{el}\left|\Psi \rangle \right.={E}_{n}\left|\Psi \rangle \right.$$
(1)
$${H}_{el}=-\sum_{i}\frac{{\nabla }_{{r}_{i}}^{2}}{{m}_{e}}-\sum_{I}\sum_{i}\frac{{Z}_{I}{e}^{2}}{\left|{R}_{I}-{r}_{i}\right|}+\sum_{i}\sum_{j>i}\frac{{e}^{2}}{\left|{r}_{i}-{r}_{j}\right|}$$
(2)

The HF method also called the self-consistent field (SCF) method approximates that the N-body wave function of the system can be approximated by a single Slater determinant of N spin orbitals, in which each electron evolves in the mean-field of the other electrons. The electron Hamiltonian in (2) can be re-expressed based on the solutions of the molecular orbitals as Eq. (3).

$${\widehat{H}}_{\mathrm{elec}}=\sum_{pq}{h}_{pq}{\widehat{a}}_{p}^{\dagger}{\widehat{a}}_{q}+\frac{1}{2}\sum_{pqrs}{h}_{pqrs}{\widehat{a}}_{p}^{\dagger}{\widehat{a}}_{q}^{\dagger}{\widehat{a}}_{r}{\widehat{a}}_{s}$$
$${h}_{pq}=\int {\phi }_{p}^{*}(r)\left(-\frac{1}{2}{\nabla }^{2}-\sum_{I}\frac{{Z}_{I}}{{R}_{I}-r}\right){\phi }_{q}(r)dr$$
$${h}_{pqrs}=\int \frac{{\phi }_{p}^{*}({r}_{1}){\phi }_{q}^{*}({r}_{2}){\phi }_{r}({r}_{2}){\phi }_{s}({r}_{1})}{\left|{r}_{1}-{r}_{2}\right|}d{r}_{1}d{r}_{2}$$
(3)

The molecular orbitals (\({\upphi }_{\mathrm{u}}\)) can contain two electrons, which are spin orbitals of a spin-up (\(\mathrm{\alpha }\)) and spin-down (\(\upbeta \)) electron, and can be occupied and virtual. To transform the electronic structure problem into quantum states in quantum computers, the fermionic operators in the Hamiltonian must be transformed into spin operators using mapping methods.

Bravyi-Kitaev transformation

Mapping methods from fermionic operators to spin operators have different properties. The Jordan–Wigner (JW) mapper is straightforward, and when using it, qubits can naturally store the occupation of a given spin orbital22,23. The parity mapper translates the problem into a representation using parity variables that encode spin variables24. While the occupation of a spin orbital is stored locally in the JW, the occupation is stored non-locally in parity. BK encoding is a midway point between the JW and parity encoding methods, in that it compromises the locality of occupation number and parity information25. A thorough comparison of BK and JW mappings was performed by Tranter et al.26. The orbitals store the partial sums of the occupation numbers. The qubit operators for BK encoding are considerably more complicated than those for JW or parity encoding. However, using the BK transform makes the calculations considerably more efficient in many cases. Applying the BK mapping to the fermionic operator results in qubit operations of order O(\({\mathrm{log}}_{2}n\)) compared to qubit operations of order O(\(n\)) in the JW mapping.

Variational quantum eigensolver (VQE)

In quantum chemistry, the minimum eigenvalue of a Hermitian matrix for a system is its ground-state energy. The SCF method is an iterative method that involves selecting an approximate Hamiltonian and solving the Schrödinger equation to obtain a more accurate set of orbitals until the results converge. To find the best wave function, the variational method is used to choose the atomic orbital coefficients to minimize the energy, based on the variational principle that the approximate HF wave function is always greater in energy than the exact ground state energy of the system27.

Because of quantum errors from NISQ devices, most current NISQ algorithms rely on harnessing the power of quantum computers in a hybrid quantum–classical arrangement, where the classically difficult parts are assigned to the quantum computer and the classically tractable parts are calculated on sufficiently powerful classical devices. The variational method in quantum algorithms referred to as variational quantum algorithms (VQAs) variationally update the parameters of quantum circuits12,13. The first proposal of a VQA was the VQE28,29,30, originally proposed to solve quantum chemistry problems, and the quantum approximate optimization algorithm31 was proposed to solve combinatorial optimization problems.

Unitary coupled-cluster (UCC) ansatzes

The unitary coupled-cluster (UCC) method is an extension of the coupled-cluster (CC) method, which is one of the most popular post-HF methods13. The UCC method creates a parametrized trial state by considering excitations above the initial reference state and can be written as per Eq. (4), where the \(occ\) are occupied orbitals in the reference state, and the \(virt\) are orbitals that are initially unoccupied in the reference state.

$$\left|\Psi \left(\theta \right)\rangle \right.=U\left(\theta \right)\left|{\Psi }_{HF}\rangle \right.$$
(4)
$$U\left(\theta \right)={e}^{T\left(\theta \right)-T{\left(\theta \right)}^{\dagger}}$$
(5)
$$T\left(\theta \right)={T}_{1}\left(\theta \right)+{T}_{2}\left(\theta \right)+\cdots $$
(6)
$${T}_{1}\left(\theta \right)=\sum_{i\in occ, j\in virt}{\theta }_{ji}{a}_{j}^{\dagger}{a}_{i}$$
(7)
$${T}_{2}\left(\theta \right)=\sum_{{i}_{1},{i}_{2}\in occ, {j}_{1},{j}_{2}\in virt}{\theta }_{{j}_{1}{j}_{2}{i}_{1}{i}_{2}}{a}_{{j}_{2}}^{\dagger}{a}_{{i}_{2}}{a}_{{j}_{1}}^{\dagger}{a}_{{i}_{1}}$$
(8)

The UCC ansatz can be constructed from the parameterized cluster operator \(T\left(\theta \right)\) and adds a quantum correlation to the HF ground state \(\left|{\Psi }_{HF}\rangle \right.\)32. The UCC method is intractable on classical computers but can be efficiently implemented on a quantum computer. It was originally proposed for quantum computational chemistry by Peruzzo et al. and Yung et al.29,33. The UCC method retains all the advantages of the CC method, with the added benefits of being fully variational and able to converge when using multireference initial states. The UCC ansatz is typically truncated at a given excitation level, usually with single and double excitations, known as UCCSD13.

In its original form, the UCC ansatz has several drawbacks in its application to larger chemistry problems as well as in other applications. For strongly correlated systems, the widely proposed UCCSD ansatz is expected to have an insufficient overlap with the true ground state and typically results in large circuit depths34,35. Heuristic analyses are proposed to mitigate these challenges. For example, the generalized k-UpCCGSD ansatz adopts repeated layers of selected UCC operators35. The k-UpCCGSD approach restricts the double excitations to pairwise excitations but allows for k layers of the approach, which offers a good trade-off between accuracy and cost in implantation on quantum computers35.

Bimolecular nucleophilic substitution (SN2) of \({\mathbf{C}\mathbf{H}}_{3}\mathbf{C}\mathbf{l}\) and \({\mathbf{C}\mathbf{l}}^{-}\)

Electronic structure problem of the SN2 reaction

The SN2 reaction mechanism of \({\mathrm{CH}}_{3}\mathrm{Cl}\) and \({\mathrm{Cl}}^{-}\) requires the attack of nucleophile (\({\mathrm{Cl}}^{-}\)) from the backside of the carbon atom in \({\mathrm{CH}}_{3}\mathrm{Cl}\), where a covalent bond is broken and another is formed synchronously. The initial, transition state, and final structures are shown in Fig. 1. Because \({\mathrm{CH}}_{3}\mathrm{Cl}\) is attacked at a saturated carbon atom, \({\mathrm{CH}}_{3}\mathrm{Cl}\) has a tetrahedral structure in the initial structure. The nucleophile (\({\mathrm{Cl}}^{-}\)) and leaving group (\({\mathrm{Cl}}^{-}\)) are identical, so the transition state has a trigonal bipyramidal structure, where the two chlorine atoms and one carbon atom are collinear. The substitution process produces the final structure with an inverted stereochemical configuration.

Figure 1
figure 1

The potential energy surface (PES) for the SN2 reaction mechanism of CH3Cl and Cl- in the gas phase. The carbon atoms are shown in grey, hydrogen atoms are in light grey, and chlorine atoms are in green.

The full Hamiltonian of the system is written as Eq. (9), where \(nuclei\) and \(electrons\) are all nuclei and electrons in \({\mathrm{CH}}_{3}\mathrm{Cl}\) and \({\mathrm{Cl}}^{-}\). \(h\) is Plank’s constant, \(m\) is the mass of a particle (\(\mathrm{C}\) is 12.011 u, \(\mathrm{H}\) is 1.008 u, and \(\mathrm{Cl}\) is 35.453 u, and an electron is \(5.49\times {10}^{-4}\) u), \({\varepsilon }_{0}\) is vacuum permittivity, \(e\) is the charge on an electron, \(Z\) is the charge for a nucleus or atomic number (\(\mathrm{C}\) is 6, \(\mathrm{H}\) is 1, and \(\mathrm{Cl}\) is 17), \(x\), \(y\), and \(z\) are the Cartesian coordinates of a given particle, and \(R\) and \(r\) stand for the coordinate vectors of any particle (nucleus and electron, respectively).

$$\begin{aligned}H & =-\frac{{h}^{2}}{8{\pi }^{2}}\sum_{I}^{nuclei}\frac{1}{{m}_{I}}\left(\frac{{\partial }^{2}}{\partial {x}_{I}^{2}}+\frac{{\partial }^{2}}{\partial {y}_{I}^{2}}+\frac{{\partial }^{2}}{\partial {z}_{I}^{2}}\right)-\frac{{h}^{2}}{8{\pi }^{2}}\sum_{i}^{electrons}\frac{1}{{m}_{e}}\left(\frac{{\partial }^{2}}{\partial {x}_{i}^{2}}+\frac{{\partial }^{2}}{\partial {y}_{i}^{2}}+\frac{{\partial }^{2}}{\partial {z}_{j}^{2}}\right) \\ & \quad +\frac{1}{4\pi {\varepsilon }_{0}}\left\{-\sum_{i}^{electrons}\sum_{I}^{nuclei}\left(\frac{{Z}_{I}{e}^{2}}{\left|{R}_{I}-{r}_{i}\right|}\right)+\sum_{i}^{electrons}\sum_{j>i}\left(\frac{{e}^{2}}{\left|{r}_{i}-{r}_{j}\right|}\right)+\sum_{I}^{nuclei}\sum_{J>I}\left(\frac{{Z}_{I}{Z}_{J}{e}^{2}}{\left|{R}_{I}-{R}_{J}\right|}\right)\right\}\end{aligned}$$
(9)

Structure preparation

Chloromethane (\({\mathrm{CH}}_{3}\mathrm{Cl}\)) and chloride ion (\({\mathrm{Cl}}^{-}\)) systems for the SN2 reaction were prepared using Gaussian 0936. We employed density functional theory (DFT) methods with the B3LYP functional and the 6-31+G* basis set in the gas phase. We obtained 23 stationary points using the Hessian matrix calculation of geometries from full optimization for the minimums and the transition state. In the transition state, we performed vibrational frequency calculations at the same computational level (DFT/B3LYP/6-31+G*) and obtained one imaginary frequency for the transition state (− 350.76 cm−1).

Technical details of classical calculations and quantum simulations

Semi-quantum mechanical calculations (AM1, PM6, and DFTB3) were performed using Gaussian 0936 and GAMESS37. Austin model 1 (AM1) neglects the differential diatomic overlap (NDDO) integral approximation38. Parametric method 6 (PM6) is also based on the NDDO approximation and is introduced to correct major errors in AM1 and PM3 calculations39. Density functional tight-binding (DFTB) is an approximation method of density functional theory (DFT). DFTB3 is a third-order expansion of DFT that improves the Coulomb interaction between atomic partial charges40.

All traditional QM calculations were performed using PySCF and Psi441,42. In the SN2 reaction system (\({\mathrm{CH}}_{3}\mathrm{Cl}\) and \({\mathrm{Cl}}^{-}\)), we used four calculation levels without active space and two calculation levels with active space as references. Four calculations without active space were performed with HF and full configurational interaction with STO-3G (HF/STO-3G and FCI/STO-3G) and coupled-cluster single and double excitation with cc-pVDZ and cc-pV5Z (CCSD/cc-pVDZ and CCSD/cc-pV5Z). The two calculations with active space were performed using CCSD/STO-3G and FCI/STO-3G.

All the quantum algorithms were performed using tequila and qiskit43,44. We limited the active space to two electrons in four spin orbitals (four qubits), using the BK transformation, “cobyla” optimizer, and UCCSD or k-UpCCGSD ansatz (\(\mathrm{k}=1, 2, 3, 4, 5\)). The error in quantum noise simulations is measured using RMSE, which is a root-mean-square error and a measure of the difference between the two results. First, we used an arbitrary noise model from bit flip, dephasing, depolarizing, two-qubit depolarizing, and amplitude damping noises implemented in Qulacs45 for the UCCSD and k-UpCCGSD analyses. The final energy value was averaged with 262,144 shots from independent 32 calculations with 8192 shots per iteration. Second, we used the quantum hardware-driven noise model from IBM’s superconducting transmon quantum computer (ibmq-bogota) for the k-UpCCGSD analyses. The final energy value was averaged using 300,000 shots from independent 3 calculations with 100,000 shots per iteration.

Results

To apply quantum computing to the reaction pathway, we adopted the zero-sum SN2 reaction between chloromethane and chloride, as shown in Fig. 1. We performed single-point calculations to generate PES with a quantum computing framework and compared the results to those obtained from classical quantum mechanics in the SN2 reaction.

The SN2 reaction of chloromethane and chloride ion

The SN2 reaction on the carbon center in the gas phase occurs through a double-well PES from the reactants to the products. In the SN2 reaction of chloromethane and chloride, we created an intrinsic reaction pathway of 23 steps in the gas phase, from the initial complex to the final complex, using classical quantum mechanics and B3LYP/6-31+G* (Fig. 1). The energy diagram of the transition state is shown in Fig. S1.

Semi-QM methods can be one of the alternatives for finding intrinsic reaction pathways. Based on the pathway constructed by the ab initio QM method, we performed single-point calculations in the gas phase for analysis with semi-QM methods (AM1, PM6, and DFTB3), the results of which are shown in Fig. S2. The results from the AM1 and PM6 methods appear graphically as a bell-shaped curve and were closer to those from B3LYP/6-31+G* than to those from DFTB3 in the SN2 reaction system of chloromethane and chloride ions.

Quantum noiseless simulations of UCCSD and k-UpCCGSD ansatzes and comparison with classical results

We performed a series of calculations, as shown in Fig. 2A to establish a baseline for classical quantum mechanics. In classical calculations without an active space, we adopted the HF/STO-3G, FCI/STO-3G, CCSD/cc-pVDZ, and CCSD/cc-pV5Z levels. In classical calculations with the HOMO/LUMO active space, we adopted the CCSD/STO-3G and FCI/STO-3G levels. To obtain the PES in the SN2 reaction pathway with quantum computing algorithms, we searched for the ground-state energy of their molecular Hamiltonians using the HOMO/LUMO active space, UCCSD ansatz, STO-3G basis set, and BK transformation (UCCSD/STO-3G). We estimated the relative energy differences between the initial point and all points in the pathway.

Figure 2
figure 2

Potential energy surfaces from noiseless quantum simulations. (A) Comparison of UCCSD ansatz and classical quantum calculations, which includes the HF/STO-3G, FCI/STO-3G, CCSD/cc-pVDZ, and CCSD/cc-pV5Z without active space, the FCI/STO-3G and CCSD/STO-3G with HOMO/LUMO active space, and UCCSD/STO-3G with active space. (B) Comparison of UCCSD ansatz and generalized k-UpCCGSD ansatzes with the classical results of the CCSD/STO-3G and FCI/STO-3G with active space.

To compare the chemical accuracy of the quantum computing results, we measured the RMSE of the PES from the quantum algorithms and classical results, which are shown in Fig. 2A and summarized in Table 1. First, we compared UCCSD/STO-3G with an active space and other classical results without an active space. The RMSE values of HF/STO-3G or FCI/STO-3G without active space are 1.77 and 1.20 kcal/mol, respectively. The results from the UCCSD/STO-3G with active space are similar to those from FCI/STO-3G without active space but cannot come close to those with chemical accuracy (less than 1 kcal/mol). The RMSE values of CCSD/cc-pVDZ and CCSD/cc-pV5Z without active space are 3.05 and 1.89 kcal/mol, respectively. UCCSD/STO-3G, with active space, cannot overcome the basis set limit and the error from the active space approximation within the chemical accuracy. Second, we compared UCCSD/STO-3G with other classical results with the same active space. The RMSE values of CCSD/STO-3G and FCI/STO-3G with active space were \(7.63\times {10}^{-4}\) and \(7.84\times {10}^{-4}\) kcal/mol, respectively. The results from UCCSD/STO-3G are close to those from FCI/STO-3G or CCSD/STO-3G, with an active space within chemical accuracy (under 1 kcal/mol). Third, we compared k-UpCCGSD with other classical results. In comparison with the classical results without an active space, k-UpCCGSD showed results similar to those of UCCSD. Compared to the classical result with active space, k-UpCCGSD showed more inaccurate results than UCCSD, where the RMSE values between k-UpCCGSD and FCI/STO-3G with active space are \(2.10\times {10}^{-2}\) and \(3.20\times {10}^{-2}\) kcal/mol, respectively. Therefore, k-UpCCGSD can describe the PES of the SN2 reaction with chemical accuracy in noiseless simulations.

Table 1 RMSE of ansatzes with classical results in noiseless simulations (kcal/mol).

To compare the effects of different ansatzes in quantum computing algorithms, we measured the RMSE between the UCCSD/STO-3G and k-UpCCGSD ansatz (\(\mathrm{k}=1, 2, 3, 4, 5\)) with active space, as shown in Fig. 2B and summarized in Table S1. All RMSE values between the ansatzes were chemically accurate. The RMSE values between k-UpCCGSD and UCCSD were \(2.87\times {10}^{-2}\), \(2.54\times {10}^{-2}\), \(3.17\times {10}^{-2}\), \(1.98\times {10}^{-2}\), and \(2.07\times {10}^{-2}\) kcal/mol from 1-UpCCGSD to 5-UpCCGSD, respectively. The RMSE values for UCCSD/STO-3G showed a decreasing tendency as the k value increased. Therefore, the higher k products of k-UpCCGSD provided more accurate results for the SN2 reaction.

Quantum noise simulations of UCCSD and k-UpCCGSD ansatzes with qulacs-based arbitrary noise model

Near-term quantum devices are noise-prone, so an explanation of how a VQE is calculated in the presence of quantum noise is important to evaluate the performance of quantum algorithms. To simulate the VQE calculations with quantum noise, we performed quantum noise simulations with the Qulacs-based arbitrary noise model, where we used 262,144 shots from independent 32 calculations with 8192 shots per iteration. The PES from UCCSD/STO-3G and 5-UpCCGSD/STO-3G is shown in Fig. 3, and those from the other 1,2,3,4-UpCCGSD/STO-3G are shown in Fig. S3. In the quantum noise simulations of UCCSD/STO-3G, the upper bound on the error was \(1.54\) mHa on average, while the lower bound on the error was \(1.26\) mHa on average of the PES. When the k product increased from 1 to 5 in the quantum noise simulations from the generalized k-UpCCGSD analyses, the upper bounds on the error were 0.889, 0.859, 0.752, 0.696, and 0.721 mHa, respectively, and the lower bounds on the error were 0.690, 0.643, 0.647, 0.708, and 0.589 mHa, respectively. In quantum noise simulations with the Qulacs-based arbitrary noise model, the quantum noise errors from k-UpCCGSD/STO-3G were smaller than those from UCCSD/STO-3G.

Figure 3
figure 3

Potential energy surfaces from quantum noise simulations with the Qulacs-based arbitrary noise model (A,B) Quantum noisy effects on UCCSD and 5-UpCCGSD ansatzes with STO-3G. The classical QM results of HF/STO-3G and FCI/STO-3G without active space are shown in green and blue, respectively. The noiseless results from UCCSD ansatz and 5-UpCCGSD ansatz with HOMO/LUMO active space are shown in orange and yellow, respectively. The shot-based quantum noise simulation results from the UCCSD ansatz and 5-UpCCGSD ansatz with Qulacs quantum noises are shown in grey and dark green. The error bar is based on 262,144 shots, from 32 times 8192 shots, in quantum noises and is shown in black line. (C) Error in energy in ansatzes with HOMO/LUMO active space and STO-3G. The error was calculated from the difference between the noiseless results and noisy results of each ansatz in all 23 steps.

Quantum noise simulations of k-UpCCGSD ansatzes with hardware-driven noise models

To simulate the VQE calculations with quantum noises from the NISQ devices, we performed quantum noise simulations with 300,000 shots from three 100,000 shots using qasm simulators with the hardware-driven noise model (ibmq_bogota). The PES from 1-UpCCGSD and 5-UpCCGSD with the ibmq-bogota-driven noise model are shown in Fig. 4A,B, and the errors of the k-UpCCGSD ansatzes are shown in Fig. 4C. The PES with the ibmq-bogota-driven noise model manifested as a bell-shaped curve and was found to follow the PES from the FCI/STO-3G without active space or noiseless simulation results. However, quantum noise resulted in an average error of 40.654 mHa in k-UpCCGSD compared to noiseless results. The standard deviation in the three independent simulations was 0.436 mHa, which was consistent with the results of the three simulations. Therefore, the relative PES from the hardware-driven noise model is useful, but the absolute energy values have quite high errors compared with the noiseless results.

Figure 4
figure 4

Potential energy surfaces from quantum noise simulations with the ibmq-bogota noise model. (A,B) Quantum noisy effects on 1-UpCCGSD and 5-UpCCGSD ansatzes with STO-3G. The classical QM results of HF/STO-3G and FCI/STO-3G without active space are shown in green and blue, respectively. The noiseless results are shown in yellow. The shot-based quantum noise simulation results from 1-UpCCGSD ansatz and 5-UpCCGSD ansatz with ibmq-bogota noise models are shown in dark green. The error bar is based on 300,000 shots from 3 times 100,000 shots in quantum noises and is shown in black line. (C) Error in energy in ansatzes with HOMO/LUMO active space and STO-3G. The error was calculated from the difference between the noiseless results and noisy results of each ansatz in all 23 steps.

Discussion

The generalized k-UpCCGSD was devised for a trade-off between accuracy and cost35. In the noiseless quantum simulation of the SN2 reaction, UCCSD was more accurate than the k-UpCCGSD, where both UCCSD and k-UpCCGSD are also chemically accurate compared to FCI/STO-3G with the same active space. However, UCCSD showed a wider variance than k-UpCCGSD in Qulacs-based arbitrary noise simulations, which indicates that UCCSD is more susceptible to quantum noise than k-UpCCGSD. In comparison with k-UpCCGSD, the higher k products made the circuit depths longer and the ansatzes more susceptible to quantum noise. Interestingly, there was no clear tendency related to the k products and errors in the Qulacs-based noise simulations and the ibmq-bogota-driven noise simulation. This may be because the circuit depth of k-UpCCGSD in the SN2 reaction is so long that the quantum noise is saturated. 1-UpCCGSD has the shortest circuit depth in k-UpCCGSD, and its qiskit code is shown in the Supporting Information, but it showed a similar accuracy to the ansatzes with higher k products in this work. Although 1-UpCCGSD is sufficient to describe the PES with chemical accuracy in noiseless simulations in this work, 1-UpCCGSD has been reported to work with less accuracy than UCCSD and higher k-UpCCGSD in some cases35,46. This is because the HOMO/LUMO active space approximation reduces the single and double excitations of orbitals, and also decreases the accuracy improvement effects of the higher-k products. Therefore, k-UpCCGSD can serve as an alternative analysis of UCCSD to reduce quantum noisy effects in the NISQ era, and k-UpCCGSD is sufficient to describe the PES of the SN2 reaction in this work.

Interestingly, the error of the hardware-driven noise simulations was high, but the standard deviations of the three independent simulations were small. In the Qulacs-based noise simulations, quantum noises were randomly generated, where the higher samples per iteration and the higher number of independent simulations could deal with the quantum noise and reduce the errors with noiseless results. However, the error from the ibmq-bogota-driven noise simulation was not reduced by 100,000 samples per iteration or by three independent simulations. The three independent simulations showed very similar results, with a standard deviation of 0.436 mHa. This may indicate that new error mitigation algorithms are required to reduce the errors from quantum noises of NISQ devices, not only for the higher samples but also for the more independent simulations.

The transition state theory explains the reaction rates of chemical and enzymatic reactions. Computational analysis of the reaction pathway is important in the molecular design of transition-state analogs, understanding chemical and enzymatic reactions, and enzyme modification for higher activity. This study used the ab initio QM (6-31+G*/B3LYP) method to construct an intrinsic reaction pathway. However, searching the intrinsic reaction pathway with the ab initio QM method would require a high computational cost in larger systems such as enzymes. To reduce the computational cost of finding the reaction pathway, it is necessary to use alternative approximate methods, including the semi-empirical QM, QM/MM, and FMO methods, in larger systems21,47. The application of quantum computing to search the reaction pathway is promising for the acceleration and accuracy of computational analysis.

In this study, we analyzed the potential energy surfaces of the SN2 reaction using quantum computational algorithms by making simplifications with active space approximations. Thus, we can select a subset of molecular orbitals for quantum mechanical calculations using near-term quantum computers. The quality of the electronic structure predictions depends on a small subset of frontier orbitals; therefore, the active space scheme can be a solution to interesting quantum chemistry problems with NISQ hardware and restricted qubit numbers. As the NISQ hardware evolves and the availability of quantum qubits increases, it would be possible with quantum computing algorithms to calculate single point analysis without active space approximations and with the higher basis sets for more accurate results. Furthermore, quantum computational applications can be expanded to search for intrinsic reaction paths in the reaction mechanisms. Major bottlenecks in the application of quantum computing may be the restricted qubit numbers and the development of ansatzes for quantum chemistry calculations that are intractable to NISQ machines with many qubits. As quantum computers and ansatzes advance, quantum computational applications to quantum chemistry problems are expected to be solutions to important problems in physics, chemistry, biology, and medicine.

Conclusion

Quantum computers are considered to dramatically accelerate the collection of information on the collective properties of quantum states. Quantum mechanical methods are useful applications in quantum computers. Structure-based molecular simulations using quantum mechanics and quantum computers have accelerated structure-based drug discovery. As a case study for structure-based molecular simulations, we investigated the potential energy surfaces of the SN2 reaction pathway using quantum computing. The results shed light on the applicability of quantum computing to structure-based molecular simulations. If the system is sufficiently simplified and errors are handled using appropriate error-mitigation techniques, the NISQ hardware is capable of reproducing the trend obtained from classical computations. We look forward to seeing how quantum computation will accelerate structure-based molecular simulations and yield important impacts on structure-based drug discovery.