## Isolated Vertices in Continuous-Time Quantum Walks on Dynamic Graphs

Thomas G. Wong

∗

Department of Physics, Creighton University, 2500 California Plaza, Omaha, NE 68178

It was recently shown that continuous-time quantum walks on dynamic graphs, i.e., sequences of static graphs whose edges change at specific times, can implement a universal set of quantum gates. This result treated all isolated vertices as having self-loops, so they all evolved by a phase under the quantum walk. In this paper, we permit isolated vertices to be loopless or looped, and loopless isolated vertices do not evolve at all under the quantum walk. Using this distinction, we construct simpler dynamic graphs that implement the Pauli gates and a set of universal quantum gates consisting of the Hadamard, T , and CNOT gates, and these gates are easily extended to multi-qubit systems. For example, the T gate is simplified from a sequence of six graphs to a single graph, and the number of vertices is reduced by a factor of four. We also construct a generalized phase gate, of which Z S , , and T are specific instances. Finally, we validate our implementations by numerically simulating a quantum circuit consisting of layers of one- and two-qubit gates, similar to those in recent quantum supremacy experiments, using a quantum walk.

PACS numbers: 03.67.Ac, 03.67.Lx

## I. INTRODUCTION

The continuous-time quantum walk is a quantum mechanical analogue of a classical continuous-time random walk. It was introduced in [1] as a method for solving decision trees, and it has since been applied to a variety of computational problems, such as searching [2] and solving boolean formulas [3]. Exponential speedups have even been achieved using the continuous-time quantum walk [4]. Furthermore, they are universal for quantum computing, meaning any quantum computation can be formulated as a continuous-time quantum walk [5].

In a quantum walk, the N vertices of a graph represent orthonormal basis states | 0 〉 , | 1 〉 , . . . , | N - 〉 1 of an N -dimensional Hilbert space, and the edges of the graph specify the allowed transitions between basis states. In a continuous-time quantum walk, the state of the walker is a quantum superposition over the vertices, and it evolves according to Schr¨dinger's equation with a Hamiltonian o either proportional to the Laplacian of the graph [1], or proportional to the adjacency matrix A of the graph [6]. The adjacency matrix is an N × N matrix that encodes the structure of the graph; A ij = 1 if vertices i and j are adjacent, and A ij = 0 otherwise. When the graph is regular, the Laplacian and adjacency matrix effect the same evolution (up to a global, unobservable phase), but when the graph is irregular, the walks can differ [7]. Either way, the edges of the graph are encoded in the Hamiltonian.

In this paper, we focus on the quantum walk effected by the adjacency matrix, such as a single excitation in a spin network with XY interactions [6]. For convenience and in alignment with several prior works [8, 9], we choose the jumping rate to be -1, so the Hamiltonian is equal to the adjacency matrix. This corresponds to walking backward in time, but the results can easily be adapted

∗ thomaswong@creighton.edu

FIG. 1. A loopless isolated vertex ( K 1 ), an isolated vertex with a self-loop ( K glyph[anticlockwise] 1 ), a path graph of two vertices ( P 2 ), and a cycle of four vertices ( C 4 ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-47fa88b7-bc92-45d3-983d-8c626a7e1ea8.jpg)

to forward-time evolution. Then for a static graph, the adjacency matrix and Hamiltonian are time-independent, so the solution to Schr¨dinger's equation (with o glyph[planckover2pi1] = 1) is

$$| \psi ( t ) \rangle = e ^ { - i A t } | \psi ( 0 ) \rangle. \text{ \quad \ \ } ( 1 )$$

For example, Fig. 1 depicts a graph of eight vertices consisting of four components: a loopless isolated vertex K 1 , an isolated vertex with a self-loop K glyph[anticlockwise] 1 , a path of two vertices P 2 , and a cycle of four vertices C 4 . Its adjacency matrix is

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-036e75e8-a41f-4433-86ee-8910dd894f9d.jpg)

.

TABLE I. Quantum walks on the loopless isolated vertex K 1 , isolated vertex with a self-loop K glyph[anticlockwise] 1 , path graph of two vertices P 2 , and the cycle of four vertices C 4 , as depicted in Fig. 1. The initial state of the quantum walk is c 0 | 0 〉 + c 1 | 1 〉 + · · · + c 7 | 7 . 〉

| Graph                    | Time                     | Evolution                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Description                                                                   |
|--------------------------|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| K 1                      | t                        | c 0 | 0 〉 → c 0 | 0 〉                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | No evolution                                                                  |
| K glyph[anticlockwise] 1 | t π/ 2 π 3 π/ 2 2 π      | c 1 | 1 〉 → e - it c 1 | 1 〉 c 1 | 1 〉 →- ic 1 | 1 〉 c 1 | 1 〉 →- c 1 | 1 〉 c 1 | 1 〉 → ic 1 | 1 〉 c 1 | 1 〉 → c 1 | 1 〉                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Phase Phase ( - i ) Phase ( - 1) Phase ( i ) No evolution                     |
| P 2                      | t π/ 4 π/ 2 π 3 π/ 2 2 π | c 2 | 2 〉 + c 3 | 3 〉 → [ c 2 cos( t ) - ic 3 sin( t )] | 2 〉 +[ c 3 cos( t ) - ic 2 sin( t )] | 3 〉 c 2 | 2 〉 + c 3 | 3 〉 → (1 / √ 2)[( c 2 - ic 3 ) | 2 〉 +( c 3 - ic 2 ) | 3 〉 ] c 2 | 2 〉 + c 3 | 3 〉 →- i ( c 3 | 2 〉 + c 2 | 3 〉 ) c 2 | 2 〉 + c 3 | 3 〉 →- ( c 2 | 2 〉 + c 3 | 3 〉 ) c 2 | 2 〉 + c 3 | 3 〉 → i ( c 3 | 2 〉 + c 2 | 3 〉 ) c 2 | 2 〉 + c 3 | 3 〉 → c 2 | 2 〉 + c 3 | 3 〉                                                                                                                                                                                   | Mix Mix Swap and phase ( - i ) Phase ( - 1) Swap and phase ( i ) No evolution |
| C 4                      | t π/ 2 π                 | c 4 | 4 〉 + c 5 | 5 〉 + c 6 | 6 〉 + c 7 | 7 〉 → (1 / 2)[ c 4 - c 7 +( c 4 + c 7 ) cos(2 t ) - i ( c 5 + c 6 ) sin(2 t )] | 4 〉 +(1 / 2)[ c 5 - c 6 +( c 5 + c 6 ) cos(2 t ) - i ( c 4 + c 7 ) sin(2 t )] | 5 〉 +(1 / 2)[ c 6 - c 5 +( c 5 + c 6 ) cos(2 t ) - i ( c 4 + c 7 ) sin(2 t )] | 6 〉 +(1 / 2)[ c 7 - c 4 +( c 4 + c 7 ) cos(2 t ) - i ( c 5 + c 6 ) sin(2 t )] | 7 〉 c 4 | 4 〉 + c 5 | 5 〉 + c 6 | 6 〉 + c 7 | 7 〉 →- ( c 7 | 4 〉 + c 6 | 5 〉 + c 5 | 6 〉 + c 4 | 7 〉 ) c 4 | 4 〉 + c 5 | 5 〉 + c 6 | 6 〉 + c 7 | 7 〉 → c 4 | 4 〉 + c 5 | 5 〉 + c 6 | 6 〉 + c 7 | 7 〉 | Mix Opposite corners swap and phase No evolution                              |

If the initial state of the walker is

$$| \psi ( 0 ) \rangle = c _ { 0 } | 0 \rangle + c _ { 1 } | 1 \rangle + \dots + c _ { 7 } | 7 \rangle,$$

then using (1), it evolves to the state

```
| \psi ( t ) \rangle & = c _ { 0 } | 0 \rangle + e ^ { - i t } c _ { 1 } | 1 \rangle + [ c _ { 2 } \cos ( t ) - i c _ { 3 } \sin ( t ) ] | 2 \rangle + [ c _ { 3 } \cos ( t ) - i c _ { 2 } \sin ( t ) ] | 3 \rangle \\ & \quad + ( 1 / 2 ) [ c _ { 4 } - c _ { 7 } + ( c _ { 4 } + c _ { 7 } ) \cos ( 2 t ) - i ( c _ { 5 } + c _ { 6 } ) \sin ( 2 t ) ] | 4 \rangle \\ & \quad + ( 1 / 2 ) [ c _ { 5 } - c _ { 6 } + ( c _ { 5 } + c _ { 6 } ) \cos ( 2 t ) - i ( c _ { 4 } + c _ { 7 } ) \sin ( 2 t ) ] | 5 \rangle \\ & \quad + ( 1 / 2 ) [ c _ { 6 } - c _ { 5 } + ( c _ { 5 } + c _ { 6 } ) \cos ( 2 t ) - i ( c _ { 4 } + c _ { 7 } ) \sin ( 2 t ) ] | 6 \rangle \\ & \quad + ( 1 / 2 ) [ c _ { 7 } - c _ { 4 } + ( c _ { 4 } + c _ { 7 } ) \cos ( 2 t ) - i ( c _ { 5 } + c _ { 6 } ) \sin ( 2 t ) ] | 7 ).
```

From this, we see that the amplitude at the loopless isolated vertex K 1 ( 0 | 〉 ) stays the same. This is summarized in the first row of Table I. In contrast, the amplitude at the isolated vertex with a self-loop K glyph[anticlockwise] 1 ( 1 ) evolves by | 〉 a phase e -it , and this is summarized in the second row of Table I with specific times t = π/ , π, 2 3 π/ , 2 2 π . The amplitudes in the path graph P 2 ( 2 | 〉 and | 3 ) 〉 mix [8], at times completely swapping (with a phase), as summarized in the third row of Table I. Finally, the amplitudes in the cycle graph C 4 ( 4 , | 〉 | 5 , 〉 | 6 , and 〉 | 7 ) also mix [8], 〉 and at time π/ 2, the amplitudes at opposite corners have swapped (with a phase), as summarized in the last row of Table I.

Herrman and Humble [9] recently constructed sequences of graphs, called dynamic graphs, on which continuous-time quantum walks implement the Pauli X , Y , and Z gates, along with the Hadamard gate H , T gate (fourth root of Z ), and CNOT. The last three, { H,T, CNOT } are a universal set of quantum gates [10], so they can approximate any unitary to any desired precision. Thus, using dynamic graphs that correspond to various quantum gates, continuous-time quantum walks can implement any quantum computation. We note the quantum approximate approximation algorithm (QAOA) [11] also changes the Hamiltonian at discrete times, corresponding to turning on and off interactions. Quantum

walks on dynamic graphs are similar.

Herrman and Humble's formulation treated all isolated vertices as having self-loops (i.e., as K glyph[anticlockwise] 1 's), so their amplitudes evolved by phases. Physically, they evolve 'at an energy offset from the other vertices (like a physical mode at a different frequency or in the presence of a different bias)' [12]. Simple graphs, however, have no self-loops. Even the XY spin model that gives rise to a quantum walk governed by the adjacency matrix assumes a simple graph [6]. This raises the question of how permitting loopless isolated vertices in dynamic graphs affect the construction of quantum gates. Physically, they evolve at zero energy, with no phase.

In this paper, we permit isolated vertices to be loopless ( K 1 's) or looped ( K glyph[anticlockwise] 1 's), allowing us to engineer whether the amplitude at a vertex remains constant or evolves by a phase. With this distinction, we are able to significantly reduce the complexity of the dynamic graphs in many cases. By eliminating ancillas, we reduce the Y , Z , H , and T gates from quantum walks on eight vertices to just two vertices. Furthermore, the H gate is reduced a sequence of five graphs to three graphs, and the T gate is reduced from six graphs to just one graph. We also construct a generalized phase gate, of which Z , S , and T are specific instances. Our implementations also easily extend to multi-qubit systems.

In the next section, we review Herrman and Humble's dynamic graphs for the Pauli gates, and we propose improvements utilizing loopless isolated vertices. Then in Section III, we review and improve dynamic graphs for the universal gate set { H,T, CNOT } and propose a dynamic graph that implements an arbitrary-phase gate. Following, in Section IV, we validate our constructions by implementing a three-qubit quantum circuit that alternates between layers of one- and two-qubit gates, similar to those used in quantum supremacy experiments [13, 14], as a quantum walk. Finally, we end with concluding remarks.

## II. PAULI GATES

In this section, we review Herrman and Humble's constructions of the Pauli X , Y , and Z gates, where isolated vertices all have self-loops. Along the way, we give simpler constructions when loopless isolated vertices are permitted and show how they generalize to multi-qubit systems.

Recall the Pauli gates are single-qubit gates. In the computational basis, the X gate acts by X | 0 〉 = 1 | 〉 and X | 1 〉 = 0 . Then, for a general qubit in a superposition | 〉 of | 0 〉 and | 1 , 〉

$$X ( c _ { 0 } | 0 \rangle + c _ { 1 } | 1 \rangle ) = c _ { 1 } | 0 \rangle + c _ { 0 } | 1 \rangle.$$

To implement this using a quantum walk, Herrman and Humble proposed the dynamic graph shown in the first row of Table II. It uses the fact that evolving by P 2 for time π/ 2 causes the amplitudes at two vertices to swap,

FIG. 2. A dynamic graph that applies the Pauli X gate to the rightmost of three qubits, i.e., I ⊗ I ⊗ X .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-5e0203ba-7b66-4817-aee9-cef3b56e0f2f.jpg)

but with a phase of -i . That is, from the third row of Table I, c 0 | 0 〉 + c 1 | 1 〉 → -i ( c 1 | 0 〉 + c 0 | 1 ). 〉 To remove the phase, each vertex can then evolve in isolation with a selfloop (i.e., K glyph[anticlockwise] 1 's) for time 3 π/ 2, which from the second row of Table I multiplies their amplitudes by i , resulting in c 1 | 0 〉 + c 0 | 1 , 〉 hence implementing the X gate. Altogether, these two static graphs ( P 2 and isolated K glyph[anticlockwise] 1 's) evolve for a combined total time of 2 π . This implementation is so direct that loopless isolated vertices do not yield an obvious improvement, so we simply continue using Herrman and Humble's implementation, as shown in the first row of Table II.

This implementation of the X gate is easily extended to multiple qubits. For example, with three qubits, there are eight vertices, which we label with bit strings | 000 〉 , | 001 〉 , . . . , | 111 . 〉 We can extend Herrman and Humble's dynamic graph so that it applies the X gate to the rightmost qubit by pairing vertices with labelings | ab 0 〉 and | ab 1 , 〉 where a and b are bits, as shown in Fig. 2. Then we evolve as before with isolated vertices with self-loops. To instead apply X to the leftmost qubit, we would pair vertices with labelings | 0 ab 〉 and | 1 ab 〉 . Finally, to apply X to the middle qubit, we would pair vertices with labelings | a b 0 〉 and | a b 1 〉 .

Next, the Pauli Y gate acts on the computational basis states by Y | 0 〉 = i | 1 〉 and Y | 1 〉 = - | i 0 . 〉 Then,

$$Y ( c _ { 0 } | 0 \rangle + c _ { 1 } | 1 \rangle ) = - i c _ { 1 } | 0 \rangle + i c _ { 0 } | 1 \rangle.$$

Herrman and Humble constructed a dynamic graph that implements this, but it requires three ancilla vertices, or five total. Since five vertices requires three qubits, we have drawn all eight vertices corresponding to three qubits in the second row of Table II. Say the initial state of the walker is c 0 | 000 〉 + · · · + c 7 | 111 . 〉 The first static graph has | 000 〉 and | 001 〉 evolving by P 2 for time π/ 2, which from Table I results in -ic 1 | 000 〉 -ic 0 | 001 〉 for the first two vertices, while the remaining vertices evolve by a phase of -i . Then | 000 〉 is kept the same by linking it in C 4 to three ancillas for time π , while | 001 〉 and the remaining vertices evolve by a phase of -1. The net

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-d0b608cb-f96a-4a3b-8800-dea6f085a97f.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-24932f7a-9fb8-480b-a705-a9cac970b8ef.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-778f70ac-c853-4875-994b-a6aa9884d432.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-2acb77a9-de4d-4309-970e-668324ca6b6f.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-fbcd3090-ff38-419c-9ce1-7deb3af4261a.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-94c9888b-89de-4b8b-8b7c-1001918882e1.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-e6192b55-bd15-412c-be7e-4e87928cb927.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-a905741e-f6dd-45fa-8d4f-4668f5efdb6f.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-b73e4c36-4374-4deb-b063-6852b579eebb.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-1bac797d-7ada-433a-8e1f-40c04174377d.jpg)

TABLE II. The Pauli gates implemented by continuous-time quantum walks on dynamic graphs.

| Gate   | Herrman and Humble's Implementation                                               | With Loopless Isolated Vertices             |
|--------|-----------------------------------------------------------------------------------|---------------------------------------------|
| X      | 0 1 t = π/ 2 0 1 t = 3 π/ 2 Total time: 2 π                                       | 0 1 t = π/ 2 0 1 t = 3 π/ 2 Total time: 2 π |
| Y      | 010 011 100 101 110 111 t = π/ 2 010 011 100 101 110 111 t = π Total time: 3 π/ 2 | 0 1 t = π/ 2 0 1 t = π Total time: 3 π/ 2   |
| Z      | 010 011 100 101 110 111 t = π Total time: π                                       | 0 1 t = π Total time: π                     |

result is

$$- 1$$

$$& - i c _ { 1 } | 0 0 0 \rangle + i c _ { 0 } | 0 0 1 \rangle - i c _ { 2 } | 0 1 0 \rangle - i c _ { 3 } | 0 1 1 \rangle \\ & - i c _ { 4 } | 1 0 0 \rangle + i c _ { 5 } | 1 0 1 \rangle + i c _ { 6 } | 1 1 0 \rangle + i c _ { 7 } | 1 1 1 \rangle.$$

Thus, | 000 〉 and | 001 〉 underwent a Y gate. The remaining vertices only evolved by phases, but since these ancillas begin with zero amplitude, they also end with zero amplitude, so they do not interfere with larger quantum computations. Note the bit-string labeling of the vertices is confusing in this formulation, since the Y gate is not applied to any one of the three qubits of the labeling. Thus, for true multi-qubit systems where we want to apply Y to one of the qubits, a direct generalization of Herrman and Humble's construction requires three ancillas for every P 2 pair, although simplifications may be possible by making C 4 cycles with other non-ancilla qubits. In contrast, our formulation, next, requires no ancillas.

Permitting loopless isolated vertices, we simplify the Y gate so that only two vertices are required. Herrman and Humble's construction required ancillas so that in the second graph, | 000 〉 could be linked in a four cycle C 4 that does not evolve in time π . Now, 000 | 〉 can be kept from evolving by making it isolated and loopless, eliminating the need for the ancillas. The resulting simpler dynamic graph is shown in the second row of Table II. Furthermore, this can be extended to multi-qubit systems in a similar manner to the X gate in Fig. 2. For example, with three qubits, we apply the Y gate to the rightmost qubit by first pairing vertices | ab 0 〉 and | ab 1 〉 in P 2 's, followed by making each | ab 0 〉 a K 1 and each | ab 1 〉 a K glyph[anticlockwise] 1 .

Now, the Pauli Z gate acts on the computational basis by Z | 0 〉 = 0 | 〉 and Z | 1 〉 = -| 〉 1 , so

$$Z ( c _ { 0 } | 0 \rangle + c _ { 1 } | 1 \rangle ) = c _ { 0 } | 0 \rangle - c _ { 1 } | 1 \rangle.$$

So the goal of the Z gate is to leave | 0 〉 unchanged while changing the phase of | 1 . 〉 To keep | 0 〉 unchanged, Herrman and Humble again utilized three ancillas, or five vertices total. Again, this requires three qubits, or eight vertices, which we draw in the last row of Table II. For time π , | 000 〉 is kept in a four cycle C 4 with | 010 , 〉 | 100 , 〉 and | 110 , 〉 while the remaining vertices evolve with a phase of -1. That is, c 0 | 000 〉 + · · · + c 7 | 111 〉 evolves to

$$c _ { 0 } | 0 0 0 \rangle - c _ { 1 } | 0 0 1 \rangle + c _ { 2 } | 0 1 0 \rangle - c _ { 3 } | 0 1 1 \rangle$$

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-fc098685-07a7-4949-8ba5-611a9b98c610.jpg)

$$+ c _ { 4 } | 1 0 0 \rangle - c _ { 5 } | 1 0 1 \rangle + c _ { 6 } | 1 1 0 \rangle - c _ { 7 } | 1 1 1 \rangle.$$

Thus, | 000 〉 and | 001 〉 underwent a Z gate, with the ancillas retaining their initial amplitudes of zero. If the ancillas have nonzero initial amplitude, however, note this dynamic graph applies the Z gate to the rightmost qubit (i.e., I ⊗ I ⊗ Z ), so the labeling has some meaning here. Next, our construction requires no ancillas.

With loopless isolated vertices, we simplify the Z gate by eliminating the need for ancillas and the cycle C 4 . | 0 〉 can be made stationary under K glyph[anticlockwise] 1 while | 1 〉 evolves by a phase under K 1 . This is depicted in the last row of Table II. As with our implementations of the X and Y gates, our Z gate naturally extends to multi-qubit systems in a similar manner to the X gate in Fig. 2.

For the identity gate, Herrman and Humble gave several possible constructions, including evolving with all isolated vertices with self-loops K glyph[anticlockwise] 1 for time 2 π , pairs of vertices P 2 for time 2 π , or cycles of four vertices C 4 for time π . Now, we can implement the identity gate using loopless isolated vertices, which do not evolve at all, no matter the time. This makes it easier to see which vertices are actively evolving and which are not.

## III. UNIVERSAL QUANTUM GATES

In this section, we review Herrman and Humble's constructions of the Hadamard H , T , and CNOT gates, and we propose simpler implementations with loopless isolated vertices. Together, these are a universal set of quantum gates [10].

First, the Hadamard gate is a single-qubit gate, and it acts on computational basis states by H | 0 〉 = ( 0 | 〉 + | 1 ) 〉 / √ 2 and H | 1 〉 = ( 0 | 〉 - | 1 ) 〉 / √ 2. Thus, it transforms the superposition c 0 | 0 〉 + c 1 | 1 〉 to

$$\frac { 1 } { \sqrt { 2 } } \left ( c _ { 0 } + c _ { 1 } \right ) \left | 0 \right \rangle + \frac { 1 } { \sqrt { 2 } } \left ( c _ { 0 } - c _ { 1 } \right ) \left | 1 \right \rangle. \quad \ \left ( 2 \right )$$

Herrman and Humble's implementation of the Hadamard gate is shown in the first row of Table III. Their implementation uses ancillas for a total of eight vertices or three qubits. As proved in their appendix, if the initial state is c 0 | 000 〉 + · · · + c 7 | 111 , their sequence of five 〉 graphs transforms this to

$$\text{graphs transforms this to} \\ \frac { 1 } { \sqrt { 2 } } \left ( c _ { 0 } + c _ { 1 } \right ) \left | 0 0 0 \right \rangle + \frac { 1 } { \sqrt { 2 } } \left ( c _ { 0 } - c _ { 1 } \right ) \left | 0 0 1 \right \rangle \\ + \frac { 1 } { \sqrt { 2 } } \left ( c _ { 2 } + c _ { 3 } \right ) \left | 0 1 0 \right \rangle + \frac { 1 } { \sqrt { 2 } } \left ( c _ { 2 } - c _ { 3 } \right ) \left | 0 1 1 \right \rangle \\ + \frac { 1 } { \sqrt { 2 } } \left ( c _ { 4 } + c _ { 5 } \right ) \left | 1 0 0 \right \rangle + \frac { 1 } { \sqrt { 2 } } \left ( c _ { 4 } - c _ { 5 } \right ) \left | 1 0 1 \right \rangle \\ + \frac { 1 } { \sqrt { 2 } } \left ( c _ { 6 } + c _ { 7 } \right ) \left | 1 1 0 \right \rangle + \frac { 1 } { \sqrt { 2 } } \left ( c _ { 6 } - c _ { 7 } \right ) \left | 1 1 1 \right \rangle. \\ \text{Thus, the Hadamard gate has been applied to } \left | 0 0 0 \right \rangle \text{and}$$

Thus, the Hadamard gate has been applied to | 000 〉 and | 001 , with the six ancillas starting and ending with zero 〉

FIG. 3. An alternate implementation of the Hadamard gate with loopless isolated vertices.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-440f14e4-cc31-4235-bf9b-07e92e8497a0.jpg)

amplitude. Alternatively, if the ancillas have nonzero amplitude, this applies the Hadamard gate to the rightmost of the three qubits, and the bit-string labeling has a natural interpretation. Next, our construction requires no ancillas.

Permitting loopless isolated vertices, we can implement the Hadamard gate using just two vertices, or one qubit. From the third row of Table I, recall evolution by P 2 for time π/ 4 transforms c 0 | 0 〉 + c 1 | 1 〉 to

$$\frac { 1 } { \sqrt { 2 } } ( c _ { 0 } - i c _ { 1 } ) | 0 \rangle + \frac { 1 } { \sqrt { 2 } } ( - i c _ { 0 } + c _ { 1 } ) | 1 \rangle.$$

This is very similar to the Hadamard transform (2), except for some imaginary components. To get the correct phases, we start with c 0 | 0 〉 + c 1 | 1 〉 and put a self-loop on | 1 . 〉 Evolving for time 3 π/ 2, this yields

$$c _ { 0 } | 0 \rangle + i c _ { 1 } | 1 \rangle.$$

Next, we connect the two vertices in a path and evolve for time π/ 4, which yields

$$\frac { 1 } { \sqrt { 2 } } \left ( c _ { 0 } + c _ { 1 } \right ) \left | 0 \right \rangle - \frac { i } { \sqrt { 2 } } \left ( c _ { 0 } - c _ { 1 } \right ) \left | 1 \right \rangle.$$

Finally, to eliminate the factor of -i in the second term, we evolve | 1 〉 with a self-loop for time 3 π/ 2:

$$\frac { 1 } { \sqrt { 2 } } \left ( c _ { 0 } + c _ { 1 } \right ) \left | 0 \right \rangle + \frac { 1 } { \sqrt { 2 } } \left ( c _ { 0 } - c _ { 1 } \right ) \left | 1 \right \rangle.$$

Thus, we have applied the Hadamard gate. This prescription is depicted in the first row of Table III. It reduced the Hadamard transform from a sequence of five graphs of eight vertices each to a sequence of three graphs of two vertices each. It is also easily extended to multiple qubits in a similar fashion to the X gate in Fig. 2.

Our construction of H also reduced the total time from 21 π/ 4 to 13 π/ 4. It can be further reduced to 9 π/ 4, as shown in Fig. 3, but it has a fourth graph in the sequence. First, for time π/ 2, | 0 〉 evolves as K glyph[anticlockwise] 1 while | 1 〉 remains constant as K 1 , which evolves c 0 | 0 〉 + c 1 | 1 〉 to -ic 0 | 0 〉 + c 1 | 1 . 〉 Then they evolve as P 2 for time π/ 4, resulting in -i ( c 0 + c 1 ) / √ 2 0 | 〉 -( c 0 -c 1 ) / √ 2 1 . | 〉 Third, both | 0 〉 and | 1 〉 evolve as K glyph[anticlockwise] 1 's for time π , negating the state to i ( c 0 + c 1 ) / √ 2 0 | 〉 + ( c 0 -c 1 ) / √ 2 1 . | 〉 Finally, | 0 〉 evolves as K glyph[anticlockwise] 1 while | 1 〉 remains constant as K 1 for time π/ 2, finishing the Hadamard transform (2). Altogether, these four graphs take time 9 π/ 4.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-58f8c169-dfaa-427c-8ee1-65fdd5689e53.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-c60ec9d8-d28f-405c-8d67-8fc4304e7cf2.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-e5b44105-af11-47f6-a399-572105abb098.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-b103ef66-cf8b-43c8-a6b6-1b0a73f3f6bc.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-78a8ce81-d722-4328-9b19-416c2da5e8dc.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-772baa23-c498-4606-9ef2-1ae452d280e5.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-c3aa8812-6930-48c8-9bbc-f79f8b4bf586.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-5fcfd141-e593-4290-ba5f-dea73eb754b3.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-3002e381-8b4e-4d84-9490-ff6731b1f278.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-baff0aeb-060f-4063-95da-1efda9504217.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-76479fb0-3b1b-492a-aa9c-bad25483f71b.jpg)

TABLE III. A set of universal quantum gates implemented by continuous-time quantum walks on dynamic graphs.

| Gate   | Herrman and Humble's Implementation                                                                                                                                                                                         | With Loopless Isolated Vertices                             |
|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|
| H      | = 3 π/ 2 t = π/ 4 t = 3 π/ 2 000 001 010 011 100 101 110 111 t = π/ 2 000 001 010 011 100 101 110 111 t = 3 π/ 2                                                                                                            | 0 1 t = 3 π/ 2 0 1 t = π/ 4 0 1 t = 3 π/ 2                  |
| T      | 010 011 100 101 110 111 = π/ 4 010 011 100 101 110 111 t = π/ 2 010 011 100 101 110 111 t = π/ 4 000 001 010 011 100 101 110 111 = π/ 2 000 001 010 011 100 101 110 111 t = 7 π/ 4 000 001 010 011 100 101 110 111 t = π/ 2 | 0 1 t = 7 π/ 4 Total time: 7 π/ 4                           |
| CNOT   | Total time: 15 π/ 4 00 01 10 11 t = 3 π/ 2 00 01 10 11 t = π/ 2 Total time: 2 π                                                                                                                                             | 00 01 10 11 t = π/ 2 00 01 10 11 t = 3 π/ 2 Total time: 2 π |

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-54e2343f-9ced-4862-82ae-a2423a4969b2.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-5d119e1b-3c84-4e86-b529-5f3d99a88e1e.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-280307cf-f590-43b0-afe0-eb8121d84c28.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-00810121-2f77-4a73-af0b-f5d817b5e992.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-4a300044-c3aa-495e-9360-5ebbfb3557b0.jpg)

These times assume that the Hamiltonian is equal to the adjacency matrix. Then larger, more connected graphs use more energy since the Hamiltonian has a larger norm. Reducing the energy corresponds to increasing the runtime, so with constant energy, our speedup is even greater because we reduced the complexity of the graphs. This consideration also holds for the Y and Z gates previously discussed.

Next, the T gate is also a single-qubit gate, and it acts on computational basis states by T | 0 〉 = | 0 〉 and T | 1 〉 = e iπ/ 4 | 1 . 〉 Thus,

$$T ( c _ { 0 } | 0 \rangle + c _ { 1 } | 1 \rangle ) = c _ { 0 } | 0 \rangle + e ^ { i \pi / 4 } c _ { 1 } | 1 \rangle.$$

Herrman and Humble implemented this with the help of six additional vertices, so the eight total vertices correspond to three qubits. Their dynamic graph, which consists of six static graphs, is shown in the second row of Table III. Besides the graphs summarized in Table I, it also includes the star graph of five vertices in the fifth graph. As proved in their appendix, it evolves c 0 | 000 〉 + · · · + c 7 | 111 〉 to

$$0 0 \rangle + \dots + c _ { 7 } | 1 1 1 \rangle \, \text{to} \\ c _ { 0 } | 0 0 0 \rangle + e ^ { i \pi / 4 } c _ { 1 } | 0 0 1 \rangle \\ & - \frac { 1 } { 2 } \left ( c _ { 2 } - \sqrt { 2 } e ^ { - i \pi / 4 } c _ { 4 } + c _ { 5 } \right ) | 0 1 0 \rangle \\ & - \frac { 1 } { 2 } \left ( c _ { 2 } + \sqrt { 2 } e ^ { - i \pi / 4 } c _ { 4 } + c _ { 5 } \right ) | 0 1 1 \rangle \\ & + \frac { 1 } { 2 } \left ( c _ { 2 } + \sqrt { 2 } e ^ { - i \pi / 4 } c _ { 3 } + c _ { 5 } \right ) | 1 0 0 \rangle \\ & + \frac { 1 } { 2 } \left ( c _ { 2 } - \sqrt { 2 } e ^ { - i \pi / 4 } c _ { 3 } + c _ { 5 } \right ) | 1 0 1 \rangle \\ & + e ^ { - i \pi / 4 } c _ { 7 } | 1 1 0 \rangle + e ^ { - i \pi / 4 } c _ { 6 } | 1 1 1 \rangle. \\ \text{is, the $T$ gate was applied to } | 0 0 0 \rangle \, \text{and} \, | 0 0 1 \rangle, \, \text{with}$$

Thus, the T gate was applied to | 000 〉 and | 001 , with the 〉 ancillas retaining their initial zero amplitudes. As with Herrman and Humble's Y gate, the labeling is a little confusing because this does not correspond to the T gate acting on any of three three qubits of the labeling.

To extend Herrman and Humble's result to multi-qubit systems, we can add six ancilla vertices to each pair of vertices. For example, say we have two qubits with vertices | 00 , 〉 | 01 , 〉 | 10 , and 〉 | 11 . 〉 To apply T to the qubit on the right, we construct Herrman and Humble's eightvertex dynamic graph using | 00 , 〉 | 01 , 〉 and six ancilla vertices, and in parallel, we do the same with | 10 , 〉 | 11 , 〉 and another six ancilla vertices, for a total of twelve ancillas. The quantum walk on this multiplies | 01 〉 and | 11 〉 by e iπ/ 4 while leaving | 00 〉 and | 10 〉 unchanged, hence applying the T gate to the right qubit. The ancillas keep their initially zero amplitude. With n qubits, this generalization requires 2 n +2 vertices to apply the T gate to a single qubit. We can also modify this algorithm so that each pair (e.g., | 00 〉 and | 01 , or 〉 | 10 〉 and | 11 ) gets 〉 T applied sequentially. Then, the six ancillas can be reused, but the computational time is multiplied by 2 n -1 .

With loopless isolated vertices, the T gate becomes trivial. | 0 〉 can be made static using a loopless isolated

FIG. 4. A quantum circuit of three qubits with four alternating layers of one- and two-qubit gates.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-10010f46-1b7e-405f-ad62-a40177a48924.jpg)

vertex, and | 1 〉 can be given a phase of e iπ/ 4 using a self-loop for time 7 π/ 4. This is shown in the second row of Table III, and it is a dramatic reduction from six graphs of eight vertices each to a single graph of two vertices. The total time is also more than halved from 15 π/ 4 to 7 π/ 4. Finally, our simpler construction is easily extended to multiple qubits, similar to Fig. 2. Compared to the parallel generalization of Herrman and Humble's approach, our construction reduces the number of vertices by a factor of four (from eight vertices for each pair to simply the pair).

This construction of T can also be modified to implement any phase e iθ by evolving for time n (2 π ) -θ for integer n such that the evolution time is positive. For example, to implement the phase gate S (the square root of Z ), we can evolve for time 1 · 2 π -π/ 2 = 3 π/ 2.

Closing out the universal gate set, CNOT is a twoqubit gate that flips the second qubit if the first qubit is 1. Then, it transforms c 0 | 00 〉 + · · · + c 3 | 11 〉 to

$$c _ { 0 } | 0 0 \rangle + c _ { 1 } | 0 1 \rangle + c _ { 3 } | 1 0 \rangle + c _ { 2 } | 1 1 \rangle.$$

In other words, we simply swap the amplitudes at | 10 〉 and | 11 , which can be done using 〉 P 2 for time π/ 2, but this includes an overall phase of -i . To remove the phase, Herrman and Humble begin by evolving with isolated vertices with self-loop for time 3 π/ 2, as shown in the last row of Table III. Note vertices | 00 〉 and 01 | 〉 evolve the entire time of 2 π as isolated vertices with self-loops, which means there is no net change. It may be more clear to make them loopless isolated vertices, however, so that regardless the total evolution time, their amplitudes remain constant. This is shown in the last row of Table III. Note we also swapped the order of the graphs for clarity. Finally, as noted by Herrman and Humble, the Toffoli gate has a similar implementation, except it swaps | 110 〉 and | 111 . 〉

## IV. CIRCUIT SIMULATION

Now let us verify these implementations by simulating the quantum circuit shown in Fig. 4. This circuit has four layers that alternate between one-qubit gates and twoqubit gates. Similar random circuits, with more qubits and layers, are used to demonstrate quantum supremacy [13, 14]. The qubits begin in the all-zeros state | 000 , 〉

FIG. 5. A dynamic graph on which a continuous-time quantum walk implements the circuit in Fig. 4. The eight vertices 000 001 , , . . . , 111 are ordered from top-to-bottom, left-to-right.

| t = 3 π/ 2   | t = π/ 4   | t = 3 π/ 2   | t = π/ 2   | t = 3 π/ 2   | t = 3 π/ 2   | t = π/ 4   | t = 3 π/ 2   |
|--------------|------------|--------------|------------|--------------|--------------|------------|--------------|
| t = π/ 2     | t = 3 π/ 2 | t = π/ 2     | t = π      | t = 7 π/ 4   | t = π        | t = π/ 2   | t = 3 π/ 2   |

and the state after each layer can be directly calculated:

$$| |$$

$$\text{and the state after each layer can be directly calculated:} \quad & \text{solid} \\ | \text{000} \rangle \xrightarrow [ \frac { H \otimes X \otimes H } { 2 } \left ( | \text{010} \rangle + | \text{011} \rangle + | \text{110} \rangle + | \text{111} \right ) \quad ( 3 ) \quad \text{of the} \\ \xrightarrow [ \frac { C \text{NOT} _ { 1, 2 } } { 2 } \left ( | \text{010} \rangle + | \text{011} \rangle + | \text{100} \rangle + | \text{101} \right ) \quad ( 4 ) \quad \text{from} \\ \xrightarrow [ \frac { Y \otimes T \otimes Z } { 2 } \left ( - i | \text{000} \rangle + i | \text{001} \right ) \quad ( 5 ) \quad \text{green} \\ \quad \quad \quad$$

Note the circuit includes all the Pauli X , Y , Z gates and the entire universal gate set H T , , CNOT. This differs from Herrman and Humble's simulations of quantum teleportation and the quantum ripple-carry adder, which did not use the Y or T gates. Their simulation of Fig. 4 would require ancillas, but ours does not require any; only 2 3 = 8 vertices are needed.

Using our constructions, the circuit in Fig. 4 is implemented by a quantum walk on the dynamic graph shown in Fig. 5. The first three graphs implement H on the first (leftmost) qubit, graphs four and five implement X on the second qubit, graphs six through eight implement H on the third qubit, graphs nine and ten implement CNOT with the first qubit as the control and the second qubit as the target, graphs eleven and twelve implement Y on the first qubit, graph thirteen implements T on the second qubit, graph fourteen implements Z on the third qubit, and graphs fifteen and sixteen implement CNOT with the third qubit as the control and the second qubit as the target.

Performing a continuous-time quantum walk on this dynamic graph, we get the evolution in Fig. 6. At t = 0, the probability is entirely at vertex | 000 , as shown by the 〉

solid black curve in Fig. 6a. At t = 17 π/ 2 ≈ 26 7, which . is marked by the first vertical dashed line, the first layer of the circuit has been applied, and the states | 010 , 〉 | 011 , 〉 | 110 , and 〉 | 111 〉 each have probability 1 / 4, as expected from (3). These correspond to the dotted green curve in Fig. 6a, the dot-dashed blue curve in Fig. 6a, the dotted green curve in Fig. 6b, and the dot-dashed blue curve in Fig. 6b, respectively. Then, at t = 21 π/ 2 ≈ 33 0, which . is marked by the second vertical dashed line, the second layer of the circuit has been applied. In agreement with (4), the probability is 1 / 4 each at vertices | 010 , 〉 | 011 , 〉 | 100 , 〉 and | 101 , 〉 which correspond to the dotted green curve in Fig. 6a, the dot-dashed blue curve in Fig. 6a, the solid black curve in Fig. 6b, and the dashed red curve in Fig. 6b, respectively. Next, at t = 59 π/ 4 ≈ 46 3, which . is marked by the third vertical dashed line, the third layer of the circuit has been applied, and the probability is now 1 4 at each of / the vertices | 000 , 〉 | 001 , 〉 | 110 , 〉 and | 111 , 〉 in agreement with (5). These probabilities correspond to the solid black curve in Fig. 6a, dashed red curve in Fig. 6a, dotted green curve in Fig. 6b, and dot-dashed blue curve in Fig. 6b. Finally, at the end of the figures at t = 67 π/ 4 ≈ 52 6, . the entire circuit has been applied. In agreement with (6), the probability is 1 / 4 at each of the vertices | 000 , 〉 | 011 , 〉 | 101 , and 〉 | 111 , 〉 which correspond to the solid black curve in Fig. 6a, dotdashed blue curve in Fig. 6a, dashed red curve in Fig. 6b, and dotted green curve in Fig. 6b. Furthermore, although they are not shown in the figures, the amplitudes of the simulation also agree with the analytical calculation, with the correct phases.

## V. CONCLUSION

To summarize, quantum walks are the basis for many quantum algorithms, just as classical random walks, or

FIG. 6. The probability at each vertex as the quantum walk on Fig. 5 evolves with time. The vertical dashed lines mark t = 17 π/ 2, 21 π/ 2, and 59 π/ 4, and the figure ends at t = 67 π/ 4. In (a), the solid black, dashed red, dotted green, and dot-dashed blue curves denote the probability in vertices | 000 , 〉 | 001 , 〉 | 010 , and 〉 | 011 , respectively. 〉 In (b), they respectively denote the probability in vertices | 100 , 〉 | 101 , 〉 | 110 , 〉 and | 111 . 〉

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00507v2-figure-fa65eb86-88a9-4bae-ad03-45cea187a928.jpg)

Markov chains, are the basis for many classical algorithms. Since quantum walks are universal, they fully encompass the power of quantum computing. Recent work by Herrman and Humble gave a new proof of universal-

- [1] E. Farhi and S. Gutmann, 'Quantum computation and decision trees,' Phys. Rev. A 58 , 915-928 (1998).
- [2] A. M. Childs and J. Goldstone, 'Spatial search by quantum walk,' Phys. Rev. A 70 , 022314 (2004).
- [3] E. Farhi, J. Goldstone, and S. Gutmann, 'A quantum algorithm for the Hamiltonian NAND tree,' Theory Comput. 4 , 169-190 (2008).
- [4] A. M. Childs, R. Cleve, E. Deotto, E. Farhi, S. Gutmann, and D. A. Spielman, 'Exponential algorithmic speedup by a quantum walk,' in Proceedings of the 35th Annual ACM Symposium on Theory of Computing , STOC '03 (ACM, New York, NY, USA, 2003) pp. 59-68.
- [5] A. M. Childs, 'Universal computation by quantum walk,' Phys. Rev. Lett. 102 , 180501 (2009).
- [6] S. Bose, A. Casaccino, S. Mancini, and S. Severini, 'Communication in XYZ all-to-all quantum networks with a missing link,' Int. J. Quantum Inf. 07 , 713-723 (2009).

ity by giving explicit constructions of dynamic graphs that implement a set of universal quantum gates. In this paper, we simplified these constructions by permitting isolated vertices to be loopless, which keeps their amplitudes constant for all time. This eliminated ancillas, reduced the number of graphs in sequences, yielded constructions that are easily generalized to multi-qubit systems, and provided clarity as to which vertices are unchanged in a given step. As such, we have simplified the conversion of quantum circuits to continuous-time quantum walks. We also constructed an arbitrary phase gate, of which Z S , , and T are specific instances. Finally, we verified our constructions by simulating a quantum circuit that alternates between layers of one-qubit and two-qubit gates, similar to those used to demonstrate quantum supremacy, using a quantum walk. This circuit validated all the Pauli gates and our entire universal gate set.

Further research includes improving the constructions we discussed or constructing dynamic graphs for other quantum gates. One example is to permit self-loops on non-isolated vertices. As a trivial example, if both vertices in P 2 also have self-loops, then besides the usual mixing of the amplitudes, each will also be multiplied by a phase e -it . This would reduce the time of some gates by combining consecutive P 2 's and K glyph[anticlockwise] 1 's for some time, such as in our constructions of the X , alternate H in Fig. 3, and CNOT gates. Another approach is using lackadaisical quantum walks [15], where vertices have self-loops of various weights to indicate how 'lazy' the walk is at each vertex [16].

## ACKNOWLEDGMENTS

This work was supported by startup funds from Creighton University.

- [7] T. G. Wong, L. Tarrataca, and N. Nahimov, 'Laplacian versus adjacency matrix in quantum walk search,' Quantum Inf. Process. 15 , 4029-4048 (2016).
- [8] V. M. Kendon and C. Tamon, 'Perfect state transfer in quantum walks on graphs,' J. Comput. Theor. Nanosci. 8 , 422-433 (2011).
- [9] R. Herrman and T. S. Humble, 'Continuous-time quantum walks on dynamic graphs,' Phys. Rev. A 100 , 012306 (2019).
- [10] M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information (Cambridge University Press, 2000) p. 189.
- [11] E. Farhi, J. Goldstone, and S. Gutmann, 'A quantum approximate optimization algorithm,' arXiv:1411.4028 [quant-ph] (2014).
- [12] T. S. Humble, private communication.
- [13] S. Aaronson and L. Chen, 'Complexity-Theoretic Foundations of Quantum Supremacy Experiments,'

in 32nd Computational Complexity Conference (CCC 2017) , Leibniz International Proceedings in Informatics (LIPIcs), Vol. 79, edited by Ryan O'Donnell (Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, Dagstuhl, Germany, 2017) pp. 22:1-22:67.

- [14] F. Arute, K. Arya, R. Babbush, D. Bacon, J. C. Bardin, R. Barends, R. Biswas, S. Boixo, F. G. S. L. Brandao, D. A. Buell, B. Burkett, Y. Chen, Z. Chen, B. Chiaro, R. Collins, W. Courtney, A. Dunsworth, E. Farhi, B. Foxen, A. Fowler, C. Gidney, M. Giustina, R. Graff, K. Guerin, S. Habegger, M. P. Harrigan, M. J. Hartmann, A. Ho, M. Hoffmann, T. Huang, T. S. Humble, S. V. Isakov, E. Jeffrey, Z. Jiang, D. Kafri, K. Kechedzhi, J. Kelly, P. V. Klimov, S. Knysh, A. Korotkov, F. Kostritsa, D. Landhuis, M. Lind-

mark, E. Lucero, D. Lyakh, S. Mandr`, J. R. McClean, a M. McEwen, A. Megrant, X. Mi, K. Michielsen, Ma. Mohseni, J. Mutus, O. Naaman, M. Neeley, C. Neill, M. Y. Niu, E. Ostby, A. Petukhov, J. C. Platt, C. Quintana, E. G. Rieffel, P. Roushan, N. C. Rubin, D. Sank, K. J. Satzinger, V. Smelyanskiy, K. J. Sung, M. D. Trevithick, A. Vainsencher, B. Villalonga, T. White, Z. J. Yao, P. Yeh, A. Zalcman, H. Neven, and J. M. Martinis, 'Quantum supremacy using a programmable superconducting processor,' Nature 574 , 505-510 (2019).

- [15] T. G. Wong, 'Grover search with lackadaisical quantum walks,' J. Phys. A: Math. Theor. 48 , 435304 (2015).
- [16] T. G. Wong, 'Coined quantum walks on weighted graphs,' J. Phys. A: Math. Theor. 50 , 475301 (2017).
Thomas G. Wong
Isolated Vertices in Continuous-Time Quantum Walks on Dynamic Graphs
It was recently shown that continuous-time quantum walks on dynamic graphs,
i.e., sequences of static graphs whose edges change at specific times, can
implement a universal set of quantum gates. This result treated all isolated
vertices as having self-loops, so they all evolved by a phase under the quantum
walk. In this paper, we permit isolated vertices to be loopless or looped, and
loopless isolated vertices do not evolve at all under the quantum walk. Using
this distinction, we construct simpler dynamic graphs that implement the Pauli
gates and a set of universal quantum gates consisting of the Hadamard, $T$, and
CNOT gates, and these gates are easily extended to multi-qubit systems. For
example, the $T$ gate is simplified from a sequence of six graphs to a single
graph, and the number of vertices is reduced by a factor of four. We also
construct a generalized phase gate, of which $Z$, $S$, and $T$ are specific
instances. Finally, we validate our implementations by numerically simulating a
quantum circuit consisting of layers of one- and two-qubit gates, similar to
those in recent quantum supremacy experiments, using a quantum walk.