Instruct: Identify the main and secondary category of Arxiv papers based on the titles and abstracts
Query: Relaxed Peephole Optimization: A Novel Compiler Optimization for Quantum
  Circuits   In this paper, we propose a novel quantum compiler optimization, named
relaxed peephole optimization (RPO) for quantum computers. RPO leverages the
single-qubit state information that can be determined statically by the
compiler. We define that a qubit is in a basis state when, at a given point in
time, its state is either in the X-, Y-, or Z-basis. When basis qubits are used
as inputs to quantum gates, there exist opportunities for strength reduction,
which replaces quantum operations with equivalent but less expensive ones.
Compared to the existing peephole optimization for quantum programs, the
difference is that our proposed optimization does not require an identical
unitary matrix, thereby named `relaxed' peephole optimization. We also extend
our approach to optimize the quantum gates when some input qubits are in known
pure states. Both optimizations, namely the Quantum Basis-state Optimization
(QBO) and the Quantum Pure-state Optimization (QPO), are implemented in the
IBM's Qiskit transpiler. Our experimental results show that our proposed
optimization pass is fast and effective. The circuits optimized with our
compiler optimizations obtain up to 18.0% (11.7% on average) fewer CNOT gates
and up to 8.2% (7.1% on average) lower transpilation time than that of the most
aggressive optimization level in the Qiskit compiler. When running on real
quantum computers, the success rates of 3-qubit quantum phase estimation
algorithm improve by 2.30X due to the reduced gate counts.

19
The categories of this paper are: eess
0
The categories of this paper are: hep-ph
23
The categories of this paper are: solv-int
11
The categories of this paper are: hep-lat
28
The categories of this paper are: alg-geom
27
The categories of this paper are: comp-gas
8
The categories of this paper are: hep-ex
5
The categories of this paper are: gr-qc
31
The categories of this paper are: ao-sci
15
The categories of this paper are: nucl-ex
20
The categories of this paper are: acc-phys
9
The categories of this paper are: nlin
29
The categories of this paper are: funct-an
4
The categories of this paper are: cond-mat
30
The categories of this paper are: q-alg
37
The categories of this paper are: supr-con