Preparing problems for execution on quantum computers can require many compilation steps. Automated compilation software is useful not only for easier and faster problem execution, but also for facilitating the comparison between different algorithmic choices. Here we describe mat2qubit, a Python package for encoding several classes of classical and quantum problems into qubit representations. It is intended for use especially on Hamiltonians and functions defined over variables (e.g. particles) with cardinality larger than 2. More specifically, mat2qubit may be used to compile bosonic, phononic/vibrational, and spin-s problems, as well as classical problems such as graph coloring, routing, scheduling, and classical linear algebra more generally. In order to facilitate numerical analyses and ease of programmability, a built-in computer algebra system (CAS) allows for fully symbolic preparation and manipulation of problems (with symbolic operators, symbolic coefficients, and symbolic particle labels) before the final compilation into qubits is performed. We expect this code to be useful in the preparation and analysis of various classes of physics, chemistry, materials, and optimization problems for execution on digital quantum computers.
Transition amplitudes and transition probabilities are relevant to many areas of physics simulation, including the calculation of response properties and correlation functions. These quantities can also be related to solving linear systems of equations. This study presents three related algorithms for calculating transition probabilities. First, a previously published short‐depth algorithm is extended, allowing for the two input states to be non‐orthogonal. Building on this first procedure, a higher‐depth algorithm based on Trotterization and Richardson extrapolation is derived that requires fewer circuit evaluations. Third, a tunable algorithm that allows for trading off circuit depth and measurement complexity is introduced, yielding an algorithm that can be tailored to specific hardware characteristics. Finally, proof‐of‐principle numerics are presented for models in physics and chemistry and for a subroutine in variational quantum linear solving (VQLS). The primary benefits of these approaches are that a) arbitrary non‐orthogonal states may now be used with small increases in quantum resources, b) they (like another recently proposed method) entirely avoid subroutines such as the Hadamard test that may require three‐qubit gates to be decomposed, and c) in some cases fewer quantum circuit evaluations are required as compared to the previous state‐of‐the‐art in NISQ algorithms for transition probabilities.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.