Variational algorithms are promising candidates to be implemented on near-term quantum computers. In our work, we investigate the variational Hamiltonian ansatz (VHA), where a parametrized trial state of the quantum mechanical wave function is optimized to obtain the ground-state energy. In the VHA, the trial state is given by a noninteracting reference state modified by unitary rotations using generators that are part of the Hamiltonian describing the system. The lowest energy is obtained by optimizing the angles of those unitary rotations. A standard procedure to optimize the variational parameters is to use gradient-based algorithms. However, shot noise and the intrinsic noise of the quantum device affect the evaluation of the required gradients. We study how different methods for obtaining the gradient, specifically the finite-difference and the parameter-shift rule, are affected by shot noise and the noise of the quantum computer. To this end, we simulate a simple quantum circuit, as well as the two-site and six-site Hubbard models.
Read full abstract