<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by QunaSys Tech Blog on Medium]]></title>
        <description><![CDATA[Stories by QunaSys Tech Blog on Medium]]></description>
        <link>https://medium.com/@qunasys?source=rss-e05b9c621d7d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5IfTVd-JgUrbFwCO4QxlEg.png</url>
            <title>Stories by QunaSys Tech Blog on Medium</title>
            <link>https://medium.com/@qunasys?source=rss-e05b9c621d7d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 04 Jun 2026 00:29:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@qunasys/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Quantum-Selected Configuration Interaction: Classical Diagonalization of Hamiltonians in Subspaces…]]></title>
            <link>https://qunasys.medium.com/quantum-selected-configuration-interaction-classical-diagonalization-of-hamiltonians-in-subspaces-0f9783c58aba?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f9783c58aba</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[algorithm-design]]></category>
            <category><![CDATA[quantum-algorithms]]></category>
            <category><![CDATA[chemistry]]></category>
            <category><![CDATA[quantum-chemistry]]></category>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Fri, 09 Feb 2024 10:56:18 GMT</pubDate>
            <atom:updated>2024-02-09T10:56:18.121Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quantum-Selected Configuration Interaction: Classical Diagonalization of Hamiltonians in Subspaces Selected by Quantum Computers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8OzPahdyv_lZ-BroXhUnng.jpeg" /><figcaption>Image generated by Copilot Designer.</figcaption></figure><h3>Introduction</h3><p>Quantum computing has opened up a realm of possibilities, especially in the area of simulating and understanding complex quantum systems in areas like quantum chemistry and condensed matter physics. Recent paper by QunaSys describes a promising approach- Quantum-Selected Configuration Interaction (QSCI) algorithm. It offers a novel and more efficient way to find ground-state and excited-state energies in quantum systems. In particular, the new approach circumvents effects of the errors that can spoil the variational nature of VQE: that is, the energy estimated by quantum devices is not guaranteed to give an upper bound on the exact ground-state energy. This is problematic because lowering the resulting energy of VQE does not necessarily mean approaching to the exact ground state. As we will learn QSCI solves this problem and yields results obeying the variational principle. In this blog post, we’ll delve into the key components and advantages of the QSCI algorithm, and how it is paving the way towards useful quantum computing. Below we describe the algorithm in general terms.</p><h3>Algorithm Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7R2MuXY8Y4KFu8fYS5zG5g.png" /><figcaption>Schematic description of the QSCI algorithm for finding the ground state.</figcaption></figure><ol><li><strong>Start with an Approximate Ground State:</strong> The QSCI journey begins with the preparation of an approximate ground state. Quantum computers have the unique capability to generate these states, often using techniques such as Variational Quantum Eigensolvers (VQE) or other<br>quantum algorithms. This is the foundation on which QSCI builds. Note that our recent algorithm, ADAPT-QSCI, enables us to avoid the dependence on VQE. This will be discussed in the next article.</li><li><strong>Identifying Crucial Configurations:</strong> Once we have our approximate ground state, the next step is to identify the vital computational basis states or electron configurations that are essential for expressing the ground state accurately. This is where the quantum magic happens. The quantum state is repeatedly measured to pinpoint these key configurations, a task that would be incredibly challenging for classical computers.</li><li><strong>Truncated Hamiltonian Matrix Diagonalization:</strong> With the important configurations in hand, it’s time to perform the diagonalization, but here’s the twist — it happens on classical computers. The Hamiltonian matrix, which describes the energy of the quantum system, is truncated to include only the identified configurations. This considerably reduces the computational workload, making it classically tractable. As the final result one obtains the smallest eigenvalue and its corresponding eigenvector, which approximates the ground-state energy.</li><li><strong>Extending the Algorithm for Excited States:</strong> QSCI isn’t limited to ground state calculations. It can also be used to find excited states by expanding the subspace or by repeating the procedure for each energy eigenstate. This versatility is a significant advantage of the algorithm.</li><li><strong>A Strict Upper Bound on Ground-State Energy:</strong> The Hamiltonian matrix elements in the computational basis can be accurately calculated using classical computers. Therefore, the diagonalization step yields an energy value that serves as a strict upper bound on the exact ground-state energy. Regardless of the quality of the subspace spanned by the identified configurations, this bound remains valid. The quality mainly affects how close the bound is to the exact value.</li><li><strong>Mitigating Errors with Symmetries:</strong> In quantum systems with symmetries and conserved quantities like particle number, the post-selection of computational basis states in the sampling outcome can help mitigate bit-flip errors. This adds robustness to the algorithm in the<br>presence of physical and statistical errors.</li><li><strong>Beyond Ground State - Quantum Eigenstate Tomography:</strong> QSCI isn’t just about ground state calculations. It can be advantageous for eigenstate tomography, allowing classical estimation of the expectation values of various observables at no additional quantum cost. This efficiency stems from having a classical representation of the state, which enables the computation of expectation values efficiently.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4btf99gjqC5Y-Z5ferIX4Q.png" /><figcaption>Schematic descriptions of the QSCI algorithms for finding the ground state and the first excited state: (a) single diagonalization scheme, and (b) sequential diagonalization scheme.</figcaption></figure><h3>Conclusion</h3><p>In the world of quantum computing, the Quantum-Selected Configuration Interaction (QSCI) algorithm stands out as a stepping stone approach for finding ground-state and excited-state energies efficiently. Its ability to harness quantum computing for identifying crucial configurations and then performing classical diagonalization reduces computational complexity, making it an attractive tool for tackling complex quantum systems. Moreover, its utility extends beyond ground state calculations, offering a versatile solution for eigenstate tomography. As quantum computing continues to evolve, QSCI is poised to play a pivotal role in solving challenging quantum problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f9783c58aba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analytical gradient of energies with a sophisticated calculation method by quantum computers…]]></title>
            <link>https://qunasys.medium.com/analytical-gradient-of-energies-with-a-sophisticated-calculation-method-by-quantum-computers-e237ae34e595?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e237ae34e595</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[qunasys]]></category>
            <category><![CDATA[photochemical]]></category>
            <category><![CDATA[calculations]]></category>
            <category><![CDATA[quantum]]></category>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Fri, 18 Feb 2022 00:02:14 GMT</pubDate>
            <atom:updated>2022-02-18T00:02:14.040Z</atom:updated>
            <content:encoded><![CDATA[<h3>Analytical gradient of energies with a sophisticated calculation method by quantum computers: application to the analysis of a photochemical reaction including conical intersection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*yX0vmyjLWbbntl_SeQgfZw.jpeg" /></figure><p>Researchers at QunaSys Inc., Osaka University, and Mitsubishi Chemical Co. have developed an algorithm for calculating the gradient of energy of molecules with a method called state-averaged orbital-optimized variational quantum eigensolver (SA-OO-VQE), which gives a well-balanced description of multiple electronic states and expected to be utilized in a variety of quantum chemistry applications of quantum computers. They have applied the energy derivative calculated based on the developed method to the problem of determining the reaction pathway of <em>cis-trans</em> photoisomerization including a conical intersection, whose analysis requires a balanced description for the ground and excited states, with classical numerical simulation of quantum computers. The results were published in the Journal of Chemical Theory and Computation, a peer-reviewed journal of the American Chemical Society.</p><p>“Analytical Energy Gradient for State-Averaged Orbital-Optimized Variational Quantum Eigensolvers and Its Application to a Photochemical Reaction”,</p><p>Keita Omiya*, Yuya O. Nakagawa*, Sho Koh, Wataru Mizukami, Qi Gao, and Takao Kobayashi,</p><p>Available at: <a href="https://doi.org/10.1021/acs.jctc.1c00877">https://doi.org/10.1021/acs.jctc.1c00877</a></p><p>(Preprint version: <a href="https://arxiv.org/abs/2107.12705">https://arxiv.org/abs/2107.12705</a>)</p><h3>Background</h3><p>In recent years, the development and research of quantum computers have been vigorously pursued. In particular, a type of quantum computer that is now being realized, called a Noisy Intermediate-Scale Quantum (NISQ) device, is expected to outperform existing classical computers in certain tasks [1]. Because NISQ devices are subject to noise, they can only run a few relatively simple algorithms, of which one called the variational quantum eigensolver (VQE) has received the most attention [3]. VQE is a method for calculating the energies of molecules and matter based on quantum mechanics, and it is wisely designed to divide-and-distribute tasks for quantum and classical computers so that it can be easily run on NISQ devices.</p><p>In order to make the calculation of molecular energies using VQE more practical, a method called orbital-optimized VQE (OO-VQE) was proposed by several groups including QunaSys [2]. OO-VQE was further extended by combining it with a technique called state-average, and a method called state-averaged OO-VQE (SA-OO-VQE) was proposed [4]. SA-OO-VQE is expected to be applied to various chemical calculations as a method to obtain the ground state (most stable state) and excited state energies of molecules in a balanced manner using a small quantum computer.</p><h3>Problem</h3><p>Energy is definitely a central quantity that determines the static properties of matter, but it is also very important to know the dynamic properties, for example, how chemical reactions occur. One of the most fundamental quantities for studying dynamic properties is the derivative of energy, that is, how much the energy changes when the parameter of the system is slightly changed. For example, if we know how much the energy changes when the nucleus of a molecule moves slightly, we can find out how the molecule moves afterward.</p><p>Although the SA-OO-VQE described above can calculate the energy value itself, there is no known method to obtain its analytical derivative. For NISQ devices, which inevitably contain noise and fluctuation in outputs, calculating the derivative using finite numerical differences is considered to be inaccurate. Therefore, it is vitally important to develop an algorithm to calculate the analytical derivative of the energy.</p><h3>Method and Results</h3><p>In this study, we derived a formula for calculating the analytical derivative of the energy in SA-OO-VQE based on the Lagrangian method, which has been used in quantum chemical calculations using classical computers. We showed that the analytical derivative of the energy obtained by SA-OO-VQE can be calculated by appropriately combining quantities that can be easily measured on the NISQ device.</p><p>To demonstrate one example usage of this method, we have calculated the SA-OO-VQE energies and their derivatives for a model molecule that exhibits <em>cis-trans</em> photoisomerization including a conical intersection, which is a typical and important photochemical reaction (Fig. 1). The obtained energies and their derivatives were used as a subroutine in an existing method of finding chemical reaction pathways, and it was confirmed that the reaction paths agree well with those obtained by using the SA- CASSCF method, which is the counterpart of SA-OO-VQE on classical computers. This result exemplifies that the calculation of energy and its derivative using SA-OO-VQE can be applied to the analysis of actual photochemical reactions.</p><p>The numerical calculations in this study were performed by simulating an ideal quantum computer using a classical computer, and the energies and their derivatives using SA-OO-VQE were calculated by <a href="https://qunasys.com/services/qamuy">Qamuy</a>, commercial software for quantum chemical calculation by quantum computers developed by QunaSys.</p><h3>Outlook</h3><p>This research has enabled us to calculate a fundamental quantity, the derivative of energy, in a sophisticated method using a quantum computer (SA-OO-VQE). Since the energy derivative is a quantity that is frequently used in computational chemistry, such as in the analysis of chemical reactions, the algorithm developed in this study is expected to further expand the applications of NISQ devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iS7m0cYyzICfAsmZ" /></figure><p>Fig. 1: A model molecule for <em>cis-trans</em> photoisomerization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qOl-mRGHJVIfZ7Hx" /></figure><p>Fig. 2: Potential energy surfaces around the conical intersection between two electronic states involved in the photochemical reaction. Left (right) panel is a result obtained by using SA-OO-VQE (SA-CASSCF).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dLtCeYHMB-C6Bhan" /></figure><p>Fig. 3: Plot of energies along the reaction path. Left (right) panel is a result obtained by using SA-OO-VQE (SA-CASSCF).</p><h3>References</h3><p>[1] F. Arute <em>et al.</em>, Nature 574, 505–510 (2019), <a href="https://www.nature.com/articles/s41586-019-1666-5">https://www.nature.com/articles/s41586-019-1666-5</a></p><p>[2] A. Peruzzo <em>et al.</em>, Nat. Commun. 5, 4213 (2014) <a href="https://www.nature.com/articles/ncomms5213">https://www.nature.com/articles/ncomms5213</a></p><p>[3] T. Takeshita <em>et al.</em>, Phys. Rev. X 10, 011004 (2020)</p><p><a href="https://journals.aps.org/prx/abstract/10.1103/PhysRevX.10.011004">https://journals.aps.org/prx/abstract/10.1103/PhysRevX.10.011004</a>,</p><p>I. O. Sokolov <em>et al.</em>, J. Chem. Phys. 152, 124107 (2020), <a href="https://aip.scitation.org/doi/10.1063/1.5141835">https://aip.scitation.org/doi/10.1063/1.5141835</a>,</p><p>W. Mizukami <em>et al.</em>, Phys. Rev. Research 2, 033421 (2020),</p><p><a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.2.033421">https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.2.033421</a>,</p><p>[4] S. Yalouz <em>et al.</em>, Quantum Sci. Technol. 6 024004 (2021), <a href="https://iopscience.iop.org/article/10.1088/2058-9565/abd334">https://iopscience.iop.org/article/10.1088/2058-9565/abd334</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e237ae34e595" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accelerating variational quantum algorithms]]></title>
            <link>https://qunasys.medium.com/accelerating-variational-quantum-algorithms-147b9bf02dc0?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/147b9bf02dc0</guid>
            <category><![CDATA[quantum-algorithms]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Thu, 13 Jan 2022 04:40:04 GMT</pubDate>
            <atom:updated>2022-01-13T04:40:04.237Z</atom:updated>
            <content:encoded><![CDATA[<h4>A novel way to estimate expectation values on quantum computers</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*NJ9Iw3VP4ObyTsnW6B98Sg.jpeg" /></figure><p>Estimation of expectation values is a key ingredient in variational quantum algorithms [1], regarded as promising candidates for industrial applications of near-term quantum computers. A challenge in the standard ways of expectation value estimation is the necessity to repeat measurement many times to suppress statistical fluctuation, especially in the application to quantum chemistry, which typically demands high accuracy. We proposed [2] an alternative method to estimate the expectation values, which can be more efficient for a certain type of quantum state, frequently encountered in systems of quantum chemistry and condensed matter physics.</p><p>The development of Noisy Intermediate-Scale Quantum (NISQ) devices has been rapidly progressing in recent years. Promising applications of NISQ devices are variational quantum algorithms, in particular Variational Quantum Eigensolver (VQE) [3]. VQE can be used to obtain approximations to the lowest energy and the corresponding quantum state (ground state) for electrons in an atom or a molecule and can be applied to quantum chemistry, condensed matter physics, etc.</p><p>VQE is a hybrid quantum-classical algorithm based on the variational method: for a given trial wavefunction and Hamiltonian (the quantum-mechanical operator for energy) of some physical system of interest, quantum computers are used to estimate the energy expectation value; the latter is minimized with respect to parameters describing the trial wavefunction by use of a classical computer; this enables us to iteratively find the approximate lowest-energy state within a set of states described by the trial wavefunction. In this algorithm, the task for quantum computers is to estimate the expectation value. To do so, the trial wavefunction is prepared as a quantum circuit, for which “energy” is measured, and such a set of preparation-measurement procedures is repeatedly performed for statistical estimation. Since the number of measurements is finite, the estimated expectation value is inevitably accompanied by statistical fluctuation. It is highly desirable to suppress the amount of statistical fluctuation with as few measurements as possible in order to perform VQE calculations with high precision and efficiency.</p><p>The standard way of expectation value estimation [3] goes like this: firstly, the Hamiltonian is decomposed into quantities that can be measured by NISQ devices (specifically, the quantities are so-called Pauli strings, tensor products of Pauli operators); then, each of these quantities is estimated by measuring a quantum circuit; finally, recombining the estimates of those quantities, the overall estimate of the energy expectation value is obtained. The procedure is rather simple but relies on potentially huge statistical resources: estimating each of Pauli strings requires many measurements to suppress statistical fluctuation; besides, the number of Pauli strings to be measured increases significantly with the system size [4]; then, the total number of measurements can be too huge to finish the expectation value estimation within a practically acceptable time, especially when high accuracy is required as in quantum chemistry. There are vigorous efforts to improve this deficit, e.g., by simultaneously measuring commuting Pauli strings and/or by optimizing the allocation of measurement budget to each of Pauli strings. Yet, further improvements are still awaited toward practical use for systems of industrial interest. (See [5] for a recent assessment of measurement resources in the application to quantum chemistry calculations.)</p><p>We pursued another direction in expectation value estimation: instead of decomposing the Hamiltonian into measurable quantities, our method relies on the decomposition of the wave function into computational basis states. Specifically, we express the expectation value of the Hamiltonian <em>H</em> for a wave function |<em>ψ&gt;</em> as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/0*rNJVuj8-zp2PyP2i" /></figure><p>where the computational basis states, for <em>N</em> qubits, are labeled by <em>m, n</em> = 0, 1, …, 2<em>ᴺ</em> <em>-</em>1 (for details, see Eq. (6) and explanation around it in [2]). Our method is based on the insight that a wave function of interest in quantum chemistry and condensed matter physics can often be well-described by a relatively small number of electron configurations, each of which can be identified as a computational basis state on quantum computers. We call such a state a “concentrated” state in particular computational basis states. With this insight, we approximated the expectation value above as the sum of contributions from those major electron configurations or computational basis states. The major basis states can be selected by sampling the wave function, generated on quantum computers, in the computational basis. The transition matrix elements &lt;<em>m</em>|<em>H</em>|<em>n</em>&gt; can be efficiently calculated by a classical computer, while the remaining pieces in the above equation can be estimated based on quantities measured on quantum computers, each of which requires a quantum circuit consisting of at most <em>N</em> CNOT gates in addition to the ones for the wave function |<em>ψ</em>&gt;. The point is that the number of quantities to be measured is <em>O(R)</em>, where <em>R</em> means the number of the major basis states. Hence, when <em>R</em> is significantly smaller than the number of Pauli strings in the decomposition of the Hamiltonian, our method is expected to be more efficient than the standard methods in terms of statistical convergence.</p><p>In order to assess the performance of our method, we took small molecules such as water and methane as an example and considered the expectation value estimation for their electronic Hamiltonian and ground states. Calculating the variance of the energy expectation value for each molecule, we evaluated the number of measurements to suppress the amount of statistical fluctuation below the required accuracy (1 mHartree), which is then compared with the ones evaluated for the standard methods. The result is summarized in the following figures, which include the standard methods with basic implementation (No grouping) and with improvements by grouping mutually commuting Pauli strings (QWC and GC), for two ways of the measurement allocation to each of the measured quantities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/0*Xz0_WwWABNiExfhi" /></figure><p>The result tells that (1) the numbers of measurements can be generically reduced by several orders of magnitude in comparison with “No grouping”, (2) our method is generically better than “QWC” (grouping of qubit-wise commuting Pauli strings), (3) our method tends to be comparable with “GC” (grouping of general-commuting Pauli strings). We remark that the GC grouping requires more expensive quantum circuits [6] than our case, i.e., <em>O(N²)</em> (GC) vs. <em>O(N)</em> (ours) extra two-qubit gates in addition to the circuit for the wave function, and hence is more challenging to implement on noisy devices.</p><p>In summary, we proposed an alternative way for expectation value estimation, and demonstrated that our method can be more efficient than the standard methods in terms of statistical convergence. Our method can be incorporated in VQE as a subroutine, which may speed up VQE. The method can be applied to expectation value estimation of generic observables, and thus can be used in combination with variational quantum algorithms other than VQE. It is open to a wide range of applications.</p><p><strong>References and footnote</strong></p><p>[1] For review, see, e.g., Suguru Endo, Zhenyu Cai, Simon C. Benjamin, Xiao Yuan, “Hybrid Quantum-Classical Algorithms and Quantum Error Mitigation”, <em>J. Phys. Soc. Jpn. 90, 032001 (2021)</em>. [<a href="https://journals.jps.jp/doi/10.7566/JPSJ.90.032001">https://journals.jps.jp/doi/10.7566/JPSJ.90.032001</a>]</p><p>[2] M. Kohda, R. Imai, K. Kanno, K. Mitarai, W. Mizukami, and Y. O. Nakagawa, “Quantum expectation value estimation by computational basis sampling”, arXiv:2112.07416. [<a href="https://arxiv.org/abs/2112.07416">https://arxiv.org/abs/2112.07416</a>]</p><p>[3] Alberto Peruzzo, Jarrod McClean, Peter Shadbolt, Man-Hong Yung, Xiao-Qi Zhou, Peter J. Love, Alán Aspuru-Guzik, and Jeremy L. O’Brien, “A variational eigenvalue solver on a photonic quantum processor”, <em>Nat. Commun. 5, 4213 (2014)</em>. [<a href="https://www.nature.com/articles/ncomms5213">https://www.nature.com/articles/ncomms5213</a>]</p><p>[4] For instance, the number of the Pauli strings scales as <em>O(N⁴)</em> for a Hamiltonian of electronic state in a molecule, where <em>N</em> is the number of spin-orbitals or qubits. It is only polynomial in the system size, but can be numerically large, given a nominal target of quantum computations would be <em>N</em>≈100 or beyond.</p><p>[5] Jérôme F. Gonthier, Maxwell D. Radin, Corneliu Buda, Eric J. Doskocil, Clena M. Abuan, Jhonathan Romero, “Identifying challenges towards practical quantum advantage through resource estimation: the measurement roadblock in the variational quantum eigensolver”, arXiv:2012.04001. [<a href="https://arxiv.org/abs/2012.04001">https://arxiv.org/abs/2012.04001</a>]</p><p>[6] Pranav Gokhale, Olivia Angiuli, Yongshan Ding, Kaiwen Gui, Teague Tomesh, Martin Suchara, Margaret Martonosi, Frederic T. Chong, “Minimizing State Preparations in Variational Quantum Eigensolver by Partitioning into Commuting Families”, arXiv:1907.13623. [<a href="https://arxiv.org/abs/1907.13623">https://arxiv.org/abs/1907.13623</a>]</p><p>Written by Masaya Kohda.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=147b9bf02dc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computing the Green's function on near-term quantum computers]]></title>
            <link>https://qunasys.medium.com/computing-the-greens-function-on-near-term-quantum-computers-9c0111f1381?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c0111f1381</guid>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Mon, 22 Mar 2021 08:19:41 GMT</pubDate>
            <atom:updated>2021-03-22T08:57:15.191Z</atom:updated>
            <content:encoded><![CDATA[<h4>Methods to calculate an indispensable tool in quantum physics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKSQex3Ed8W775xDSGNY2w.png" /></figure><p><strong>Introduction</strong></p><p>For the past few years, we have witnessed the advent of near-term quantum computers, or noisy intermediate-scale quantum (NISQ) devices [1]. NISQ devices consist of several tens or hundreds of qubits that are not equipped with error correction and are prone to noise. Owing to these reasons, NISQ devices are not suitable for performing complicated quantum algorithms such as Shor’s algorithm for prime factorization. However, they still allow us to tackle problems that cannot be handled by classical computers and have been extensively studied by both researchers in academia and those in commercial companies.</p><p>One of the promising “killer applications” of NISQ devices can be found in the field of quantum chemistry and condensed matter physics, where researchers try to reveal the nature of molecules and solid materials based on quantum mechanics. While calculations by classical computers become exponentially time-consuming as the size of a target system increases, quantum computers can handle the system only in a polynomial amount of computational resources. This unique characteristic of quantum computers (and NISQ devices) attracts a lot of attention from the field of material research for various industrial purposes such as the development of batteries and organic electro-luminescence molecules.</p><p>Although a lot of methods have been developed aiming to leverage NISQ devices in investigating quantum systems, there has still been one missing building block: the Green’s function (GF). GF is a cornerstone to understanding quantum systems and tells us a variety of properties of them. For example, GF informs us of what kinds of excitations are present in the target system, which is the clue to predict how the system responds to an external field such as electric field and heat. Despite its importance, however, the NISQ-friendly methods for calculating GF had barely been developed before Ref. [2].</p><p><strong>Methods to calculate Green’s function on near-term quantum computers</strong></p><p>In Ref. [2], methods for calculating Green’s function on near-term quantum computers were proposed by Suguru Endo, Iori Kurata (former interns at QunaSys Inc.), and Yuya O. Nakagawa (Lead researcher at QunaSys Inc.). In that work, two different approaches were proposed. The first approach makes use of the variational quantum simulation (VQS) algorithms [3] to calculate GF directly, while the second approach adopts the so-called Lehmann representation of GF with the subspace-search variational quantum eigensolver (SSVQE) [4] or the multistate-contracted variational quantum eigensolver (MCVQE) [5].</p><p>Let us introduce a definition of GF (in the simplest form)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*iNnrVTZfrjzHPR0WjjQRdA.png" /></figure><p>, where <em>H</em> is the Hamiltonian of the system,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/75/1*P5mxKCBzhyXUGOw1uOc2MQ.png" /></figure><p>is the annihilation (creation) operator of electrons at site <em>i</em>, and |G〉 is the ground state of the system.</p><p>For a given initial state |<em>Φ</em>〉 and an ansatz quantum circuit <em>U</em>(<strong><em>θ</em></strong>) (realized on NISQ devices), the original VQS algorithm finds optimal parameters <strong><em>θ</em></strong>* such that <em>U</em>(<strong><em>θ</em></strong>*)|<em>Φ</em>〉becomes the closest to the time-evolved state</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/84/1*NUaTo1gW3BqEd2UbfAKZfg.png" /></figure><p>Naive application of the original VQS to the calculation of GF requires the circuit depicted in Fig. 1. This circuit contains two controlled-U gates that should be very complicated and are not expected to run on NISQ devices.</p><p>The authors of Ref. [2] extended VQS such that <em>U</em>(<strong><em>θ</em></strong>*)|<em>Φ</em>&gt; and <em>U</em>(<strong><em>θ</em></strong>*)<em>P</em>|<em>Φ</em>&gt; simultaneously approximate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/106/1*c510tsSk_QQOWwiH0V90uA.png" /></figure><p>and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/98/1*d2YbcRCPdWCITGERRAM0ow.png" /></figure><p>, where <em>P</em> is some Pauli-gate. The quantum circuit to evaluate GF by using the extended VQS technique is shown in Fig. 2. A variational circuit <em>U</em>(<strong><em>θ</em></strong>(<em>t</em>)) which simultaneously approximates the time evolution operator for the initial states |G⟩ and P_j |G⟩ is constructed, instead of two different controlled-unitary operations. This circuit may be feasible on NISQ devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ur_V22zYaw5CuwDL" /><figcaption>Fig. 1. The direct approach to calculate GS by the VQS algorithm. The upper and the lower horizontal lines represent the ancillary qubit and the qubits for the system of interest. The ground state is generated as |GS〉=U_G|φ_0〉. When Φ=0 (π/2), the real (imaginary) part of GF is evaluated. Adapted from Ref. [2]. For the details, please refer to Fig. 1. of Ref. [2].</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*YUtBIdzQFBPXHfneA6jiIw.png" /><figcaption>Fig. 2. The extension of the VQS algorithm indicated in FIg. 1. Again, the upper and the lower horizontal lines represent the ancillary qubit and the qubits for the system of interest. U(θ) is the parametrized unitary circuit. Adapted from Ref. [2]. For the details, please refer to Fig. 2. of Ref. [2].</figcaption></figure><p>On the other hand, when we calculate GF by the second approach based on SSVQE or MCVQE, we utilize the spectral function representation of GF, or the Fourier transform of GF, defined as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*H1Yeqg_cb2w7er4ToVJZWw.png" /></figure><p>where E_G is the energy of the ground state and E_n is the n-th excited state.</p><p>SSVQE and MCVQE yield energies of the ground state and excited states as well as their transition amplitudes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*uqVT6r1h-ajw_kQCzBP0ag.png" /></figure><p>, so simply plugging in those values obtained by SSVQE and MCVQE into the equation above is enough to calculate the spectral function representation of GF.</p><p><strong>Feasibility estimation for two-dim. Hubbard model of 25 site</strong></p><p>The authors also provided the resource estimation to calculate GF of the two-dimensional Hubbard model of 25 sites, which is almost impossible to solve exactly by classical computers. According to the estimation, the acceptable fidelity of two-qubit gate operations is 0.1% to calculate GF with the method based on VQS (the first approach) under some assumptions. This value of the fidelity is within the reach of the state-of-the-art NISQ devices [6].</p><p><strong>Summary and outlook</strong></p><p>In summary, the methods for calculating GF on near-term quantum computers were proposed by researchers at QunaSys Inc. and collaborators. Since GF is vital to exploring quantum systems, various applications of the methods are expected. For example, they can be used as the solver for the hybrid approach of dynamical mean-field theory [7] or slave boson methods [8] for strongly correlated systems, which are notoriously difficult to be tackled with classical computers. The methods to calculate GF on NISQ devices will broaden our horizon of quantum computing and consequently engineering applications, widening our understandings of more complicated electron systems.</p><p>Written by Reika Fujimura and Yuya O. Nakagawa.</p><p><strong>Reference</strong></p><p>[1] <a href="https://quantum-journal.org/papers/q-2018-08-06-79/">J. Preskill, “Quantum Computing in the NISQ era and beyond”, <em>Quantum</em> <strong>2</strong>, 79 (2018).</a></p><p>[2] <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.2.033281">S. Endo, I. Kurata, and Y. O. Nakagawa, “Calculation of the Green’s function on near-term quantum computers” , <em>Phys. Rev. Research</em> <strong>2</strong>, 033281 (2020).</a></p><p>[3] <a href="https://journals.aps.org/prx/abstract/10.1103/PhysRevX.7.021050">Y. Li and S. C. Benjamin, “Efficient Variational Quantum Simulator Incorporating Active Error Minimization”, <em>Phys. Rev. X</em> <strong>7</strong>, 021050 (2017).</a></p><p>[4] <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.1.033062">K. M. Nakanishi, K. Mitarai, and K. Fujii, “Subspace-search variational quantum eigensolver for excited states”, <em>Phys. Rev. Research</em> <strong>1</strong>, 033062 (2019).</a> See also <a href="https://qunasys.medium.com/quantum-algorithm-for-calculating-electronically-excited-states-of-molecules-39fa092f2c61">this blog post</a>.</p><p>[5] <a href="https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.122.230401">R. Parrish <em>et al</em>., “Quantum Computation of Electronic Transitions Using a Variational Quantum Eigensolver”, <em>Phys. Rev. Lett.</em> <strong>122</strong>, 230401 (2019).</a></p><p>[6] <a href="https://www.nature.com/articles/s41586-019-1666-5">F. Arute <em>et al.</em>, “Quantum supremacy using a programmable superconducting processor”, <em>Nature</em> <strong>574</strong>, 505–510 (2019).</a></p><p>[7] <a href="https://journals.aps.org/prx/abstract/10.1103/PhysRevX.6.031045">B. Bauer <em>et al.</em>, “Hybrid Quantum-Classical Approach to Correlated Materials”, Phys. Rev. X 6, 031045 (2016).</a></p><p>[8] <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.3.013184">Y. Yao <em>et al.</em>, “Gutzwiller Hybrid Quantum-Classical Computing Approach for Correlated Materials”, Phys. Rev. Research <strong>3</strong>, 013184 (2021).</a></p><p><em>QunaSys keeps developing efficient quantum algorithms to accelerate various applications of quantum computers. Our mission is to enthusiastically develop technologies that bring out the maximum potential of quantum computers and to continually deliver innovations to society.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c0111f1381" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum machine learning of quantum data with NISQ devices]]></title>
            <link>https://qunasys.medium.com/quantum-machine-learning-of-quantum-data-with-nisq-devices-13ef42943d0a?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/13ef42943d0a</guid>
            <category><![CDATA[quantum-computer]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Mon, 15 Feb 2021 02:17:52 GMT</pubDate>
            <atom:updated>2021-02-15T02:17:52.136Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learning wavefunctions of molecules in quantum chemistry</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wHAGmRanyUxe_Lm_P2OL-A.jpeg" /></figure><p><strong>Introduction: the advent of quantum computers and machine learning</strong></p><p>For some problems in physical science, we need to take care of <em>quantum</em> information to compute or simulate target physics because it is described by quantum mechanics. In most cases, however, it is hard to handle such quantum information on <em>classical</em> computers. Given that, it is natural to think of processing quantum information as it is by a <em>quantum</em> computer, like Feynman’s famous quote, “Nature isn’t classical, dammit, and if you want to make a simulation of nature, you’d better make it quantum mechanical”[1]. Today, we are witnessing the realization of prototypical digital quantum computers; quantum devices consisting of hundreds to thousands of non-fault tolerant qubits (<em>quantum</em> <em>bits</em>), the so-called noisy intermediate-scale quantum (NISQ) devices, have been developed rapidly in the past few years. Some commercial companies start providing access to their early-stage NISQ devices to their customers, although the devices seem still too small and noisy to execute any industrially-competitive tasks.</p><p>Meanwhile, the rapid growth of machine learning algorithms has been applied to various fields in physical science, allowing us to solve problems that have no analytical solution and require a huge amount of computational resources even with numerical methods. So, even though the allowed computations on the NISQ devices are quite limited, combining machine learning algorithms with the quantum devices may circumvent such computational burdens for solving quantum problems, and they may accelerate the applications of the NISQ devices to reach the industrial level.</p><p><strong>Background: solving quantum chemistry by a quantum machine</strong></p><p>Quantum chemistry, which studies properties of chemical materials based on quantum mechanics, is one of those fields with wide applications of machine learning. The main task of quantum chemistry is to solve the Schrödinger equation, a fundamental equation of quantum mechanics, to predict various chemical phenomena such as chemical reactions. Although many computational methods for solving the equation on classical computers have been developed for decades, they often require gigantic computational resources, which prevent us from investigating many interesting and industrially-important processes such as photo-excitation dynamics of molecules.</p><p>One of the promising ways to make use of the NISQ devices for quantum chemistry is the so-called variational quantum eigensolver (VQE), which is a variational algorithm finding the ground state (the most stable state) of a given quantum system [2]. The key idea of the VQE is to combine a programmable and parametrized quantum circuit implemented on the NISQ devices with a classical optimization technique. By optimizing the quantum circuit classically, the VQE algorithm can find the ground state of the system with only a shallow quantum circuit that is presumably executable even on the NISQ devices.</p><p>The ground state does not describe the whole physics of the quantum system, but the excited states are also essential to analyze it. Nonetheless, even though extensions of the VQE to find excited states have been proposed recently by several researchers [3], they usually require a larger number of runs of the quantum circuit than the VQE does, and therefore it is not so easy to run them on the real NISQ devices.</p><p><strong>Our proposal: machine learning of &quot;quantum&quot; data</strong></p><p>To present another approach to find the excited states of quantum systems, Hiroki Kawai (a former intern at QunaSys Inc.) and Yuya O. Nakagawa (a lead researcher at QunaSys Inc.) proposed a simple quantum machine learning scheme, or a machine learning algorithm utilizing a quantum computer [4]. Their proposal aims to learn physical quantities from <em>quantum data</em>. Its capability was demonstrated to predict the properties of electronic excited states of small molecules. The model is trained with supervised machine learning from only its ground state wavefunction realized as a qubit state on the NISQ devices. It has the following distinct features:</p><p>・It learns wavefunctions of the target system that are &quot;quantum&quot; data. Most quantum machine learning algorithms treat classical data such as text, images, etc., and have the difficulty of encoding classical data in quantum states on quantum computers. Learning from quantum data is a natural setup of performing quantum machine learning, and there is no overhead in encoding the data into quantum states because the data are already quantum.<br>・Quantum information should give a more accurate description of the molecular system than classical information, which is so far used for classical machine learning methods applied to quantum chemistry. <br>・ It reduces the cost of finding the excited states because it only requires the quantum data of the ground state obtained by the usual VQE whose resource requirements are less than finding the excited states by the extensions of the VQE.<br>・It may be executable on the NISQ devices since the required circuit depth is shallow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GBdQ1UmJZl_7031P-DX7iQ.png" /><figcaption>Figure 1. Schematic diagram of our model.<br>|ψ&gt; is the input state (the ground state of a molecular Hamiltonian in our setup). U_ent is the quantum reservoir. The gauges indicate single-qubit measurements from which one obtains the classical vector <strong>x,</strong> and the vector is fed into the machine learning unit <em>f</em> with weights W.</figcaption></figure><p>Let us describe the details of the algorithm. As well as the VQE, it has both the quantum and classical parts (Fig. 1). First, we input a quantum state that is the ground state of the target Hamiltonian, which is computed by the VQE beforehand. The quantum part consists of a random quantum circuit called <em>quantum reservoir</em> (specified as U_ent in Fig. 1) and the single-qubit Pauli measurements. The reservoir, which can be any kind of random quantum circuit and is fixed during the learning, increases the entanglement of the input quantum state so that one can obtain non-local information from only the measurements of the local, single-qubit Pauli operators (we note that quantum reservoir was introduced in [5]). The measurements in the quantum part of the algorithm give a 3<em>N</em>-dimensional classical real-valued vector</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QyeT_ZnmxjHw8ADoH8_e_A.png" /></figure><p>where <em>N</em> is the number of qubits. Conducting only the single-qubit Pauli measurements makes it easy to implement the algorithm on the near-term NISQ devices. Moreover, as few as three different circuits are needed to obtain the vector <strong>x</strong> since the single-qubit operators acting on different qubits commute with each other, and hence the measurements of them can be performed simultaneously. After obtaining the classical vector, the algorithm proceeds to the classical part which is a simple classical machine learning unit, e.g. linear regression. The classical machine learning unit is trained to predict the excited-state properties of the target Hamiltonian from this vector <strong>x</strong>. More details can be found in the original paper [4].</p><p><strong>Numerical Results</strong></p><p>In [4], numerical simulations for small molecules (LiH and H_4) with various geometric structures were performed to demonstrate the applicability of the method to problems in quantum chemistry.</p><p>The Hamiltonians for electronic states of the two molecules are considered. The first and second excited energies of the Hamiltonian and the transition dipole moment from the ground state to the first excited state are chosen as the target excited-state properties that the proposed algorithm seeks to predict from the ground state wavefunctions. The authors numerically simulated two situations; one is the <em>noiseless</em> situation, where the ideal outputs from the quantum circuits are available, and the other is the <em>noisy</em> situation, where the quantum circuit has noise and the measurement results have statistical and systematic errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*nI8sCQKSLabSYuuE1zDmtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*ce3CxTnlN2PP_pkQ1jFbLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*bSGBzgt795uXFnATcgmNhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*jzPTpXS66por3VdWilBryw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*iAuddbgUBxOsqn5JhlttaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*Kgg7s7XG99MQc2VOgrAuRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*hlVvHrg2kvIPrsIiGtBqAw.png" /><figcaption>Figure 2. The prediction results by the trained model for LiH with various bond lengths for the noiseless simulations (top row) and the noisy simulations (bottom row). The left, center, right columns present the results for the 1st excitation energy, the 2nd excitation energy, and the transition dipole moment, respectively. AE represents the absolute error between the predictions and the exact values, and MAE does the mean of AE.</figcaption></figure><p>The prediction results for the LiH molecule as an example are shown in Fig. 2. We can see that the proposed algorithm predicts the exact values of the excited-state properties with high precision for the noiseless cases. Even in noisy cases resembling the actual NISQ devices, it reproduces the approximative values.</p><p><strong>Conclusion</strong></p><p>In conclusion, Kawai and Nakagawa introduced a new quantum machine learning scheme for predicting the excited-state properties of a molecular Hamiltonian from its ground state wavefunction. It consists of a random quantum circuit called a quantum reservoir and a simple classical machine learning unit. The numerical simulations demonstrated that it can accurately predict the target excited-state properties and has the potential to be implemented on a near-term NISQ device. Although numerical demonstrations were performed only for the small molecules, we expect that it is applicable to larger molecules appearing in more practical applications in quantum chemistry and material science in the future.</p><p><strong>References</strong></p><p>[1] Feynman R P, <a href="https://doi.org/10.1007/BF02650179">International Journal of Theoretical Physics <strong>21</strong> 467–488 (1982) </a><br>[2] Peruzzo A, McClean J, Shadbolt P, Yung M H, Zhou X Q, Love P J, Aspuru-Guzik A and O’Brien J L, <a href="https://www.nature.com/articles/ncomms5213">Nature Communications <strong>5</strong> 4213 (2014)</a> <br>[3]<br>McClean J R, Kimchi-Schwartz M E, Carter J and de Jong W A, <a href="https://journals.aps.org/pra/abstract/10.1103/PhysRevA.95.042308">Phys. Rev. A <strong>95</strong>,<strong> </strong>042308 (2017)</a>,<br>Colless J I, Ramasesh V V, Dahlen D, Blok M S, Kimchi-Schwartz M E, McClean J R, Carter J, de Jong W A and Siddiqi I, <a href="https://journals.aps.org/prx/abstract/10.1103/PhysRevX.8.011021">Phys. Rev. X <strong>8</strong>, 011021 (2018)</a>,<br>Nakanishi K M, Mitarai K and Fujii K, <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.1.033062">Phys. Rev. Research <strong>1,</strong> 033062 (2019)</a>, see also <a href="https://qunasys.medium.com/accelerate-quantum-computation-from-a-classical-approach-b8b95813063c">this blog post</a>,<br>Parrish R M, Hohenstein E G, McMahon P L and Martınez T J, <a href="https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.122.230401">Phys. Rev. Lett. <strong>122</strong>,<strong> </strong>230401 (2019)</a>,<br>Higgott O, Wang D and Brierley S, <a href="https://quantum-journal.org/papers/q-2019-07-01-156/">Quantum <strong>3</strong> 156 (2019)</a>,<br>Jones T, Endo S, McArdle S, Yuan X and Benjamin S C, <a href="https://journals.aps.org/pra/abstract/10.1103/PhysRevA.99.062304">Phys. Rev. A <strong>99</strong> 062304 (2019)</a>,<br>Ollitrault P J, Kandala A, Chen C F, Barkoutsos P K, Mezzacapo A, Pistoia M, Sheldon S,Woerner S, Gambetta J and Tavernelli I, <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.2.043140">Phys. Rev. Research <strong>2</strong>, 043140 (2020)</a>,<br>Tilly J, Jones G, Chen H, Wossnig L and Grant E, <a href="https://journals.aps.org/pra/abstract/10.1103/PhysRevA.102.062425">Phys. Rev. A <strong>102</strong>, 062425 (2020)</a><br>[4] Kawai H and Nakagawa Y O, <a href="https://iopscience.iop.org/article/10.1088/2632-2153/aba183"><em>Mach. Learn.: Sci. Technol.</em> <strong>1,</strong> 045027 (2020)</a>[5] Fujii K and Nakajima K, <a href="https://journals.aps.org/prapplied/abstract/10.1103/PhysRevApplied.8.024030">Phys. Rev. Applied <strong>8</strong>, 024030 (2017)</a></p><p>Written by Hiroki Kawai and Yuya O. Nakagawa.</p><p><em>QunaSys keeps developing efficient quantum algorithms to accelerate various applications of quantum computers. Our mission is to enthusiastically develop technologies that bring out the maximum potential of quantum computers and to continually deliver innovations to society.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13ef42943d0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Calculating derivatives of molecular electronic energy on a quantum computer]]></title>
            <link>https://qunasys.medium.com/calculating-derivatives-of-molecular-electronic-energy-on-a-quantum-computer-297f1780b016?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/297f1780b016</guid>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Mon, 30 Nov 2020 02:33:29 GMT</pubDate>
            <atom:updated>2020-11-30T02:34:47.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RGq3KXvqFO7hyBlnPeY5fQ.png" /></figure><p>While classical computers have bits representing either 0 or 1 values, quantum computers have <em>qubits</em> which provide arbitrary superposition of the bases |0〉and |1〉of quantum states. This intrinsic difference forms the powerfulness of quantum computers overwhelming classical computers. Though the quantum computer’s full potential is still in progress, we are now in the first stage where the so-called NISQ (Noisy Intermediate-Scale Quantum) devices are available. NISQ devices can operate only the limited number of algorithms for quantum computers, or quantum algorithms, because the error in their qubits prevents us from executing the complicated quantum algorithms. In the coming 3–5 years, we will need efficient quantum algorithms to explore the quantum advantage with NISQ devices having 50 to a few hundred qubits.</p><p>One of the most practical applications of quantum computers is expected to happen in quantum chemistry. This is because simulating molecules based on quantum mechanics requires exponential computational resources with increasing the number of atoms in molecules on classical computers, whereas it does polynomial on quantum computers. In particular, an algorithm called variational quantum eigensolver (VQE) [1] was designed to find energies of a target molecule and has shown its potential to run on real NISQ devices.</p><p>The VQE enables us to calculate electronic energies of molecules. When analyzing molecules in quantum chemistry, however, the derivatives of the energies with respect to some parameters defining the system are also essential. For example, the derivative with respect to the nuclear coordinates of the molecules gives the force acted on them. The force is utilized in various ways, such as determining the most stable molecular structure, elucidating chemical reaction paths, and performing molecular dynamics simulations. Another example is the derivative with respect to the external electric or magnetic fields, which tells us the spectroscopic properties of the molecules when they are irradiated by light.</p><p>There are two ways to obtain the energy derivatives in quantum chemistry. One is to use the finite-difference method, where we compute the derivatives at two proximate points and calculate the difference numerically. The other is the analytical approach, where we employ some analytical formulas for the derivative. The former is always applicable without any prior knowledge of the method to calculate the energies but vulnerable to the noise in the calculated energies. Since NISQ devices contain inevitable noises in their outputs, the analytical method is more practical in the current quantum age.</p><p>In 2019, two groups independently proposed methods to calculate analytical energy derivatives based on the VQE and applicable to NISQ device [2,3]. One was from Kosuke Mitarai (assistant professor at Osaka University &amp; CSO at QunaSys Inc.), Yuya O. Nakagawa (lead researcher at QunaSys Inc.), and Wataru Mizukami (associate professor at Osaka University) in Japan [2]. They showed analytical formulas to calculate the derivatives of the energy obtained by the VQE, up to the third-order derivatives. They explicitly provided quantum circuits and ways of measurements to determine the quantities appearing in those formulas. All procedures in the proposed method require shallow (not-complicated) quantum circuits and are expected to be feasible on real NISQ devices. It is worthwhile to note that the proposed method can be applied to the derivative of excited-state energy, which is more difficult to calculate with classical computers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEpwzKRQDS1sIBesSJpwhw.png" /><figcaption>Main formulas for the first-order and second-order derivatives in [2]. All quantities in the formulas can be obtained by running quantum circuits and measuring qubits on NISQ devices.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eOb2UymUfpgAa_gsRSvnRw.png" /><figcaption>Equation which determines the quantity appearing in the formula for the second-order derivative above.</figcaption></figure><p>On the other hand, Tom O’Brien at Leiden University (currently also at Google Inc.) and his colleagues proposed a different method to evaluate the analytical energy derivatives on quantum computers [3]. The formula for the first-order derivative is the same as the method in Mitarai’s work, but the formulas for the second- and higher-order derivatives are based on the so-called sum-over-state approach that requires transition amplitudes involving all excited states in the system. In practice, the summation over all the excited states is truncated at the finite number of the states, and the error is introduced in the formals in a rigorous sense. Compared with Mitarai’s proposal, O’Brien’s work does not suffer from the classical computational cost related to the number of circuit-parameters used for the VQE, with a trade-off to the necessity to calculate the excited states even for evaluating the derivatives of the ground-state energy. In addition to the theoretical proposal, the authors of [3] did an experiment to calculate the first-order derivate of energy with respect to the nuclear displacements on a two-qubit superconducting device and illustrated they could perform the geometry optimization of hydrogen molecule based on that derivative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wf9IOQKGHYtWeX1C-mk62w.png" /><figcaption>Main formula for the second-order derivative in [3]. The formula for the first-order derivative is the same as [2]. “j” represents the energy level and runs all excited states.</figcaption></figure><p>The energy derivatives are universally used in the calculation of the properties of molecules. The proposals explained in this blog post open up the further possibility to take advantage of NISQ devices as we approach the quantum-computer era. With the simultaneous development of the hardware of quantum computers and new quantum algorithms to exploit them, we are looking forward to more and more practical applications of quantum computers to calculations in quantum chemistry, which would eventually outperform classical computers.</p><p><strong>References</strong></p><p>[1] A. Peruzzo, J. McClean, P. Shadbolt, M.-H Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien. “A variational eigenvalue solver on a photonic quantum processor.” Nat. Commun. 5, 4213 (2014). <a href="https://www.nature.com/articles/ncomms5213">[link]</a></p><p>[2] K. Mitarai, Y. O. Nakagawa, and W. Mizukami. “Theory of analytical energy derivatives for the variational quantum eigensolver.” Phys. Rev. Research <strong>2</strong>, 013129 (2020). <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.2.013129">[link]</a></p><p>[3] T. E. O’Brien, B. Senjean, R. Sagastizabal, X. Bonet-Monroig, A. Dutkiewicz, F. Buda, L. DiCarlo, and L. Visscher. “Calculating energy derivatives for quantum chemistry on a quantum computer.” npj Quantum Inf. <strong>5</strong>, 113 (2019). <a href="https://www.nature.com/articles/s41534-019-0213-4">[link]</a></p><p>Written by Youyuan Zhang and Yuya O. Nakagawa.</p><p><em>QunaSys keeps developing efficient quantum algorithms to accelerate various applications of quantum computers. Our mission is to enthusiastically develop technologies that bring out the maximum potential of quantum computers and to continually deliver innovations to society.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=297f1780b016" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comprehensive approach for resolving energy spectrum with symmetry using a quantum computer]]></title>
            <link>https://qunasys.medium.com/comprehensive-approach-for-resolving-energy-spectrum-with-symmetry-using-a-quantum-computer-27c83ced709f?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/27c83ced709f</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[nisq]]></category>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 03:18:39 GMT</pubDate>
            <atom:updated>2021-03-10T02:44:59.054Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pilhH7M7NGy2qMge0nhNzQ.jpeg" /></figure><p>“Symmetry” appears everywhere in modern physics, and it plays a significant role in understanding various properties of a quantum system. When a quantum system has symmetry, the energy spectrum/states of the system can be classified according to the symmetry; it is known that the symmetry introduces a conserved quantity <em>C</em> (an observable) in a quantum system, and an eigenvalue <em>c</em> of <em>C</em> stipulates a category of symmetry. It is demanding to predict what energies/states appear in each category of symmetry. In quantum chemistry, for example, it is known that light absorption and luminescence only occur among states residing in a certain symmetric category. Thus, to understand photochemical properties of molecules, it is essential to analyze the energies/states of the molecules based on their symmetry.</p><p>Meanwhile, a near-term quantum computer called a noisy intermediate-scale quantum (NISQ) device has been recently developed. A NISQ device has been getting attraction as the first step to the realization of more powerful quantum computers. In particular, a NISQ device is expected to simulate a large-sized quantum system that is hard to compute with classical computers. The variational quantum eigensolver (VQE) is a promising algorithm for a NISQ device to compute the ground state and its energy. The VQE utilizes a parametrized quantum circuit <em>U</em>(<strong><em>θ</em></strong>),<em> an ansatz circuit</em>, to generate a trial state |<em>ψ</em>(<strong><em>θ</em></strong>)〉 := <em>U</em>(<strong><em>θ</em></strong>)|0〉, <em>an ansatz state</em>. We minimize the expectation value of the Hamiltonian for the ansatz state〈<em>ψ</em>(<strong><em>θ</em></strong>)|<em>H</em>|<em>ψ</em>(<strong><em>θ</em></strong>)〉as a cost function with respect to the parameters <strong><em>θ </em></strong>to obtain the ground-state energy.</p><p>With the growing attention toward a NISQ device, it is suggested to compute energies/states of a given quantum system in the desired category of symmetry by utilizing the modified version of the VQE [1,2], which we call the <em>constrained VQE</em> referring to Ref. [2]. In the constrained VQE, we penalize the deviation of the ansatz state from the desired category to obtain such energies/states with the desired symmetry. More specifically, the following two types of cost functions have been proposed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*4npxet0ML_Ey_uj8" /></figure><p>where <em>C</em> is a conserved quantity, <em>c</em> is the desired eigenvalue of <em>C</em>, and the coefficient <em>μ</em>, which is called the penalty coefficient, represents the magnitude of the penalty in the cost function. By minimizing those cost functions with respect to <strong><em>θ</em></strong>, we may obtain the optimal parameter <strong><em>θ</em>*</strong> that yields a state |<em>ψ</em>(<strong><em>θ*</em></strong>)&gt; belonging to the desired category of symmetry. For example, if we want to compute the energy of the so-called S1 state (the first excited state of singlet) of a hydrogen molecule H2, we consider the electron number operator <em>N</em>, the total spin squared operator <em>S²</em>, and the <em>z</em>-component of spin operator <em>S_z </em>as conserved quantities<em> C</em> and designate the desired category as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/213/1*NBw0DCWBC15xIUa-GMaegg.png" /></figure><p>However, several serious problems prevent practical applications of the constrained VQE. First, the penalty coefficient <em>μ</em> is heuristically chosen without solid theoretical analysis. If the coefficient <em>μ</em> is too small, we may have wrong results; on the other hand, if <em>μ </em>is too large, the optimization may not be completed properly. Currently, there is no guarantee that we can obtain energies/states with the desired symmetry as a result of the VQE. Second, the performance of the two types of penalties has not been compared, leading to the inconsistent use of the two cost functions without any evidence.</p><p>In 2020, Kohdai Kuroiwa (an intern at QunaSys Inc.) and Yuya O. Nakagawa (a lead researcher at QunaSys Inc.) provided an extensive analysis of the constrained VQE to solve these problems [3]. They theoretically investigated the two types of penalties in the constrained VQE and disclosed crucial differences between them.</p><p>First, for the function</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/68/1*cCspKuV6ljiMRMiXqogvoQ.png" /></figure><p>they constructed a simple formula to determine the penalty coefficient with which we can certainly obtain the desired energies/states as a result of the optimization. Conceptually, the formula is constructed by considering the condition that the sum of the expectation energy and the penalty term becomes the smallest for the desired state. Letting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*R7MWdMPELZzTcV-nPKTWcg.png" /></figure><p>be the ground-state energy and the target-state energy of the Hamiltonian <em>H</em>, respectively, and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/40/1*6s1D9F25r1ruTu4lIxQEaQ.png" /></figure><p>be the smallest gap among distinct eigenvalues of <em>C</em>, we have the following formula for the penalty coefficient <em>μ</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/0*JSHKASQSGSQra2hN" /></figure><p>On the other hand, remarkably, they revealed that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/63/1*ocaAItQOurcnnkt08TglAA.png" /></figure><p>does not properly work for any finite value of the penalty coefficients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/0*-4fDcwtGXji3HX_o" /><figcaption>Figure 1</figcaption></figure><p>Here, we show the graphical understanding of the reason why</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/63/1*ocaAItQOurcnnkt08TglAA.png" /></figure><p>does not perform well in Figure 1. In the figure, we hypothetically consider an orthogonal coordinate plane consisting of the expectation values of <em>H</em> and the expectation values of <em>C</em>. A state is mapped to a point on the plane by considering the expectation values of <em>H</em> and <em>C </em>for the state.<em> </em>The black points represent the energy eigenstates of <em>H</em>, and the coordinates of the black points express the eigenvalues of <em>H</em> and <em>C</em> for the eigenstates. The cyan convex polygon corresponds to all the possible points achievable by an ansatz state. The colored curves (yellow, green, and pink) are the contours of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/63/1*ocaAItQOurcnnkt08TglAA.png" /></figure><p>with small, medium-sized, and large penalty coefficients <em>μ</em>. In the procedure of the constrained VQE, the point where the curve touches the polygon is regarded as the optimized quantum state. If the desired point (the desired state) is on the boundary of the polygon (the bluepoint; desired point 1), the optimized point (the tangent point) approaches the desired point but never achieves it in a rigorous sense. On the other hand, if the desired point is in the polygon (the red point; desired point 2), it cannot be the tangent point, and the optimization yields a completely wrong result.</p><p>Furthermore, numerical simulations validated these theoretical analyses. The authors of [3] considered a hydrogen chain H4 where four hydrogen atoms are aligned in line with the identical bond distance 2.0 Å. The STO-3G minimal basis set was adopted to construct an 8-qubit Hamiltonian for electronic states. They computed the energy of T1 state (the ground state of triplet) by setting <em>S</em>² = 2 and <em>S_z</em> = -1 as conserved quantities. They simulated the constrained VQE with the two cost functions having a range of penalty coefficients, <em>μ</em> = 0.01, 0.1, 1, 10, 100. The results are shown in Table 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*Qa2GgV8nLfBBP1dg" /><figcaption>Table 1</figcaption></figure><p>In the table, the “residuals” represents the difference between the energy expectation value for the resulting optimized state and that for the desired energy (-1.881 876 Ha) in Hartree (Ha). The result of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/63/1*eszdfKR5rd6630TxZvpM0g.png" /></figure><p>with</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/177/1*sGH6C0nXGLEYG41VygZjoQ.png" /></figure><p>indicates that the formula leads to the correct value. Note that for large <em>μ </em>(<em>μ </em>= 10,100), the results of the optimization of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/63/1*eszdfKR5rd6630TxZvpM0g.png" /></figure><p>deviate from the correct value. Thus, the formula in [3] provides an appropriate penalty coefficient to ensure that we obtain the desired value. On the other hand, the accuracy of the result of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/63/1*ocaAItQOurcnnkt08TglAA.png" /></figure><p>is poor for small <em>μ</em> and improves as<em> μ</em> becomes large, which is consistent with the aforementioned graphical explanation. More details and other simulations are shown in the original paper [3].</p><p>In conclusion, the analyses of penalties in the constrained VQE revealed the fundamental difference between the performances of the two cost functions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/178/1*qIhDLnFWA-ljvT361rgYBQ.png" /></figure><p>The inconsistent and heuristic use of the two cost functions will be terminated due to the theoretical superiority of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/177/1*zm-TVxBuegu885RzMzvdHw.png" /></figure><p>and the formula to determine the appropriate penalty coefficient. Thanks to the generality of their theoretical analysis, the results have a significant impact on many fields of quantum physics and encourage further investigation for exploiting NISQ devices with the constrained VQE.</p><p><strong>References</strong></p><p>[1] J. R. McClean et al., “The theory of variational hybrid quantum-classical algorithms”, <a href="https://iopscience.iop.org/article/10.1088/1367-2630/18/2/023023">New Journal of Physics, vol. 18, (2), pp. 023023, 2016.</a></p><p>[2] I. G. Ryabinkin, S. N. Genin and A. F. Izmaylov, “Constrained Variational Quantum Eigensolver: Quantum Computer Search Engine in the Fock Space”, <a href="https://pubs.acs.org/doi/abs/10.1021/acs.jctc.8b00943">Journal of Chemical Theory and Computation, vol. 15, (1), pp. 249–255, 2019.</a></p><p>[3] K. Kuroiwa and Y. O. Nakagawa, “Penalty methods for variational quantum eigensolver”, <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.3.013197">Phys. Rev. Research <strong>3</strong>, 013197 (2021)</a></p><p>Written by Kohdai Kuroiwa and Yuya O. Nakagawa.</p><p><em>QunaSys keeps developing efficient quantum algorithms to accelerate various applications of quantum computers. Our mission is to enthusiastically develop technologies that bring out the maximum potential of quantum computers and to continually deliver innovations to society.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27c83ced709f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing important industrial problems with Honeywell’s Ion-Trap quantum computer]]></title>
            <link>https://qunasys.medium.com/testing-important-industrial-problems-with-honeywells-ion-trap-quantum-computer-3398d0af14b2?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3398d0af14b2</guid>
            <category><![CDATA[honeywell]]></category>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Mon, 02 Nov 2020 03:10:07 GMT</pubDate>
            <atom:updated>2020-11-02T03:45:50.375Z</atom:updated>
            <content:encoded><![CDATA[<h4>Calculating transition amplitudes of Azobenzene isomers using Honeywell System Model HØ</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*5DhEhB2Cix_BQPRBkjU5LQ.png" /><figcaption>Figure 1. A photograph of Honeywell’s trapped-ion based quantum computing system. [<a href="https://www.honeywell.com/en-us/newsroom/news/2020/06/the-worlds-highest-performing-quantum-computer-is-here">source</a>]</figcaption></figure><p>In June 2020, Honeywell became the first to commercially offer a quantum computer achieving a Quantum Volume of 64, with the launch of their System Model HØ. Following Honeywell’s announcement, we at QunaSys started thinking about what we could do with the world’s most powerful quantum computer?</p><p>In cooperation with Honeywell, we designed an experiment to calculate the photochemical response of an organic molecule, namely azobenzene, using the 6-qubit Honeywell quantum computer System Model HØ, as shown in Figure 1. Our results show a much higher level of accuracy than a typical superconducting quantum computer. The details of the results are as follows.</p><h3>Oscillator strength of azobenzene</h3><p>The most interesting property of azobenzene is the isomerization between trans- and cis- isomers, which can be switched by light. Based on this photo switch mechanism, azobenzene compounds are expected to have various applications, such as photopatterning, data storage, microfluid control, and drug release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*WfwfZvJtnizH0OOobpCbZA.png" /><figcaption><em>Figure 2. The transition between the isomers of azobenzene is controlled by light response, which can be calculated by oscillator strength.</em></figcaption></figure><p>Generally when a molecule is irradiated by light, its electrons transition from the ground state to a higher energy state as a consequence, with some probability. The oscillator strength is the key physical property in determining this probability. We can use this property to calculate the population of excited states, which can then be used to evaluate the likelihood of the isomerization. Calculating the oscillator strength requires a quantum computer to have high accuracy since it needs to prepare superpositions of multiple energy-eigenstates, even if we use a proprietary hardware-friendly method (see the last section for details). Therefore, calculating the oscillator strength is an ideal test for Honeywell’s 6-qubit device that is experimentally simultaneously challenging and of practical importance. In the experiment, we calculated the oscillator strength of azobenzene using the hardware and compared the results with the exact classical simulation.</p><h3>Experiment</h3><p>We calculated the oscillator strength between two energy eigenstates of cis-azobenzene, using the <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.1.033062">subspace-search variational quantum eigensolver</a> (SSVQE), proposed by <a href="https://en.qunasys.com/">QunaSys Inc.</a> For a detailed description of the overall experimental setup, please see the last section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iHfZBnVLYxkOdWT6ELQOYQ.png" /><figcaption>Figure 3. Calculated oscillator strengths of an azobenzene molecule. The horizontal dashed line indicates the exact value from the classical CASCI (complete active space configuration interaction) method, for which we are aiming. Each dot (a)-(d) shows the value of oscillator strength computed with either classical circuit simulations or the Honeywell’s hardware, using an identical quantum circuit. (a) Classical simulation result assuming a noise-free quantum computer. (b) A classical simulation which mimics Honeywell’s hardware. (c) The calculation result of Honeywell’s real hardware. (d) A classical simulation that mimics typical superconducting quantum hardware currently available on a cloud service. The error bars were calculated using the definition of the oscillator strength and the results of the 500 shots measurements from classical circuit simulations or the Honeywell’s hardware.</figcaption></figure><p>Figure 3 shows the calculation result of the oscillator strength of azobenzene. As evident in the figure, the value from Honeywell’s hardware (red dot) is much closer to the exact value (horizontal dashed line) we are aiming for than the simulation result based on the noise level of a typical superconducting quantum computer (blue dot). These results indicated that the fidelities of gate operations are of essential importance when calculating more complex physical quantities.</p><h3>Conclusion</h3><p>We used Honeywell’s 6-qubit trapped-ion quantum computer with Quantum Volume 64 to calculate the oscillator strength of the azobenzene molecule. The accuracy of the results obtained on Honeywell’s quantum computer is much higher than those achieved through a simulation on a typical superconducting quantum computer. By combining Honeywell’s ultra-high-precision hardware and the SSVQE algorithm, we successfully calculate this important quantity with high accuracy, expanding the horizon of quantum computers’ applications. Although some have questioned the ability of trapped-ion systems to scale, the QCCD architecture realized by Honeywell has the potential to solve these bottlenecks. Honeywell has already announced a new release of a next generation system with a <a href="https://www.honeywell.com/en-us/newsroom/news/2020/09/achieving-quantum-volume-128-on-the-honeywell-quantum-computer">Quantum Volume of 128</a>. We’re looking forward to the future of this technology which we believe will accelerate industrial applications of trapped-ion quantum computers.</p><h3>Details of simulation setup</h3><p>We use the subspace-search variational quantum eigensolver (SSVQE), which we proposed in <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.1.033062">[Phys. Rev. Research, 1, 033062 (2019)]</a>, in this project. The SSVQE is an extension of the <a href="https://grove-docs.readthedocs.io/en/latest/vqe.html">variational quantum eigensolver</a> (VQE) and finds low-lying excited states of a given Hamiltonian by optimizing a parametrized unitary <em>U(</em><strong><em>θ</em></strong><em>) </em>so that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/1*mXZ6zKg4Y6v9E2_NLbDohA.png" /></figure><p>where</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/88/1*VdZ9EdyHsYh7IE7O9LQbXw.png" /></figure><p>is an arbitrary (but easily preparable) set of mutually orthogonal states and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/34/1*wnqEudMpnIpQTsr34JTgaQ.png" /></figure><p>is the <em>j</em>-th excited state of the Hamiltonian. As the optimization step needs many iterations to converge, we perform the optimization on a classical computer in this project. This may be avoided by using more sophisticated optimization techniques such as stochastic gradient descent which require less samples to optimize but due to time limitations, we circumvent possible trial-and-error in this step.</p><p>We use an electronic Hamiltonian of <em>cis</em>-azobenzene molecule, which becomes a 6-qubit Hamiltonian under an appropriate active space approximation. With this Hamiltonian, we evaluate the oscillator strength, which is proportional to a sum of the absolute square of transition amplitude</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/110/1*wGLXgLp8RVwn2qHn6EdITA.png" /></figure><p>where</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/1*PWzNguiLpRTOYQFSLEAJMQ.png" /></figure><p>is a dipole moment operator between the ground state and the first singlet excited state (note: this value vanishes for trans-azobenzene due to molecular symmetry). Using the optimized unitary, we evaluate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/99/1*E0GadxnsUST5hPd1lLI0Rw.png" /></figure><p>by the following “virtual interference” technique. First, we prepare</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*2LG0u22r0GUc9nt9gXzhrw.png" /></figure><p>and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*W-zitYqSfRkIdofHZCyUYw.png" /></figure><p>Second, we measure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*cSP2qnrKVLB6QKQZgCsYtQ.png" /></figure><p>Finally, we obtain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/99/1*E0GadxnsUST5hPd1lLI0Rw.png" /></figure><p>by classically computing the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*BRfSV3uCEyxoJniYU9HnPQ.png" /></figure><p>Further, to mitigate hardware errors, we employed a <a href="https://journals.aps.org/prx/abstract/10.1103/PhysRevX.8.031027">linear extrapolation technique</a>.</p><p>Written by<br>Yohei Ibe and Tennin Yan at QunaSys Inc.<br>(We deeply acknowledge helpful feedbacks from Honeywell&#39;s team)</p><p><em>QunaSys keeps developing efficient quantum algorithms to accelerate various applications of quantum computers. Our mission is to enthusiastically develop technologies that bring out the maximum potential of quantum computers and to continually deliver innovations to society.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3398d0af14b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum algorithm for calculating electronically excited states of molecules]]></title>
            <link>https://qunasys.medium.com/quantum-algorithm-for-calculating-electronically-excited-states-of-molecules-39fa092f2c61?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/39fa092f2c61</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[quantum-algorithms]]></category>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Mon, 19 Oct 2020 02:25:46 GMT</pubDate>
            <atom:updated>2020-11-12T08:08:27.674Z</atom:updated>
            <content:encoded><![CDATA[<h4>Subspace-Search Variational Quantum Eigensolver</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3vArXZ78yAAUuyia5nFFg.jpeg" /></figure><p>Quantum chemistry aims to describe the behavior of atoms and molecules. Geometrical structures, molecular vibrational motions, chemical reaction dynamics, and photon absorption and emission are critical characteristics. A complete and accurate electronic structure is a prerequisite for obtaining that information accurately. This requirement brings up the Schrodinger equation, which governs the electrons,</p><p><em>H|ψ⟩=E|ψ⟩.</em></p><p>The Hamiltonian <strong>H</strong> is unique for the target molecule. Solving the Schrodinger equation is equivalent to solving the eigenvalue problem for <strong>H</strong>, i.e., finding the eigenvectors and the corresponding eigenvalues. However, this problem becomes notoriously hard for classical computers as the size of the molecule increases. It is virtually impossible to precisely solve the Schrodinger equation because the dimension of the Hamiltonian grows exponentially as the number of electrons increases. A complete calculation of a molecule with dozens of atoms will require more classical bits (memories) than the number of atoms in the entire observed universe. However, for quantum computers, the polynomial number of “quantum bits”, or qubits, is required with the increase of the target’s size.</p><p>Just like the classical computer takes decades to show its full potential, the quantum computer is coming, but step by step. The first phase is the next three to five years, during which the so-called NISQ (Noisy Intermediate-Scale Quantum) devices are exploited. With various error mitigation methods, NISQ devices are expected to show the quantum advantage at medium size ranging from 50 to a few hundred qubits. Quantum algorithms to solve classically difficult problems with NISQ devices are demanded.</p><p>A quantum algorithm for chemistry, called variational quantum eigensolver (VQE)[1], has been developed to solve molecules’ ground states. Usually, molecules stay at their lowest energy states, so the ground state is of particular interest. The VQE utilizes a parameterized quantum circuit U(θ), also called an ansatz circuit, to generate an ansatz state |ψ(θ)⟩= U(θ)|0⟩ where |0⟩ is some reference state. The expectation value of the target Hamiltonian ⟨<strong>H</strong>(θ)⟩ = ⟨ψ(θ)| <strong>H</strong> |ψ(θ)⟩ is minimized by iterative optimization of the parameters θ to find the electronic ground state.</p><p>Nevertheless, in addition to the electronic ground state, the electronically excited states become essential for studying chemistry. Many attractive phenomena in molecules and materials involve multiple electronic states, such as light absorption and luminescence, nonadiabatic transition, and spectroscopies. This is why a method for computing excited states by NISQ devices is highly desired so that various chemical phenomena can be explored by a quantum computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*lShpqnpL0yFirLXSVXU5MQ.png" /></figure><p>Based on the VQE algorithm for the ground state, there is a naive way to calculation excited states using a quantum computer. Because of the orthogonality between the eigenstates of the Hamiltonian H, to find the <em>k</em>-th excited state is to minimize the expectation value of H under the orthogonal condition, which guarantees that the ansatz |ψ(θ)⟩ and the ground to <em>(k-1)</em>-th state are orthogonal to each other. In this way, the quantum circuit called “swap test” is necessary for measuring the inner product between the states and checking the orthogonality. However, the swap test brings two significant problems: the required number of qubits becomes twice as large as that of the original system and a lot of SWAP gates are needed, resulting in a deep quantum circuit. In such a case, the overall computational time becomes more prolonged, and the accumulated error will be more significant. So NISQ devices are not considered to be compatible with this method. To obtain excited states using NISQ devices, we need to develop a method without the swap test.</p><p>Extending the VQE framework to excited states without the swap test has been achieved recently. In 2018, an intern at QunaSys Inc. Ken Nakanishi, CSO at QunaSys Inc. Kosuke Mitarai, and a professor at Kyoto University (currently Osaka University) Keisuke Fujii proposed an algorithm, the subspace-search variational quantum eigensolver (SSVQE). The general idea is to search a low energy subspace by supplying orthogonal input states to the parameterized quantum circuit U(θ); since U(θ) is unitary, the output states become automatically orthogonal and we do not have to check the orthogonality by the costly swap test. The desired <em>k</em>-th excited state can be obtained as the highest energy state in the low energy subspace. The proposed algorithm consists of only the optimization for expectation values of the output states and does not require any ancillary qubits, making this proposal a truly near-term quantum algorithm. Here, we explain one of the variants of the SSVQE, called weighted SSVQE, which gives all the excited states up to the <em>k</em>-th with only one optimization procedure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*tOxXdY87eqBw4ZQrS7moig.png" /></figure><p>The algorithm of the weighted SSVQE for finding up to the <em>k</em>-th excited state can be described in two steps (see also the figure above):</p><p>1. Construct a parameterized quantum circuit U(θ) and choose input states {|ψ_j ⟩}_{j=0,1,...,k} =0 which are orthogonal with each other (⟨ψ_i|ψ_j⟩ = δ_ij).</p><p>2. Minimize the cost function L(θ) = Σ_j w_j ⟨ψ_j|U†(θ) H U(θ)|ψ_j⟩ with respect to θ, where the weight vector <strong>w</strong> is chosen such that w_i &gt; w_j when i &lt; j.</p><p>As we explained, the SSVQE successfully avoids the swap test by using the orthogonal input states. This strategy further benefits us in the evaluation of the transition amplitude between the obtained eigenstates; the transition amplitude |⟨ψ_i|U†(θ)<strong>A</strong>U(θ)|ψ_j⟩|^2 between two eigenstates for an observable <strong>A</strong> can be easily evaluated by applying U(θ) to superpositions of the input states like 1/√2 (|ψ_i⟩±|ψ_j⟩) and measuring expectation values of A. This advantage enables us to investigate the light-matter interaction phenomena involved in quantum chemistry.</p><p>Finally, as a simple demonstration, we implement the SSVQE to search for the ground state and the first (ionic) excited state of a hydrogen molecule. We use the minimal STO-3G basis set to construct a 4-qubit Hamiltonian H to describe the molecule. |0000⟩ and |0001⟩ are the orthogonal input states fed into the weighted SSVQE algorithm. As you can see in the figure below, the optimization of the SSVQE cost function correctly finds the exact energies of the ground and excited states. The details of the simulation can be found in</p><p>[English] <br><a href="http://docs.qulacs.org/en/latest/apply/6.3_ssvqe.html">http://docs.qulacs.org/en/latest/apply/6.3_ssvqe.html</a><br>[Japanese]<br><a href="https://dojo.qulacs.org/ja/latest/notebooks/6.3_subspace_search_VQE.html">https://dojo.qulacs.org/ja/latest/notebooks/6.3_subspace_search_VQE.html</a></p><p>More examples in details on how to apply SSVQE can be found in the original paper [2].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*0XMVK4QntyNZyS3oPAt6xg.png" /></figure><p>In conclusion, an efficient algorithm for finding the excited states of a given Hamiltonian is proposed. Unlike the existing algorithms, this method assures the states’ orthogonality at the inputs of the parameterized quantum circuit. Each of the orthogonal input states can be mapped onto one of the energy eigenstates by minimizing a carefully designed cost function by tuning the quantum circuit’s parameters. The whole algorithm is free from the costly swap test and contains only the optimization of the expectation values of several quantum states. Moreover, the transition amplitudes between the obtained eigenstates can be easily evaluated. This new method extends the VQE to excited states without sacrificing any feasibility and will become an important step to take advantage of NISQ devices in practical calculations for quantum chemistry.</p><p>Written by Youyuan Zhang, Sho Koh, and Yuya O. Nakagawa</p><p>Reference:<br>[1] A. Peruzzo, J. McClean, P. Shadbolt, M.-H Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien. A variational eigenvalue solver on a photonic quantum processor. <a href="https://www.nature.com/articles/ncomms5213">Nat. Commun. <strong>5</strong>, 4213 (2014)</a>.<br>[2] Ken M. Nakanishi, Kosuke Mitarai, and Keisuke Fujii. Subspace-search variational quantum eigensolver for excited states. <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.1.033062">Phys. Rev. Research <strong>1</strong>, 033062 (2019)</a>.</p><p><em>QunaSys keeps developing efficient quantum algorithms to accelerate various applications of quantum computers. Our mission is to enthusiastically develop technologies that bring out the maximum potential of quantum computers and to continually deliver innovations to society.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39fa092f2c61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accelerate quantum computation from a classical approach]]></title>
            <link>https://qunasys.medium.com/accelerate-quantum-computation-from-a-classical-approach-b8b95813063c?source=rss-e05b9c621d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8b95813063c</guid>
            <category><![CDATA[computational-chemistry]]></category>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[quantum-algorithms]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[QunaSys Tech Blog]]></dc:creator>
            <pubDate>Thu, 01 Oct 2020 17:34:59 GMT</pubDate>
            <atom:updated>2020-11-02T07:29:21.156Z</atom:updated>
            <content:encoded><![CDATA[<h3>Accelerate quantum computation from a classical approach — A simple, efficient, and robust optimizer for NISQ devices</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_qikhRjLgfPihrWzyJJ6Uw.png" /></figure><p>“Nature isn’t classical, dammit, and if you want to make a simulation of nature, you’d better make it quantum mechanical, and by golly, it’s a wonderful problem because it doesn’t look so easy.” A famous description said by Richard Feynman in 1982 brings us a concept of building a quantum machine to handle the non-classical computations. As Feynman points out, it is not easy. Even now, the quantum computers are limited in accuracy because they do not have error-correcting functionality and the experimental error accumulates over time without a systematic correction. The number of qubits, or <em>quantum bits</em>, ready for executing a non-trivial quantum algorithm is limited to a few dozen for now. We call a machine consisting of several ten or hundred qubits without error correction the noisy intermediate-scale quantum (NISQ) devices.</p><p>To make the best use of the tremendous advantage of quantum computers with a limited scale, or the NISQ devices, a quantum-classical hybrid algorithm has been proposed. In the quantum-classical hybrid algorithm, quantum computers prepare a quantum state by executing a quantum circuit instructed by classical computers and output classical data like measurement outcomes of the prepared state. Classical computers, in turn, process the output data and give feedback to quantum computers.</p><p>One of the most commonly used quantum-classical hybrid algorithms is Variational Quantum Eigensolver (VQE, learn this in <a href="https://grove-docs.readthedocs.io/en/latest/vqe.html">https://grove-docs.readthedocs.io/en/latest/vqe.html</a> and <a href="http://docs.qulacs.org/en/latest/apply/6.2_vqe.html">http://docs.qulacs.org/en/latest/apply/6.2_vqe.html</a>), a solution for finding the eigenvalues of Hamiltonian H of a target system based on the variational principle. A typical structure includes a quantum subroutine that runs inside a classical optimization loop, a parameterized quantum circuit, and its optimization based on an observed cost function. The quantum subroutine has two fundamental steps:</p><p>1. generate an ansatz state |ψ(θ)⟩ with the parameter θ from a parameterized quantum circuit U(θ) on quantum devices;</p><p>2. measure the expectation value of the given Hermitian operator, ⟨H(θ)⟩ = ⟨ψ(θ)|H|ψ(θ)⟩.</p><p>On classical computers, the parameters θ will be optimized to minimize the ⟨H(θ)⟩ through an optimizer for non-linear problems until it converges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*Em640gcgcZDp296LizYUvA.png" /><figcaption>Figure 1. Variational quantum eigensolver.</figcaption></figure><p>Improving the efficiency of the classical optimization process is, therefore, the key to accelerating the overall performance of the VQE. Typically, the optimization is based on the gradient method (left panel of Figure 2). In the gradient method, the optimization proceeds step by step following the direction of the gradient. This method requires a lot of evaluation of the cost function, ⟨H(θ)⟩, and highly depends on the initial input; the worse the initial guess is, the slower the optimization will be. It becomes natural to wonder if we can find another method with a smaller number of evaluations of ⟨H(θ)⟩ and less initial value dependence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*bizPCCY_DaFr4SuG46oLRQ.png" /><figcaption>Figure 2. Comparison between the gradient method and the NFT optimizer.</figcaption></figure><p>In 2019, Ken Nakanishi (intern at QunaSys Inc.), Keisuke Fujii (currently Professor at Osaka University), and Synge Todo (Professor at the University of Tokyo) proposed a new optimization method for the VQE to speed up the convergence. The proposed optimization method is hyperparameter-free, has faster convergence, has less dependence on the initial choice of the parameters, and is robust against the error in the function evaluation. In this method, the optimization is performed exactly with respect to certain chosen parameters at each step by using the characteristic structure of the typical parameterized quantum circuits. In fact, as shown in the right side of Figure 2, the cost function behaves as a simple trigonometric function, or a sine curve with period 2π with respect to the parameter θ while the other parameters are fixed, when the parameterized quantum circuit U(θ) consists of a set of unitary gates exp(iθ/2*A) being subject to A*A = I. Because of this special property, we can determine the parameter θ that provides the exact minimum of the cost function by evaluating the cost function at only three independent points with respect to the parameter. By repeatedly performing this procedure, we can optimize all the parameters so that the cost function becomes as small as possible.</p><p>This optimization method, which we call NFT optimizer after the names of the authors, allows us to update each parameter with fewer measurements than the gradient-based methods. The update of the parameters is deterministic if the order of the parameters is provided, so NFT optimizer is hyperparameter-free.</p><p>As a simple demonstration of the advantage of NFT optimizer, we applied it to calculate the energy of a hydrogen molecule and compared it with other optimizers. The convergence efficiencies are compared among NFT optimizer, the Nelder-Mead optimizer, and COBYLA optimizer under the “RYRZ” variational circuit (see top left panel of Figure 3). In two bottom panels of Figure 3, the horizontal axis is the total number of evaluations of the function ⟨H(θ)⟩ during the optimization and the vertical one is the function value. The bottom left panel of Figure 3 contains the results in an ideal situation where no noise is considered, and it shows clearly that the result obtained using NFT optimizer shown as the red curve is more than two times faster than the Nelder-Mead optimizer and COBYLA optimizer.</p><p>As mentioned before, the NISQ devices suffer from noise. Is NFT optimizer better even in this case? The bottom right panel of Figure 3 contains the results of simulating a noisy situation where the value of the function fluctuates as a result of 32 shots measurements and the noise model mimicking the actual NISQ devices made of the superconducting qubits. NFT optimizer is still much more efficient and reliable than the other two optimizers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*x25sPGW_vQaYiEUCmthSQw.png" /><figcaption>Figure 3. Simulation results of a hydrogen molecule.</figcaption></figure><p>In summary, an intern at QunaSys and collaborators have proposed a hyperparameter-free optimizer for quantum-classical hybrid algorithms using parameterized quantum circuits. NFT optimizer seems to have better convergence efficiency even in the presence of the inevitable noise in the NISQ devices. With this new method, NISQ devices will be more practical in quantum computation.</p><p>Written by Youyuan Zhang and <a href="https://sites.google.com/site/yuyaonakagawa/">Yuya O. Nakagawa</a></p><p>Reference:<br>[1] Ken M. Nakanishi, Keisuke Fuji, and Synge Todo, <a href="https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.2.043158">https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.2.043158</a><strong><br></strong>[2] Implementation by K. Nakanishi is given in <a href="https://github.com/ken-nakanishi/nftopt">https://github.com/ken-nakanishi/nftopt</a></p><p><em>QunaSys keeps developing efficient quantum algorithms to accelerate various applications of quantum computers. Our mission is to enthusiastically develop technologies that bring out the maximum potential of quantum computers and to continually deliver innovations to society.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8b95813063c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>