Quantum Circuit Compilation
Quantum Circuit Compilation is a technique that aims to reduce the depth of certain quantum circuits by approximating them by fixed depth variational circuits. A well-known example of this is quantum assisted quantum compiling (QAQC). This is available in QURI Algo through our compilation module, which will be introduced through this notebook.
Overview
In this notebook we will go through
- Some background of QAQC
- How to use the Hilbert-Schmidt cost function
- How to use the QURI Algo implementation of QAQC
QAQC
The objective of QAQC is to approximate a known quantum circuit which is understood to be too deep by a low-depth variational circuit . Ideally the depth of is or , which is achievable with either brick-wall or tensor-network inspired ansatze. A cost-function is needed, that when minimized ensures that for some global phase .
We can use the Hilbert-Schmidt (HS) test for this which is
The advantage of this is that it can be evaluated on quantum hardware by sampling a qubit wavefunction. This has implications for QPE where multi-qubit controlled time-evolution is performed several times. Although the requirement likely makes the optimization untractable using classical computing, running the optimization using a quantum device requires little additional overhead compared to QPE and has the potential to reduce the run-time of QPE dramatically.
To summarize it briefly, the estimation is done on a qubit quantum register consisting of -qubit subsystems and . The system has initially been prepared as a product of Bell states defined by pairs of qubits belonging to and . Denoting by and the 'th qubit on subsystem and respectively. We write