Top Banner
Experimental Comparison of Two Quantum Computing Architectures N. M. Linke, 1 D. Maslov, 2, 3 M. Roetteler, 4 S. Debnath, 1 C. Figgatt, 1 K. A. Landsman, 1 K. Wright, 1 and C. Monroe 1, 3, 5 1 Joint Quantum Institute and Department of Physics, University of Maryland, College Park, MD 20742 2 National Science Foundation, Arlington, VA 22230 3 Joint Center for Quantum Information and Computer Science, University of Maryland, College Park, MD 20742 4 Microsoft Research, Redmond, WA 98052 5 IonQ, Inc., College Park, MD 20742 We run a selection of algorithms on two state-of-the-art 5-qubit quantum computers that are based on different technology platforms. One is a publicly accessible superconducting transmon device [1] with limited connectivity, and the other is a fully connected trapped-ion system [2]. Even though the two systems have different native quantum interactions, both can be programmed in a way that is blind to the underlying hardware, thus allowing the first comparison of identical quantum algorithms between different physical systems. We show that quantum algorithms and circuits that employ more connectivity clearly benefit from a better connected system of qubits. While the quantum systems here are not yet large enough to eclipse classical computers, this experiment exposes critical factors of scaling quantum computers, such as qubit connectivity and gate expressivity. In addition, the results suggest that co-designing particular quantum applications with the hardware itself will be paramount in successfully using quantum computers in the future. Inspired by the vast computing power a universal quan- tum computer could offer, several candidate systems are being explored. They have allowed experimental demonstrations of quantum gates, operations, and algo- rithms of ever increasing sophistication. Recently, two ar- chitectures, superconducting transmon qubits [3–7] and trapped ions [2, 8], have reached a new level of matu- rity. They have become fully programmable multi-qubit machines that provide the user with the flexibility to im- plement arbitrary quantum circuits from a high-level in- terface. This makes it possible for the first time to test quantum computers irrespective of their particular phys- ical implementation. While the quantum computers considered here are still small scale and their capabilities do not currently reach beyond small demonstration algorithms, this line of in- quiry can still provide useful insights into the perfor- mance of existing systems and the role of architecture in quantum computer design. These will be crucial for the realization of more advanced future incarnations of the present technologies. The standard abstract model of quantum computa- tion assumes that interactions between arbitrary pairs of qubits are available. However, physical architectures will in general have certain constraints on qubit connec- tivity, such as nearest-neighbor couplings only. These re- strictions do not in principle limit the ability to perform arbitrary computations, since SWAP operations may be used to effect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected system to the more sparse star-shaped or linear nearest-neighbor connectivity requires an increase in the number of gates of O(n), where n is the number (a) (b) 4 5 3 2 1 2 3 4 5 1 FIG. 1. Graphic representations of the two systems: (a) the superconducting qubits connected by microwave resonators (Credit: IBM Research), and (b) the linear chain of trapped ions connected by laser-mediated interactions. Insets: Qubit connectivity graphs, (a) star-shaped and (b) fully connected. of qubits [9]. How much overhead is incurred in practice depends on the connections used in a particular circuit and how efficiently they can be matched to the physical qubit-to-qubit interaction graph. In this article, we make use of the public access re- cently granted by IBM to a 5-qubit superconducting de- vice (illustrated in fig.1(a)) via their “Quantum Experi- ence” cloud service [1]. This allows us to repeat algo- rithms that we perform in our own ion trap experiment on an independent quantum computer of identical size and comparable capability but with a different physical implementation at its core. arXiv:1702.01852v1 [quant-ph] 7 Feb 2017
10

Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

Mar 14, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

Experimental Comparison of Two Quantum Computing Architectures

N. M. Linke,1 D. Maslov,2, 3 M. Roetteler,4 S. Debnath,1 C.

Figgatt,1 K. A. Landsman,1 K. Wright,1 and C. Monroe1, 3, 5

1Joint Quantum Institute and Department of Physics,University of Maryland, College Park, MD 20742

2National Science Foundation, Arlington, VA 222303Joint Center for Quantum Information and Computer Science,

University of Maryland, College Park, MD 207424Microsoft Research, Redmond, WA 98052

5IonQ, Inc., College Park, MD 20742

We run a selection of algorithms on two state-of-the-art 5-qubit quantum computers that are basedon different technology platforms. One is a publicly accessible superconducting transmon device [1]with limited connectivity, and the other is a fully connected trapped-ion system [2]. Even though thetwo systems have different native quantum interactions, both can be programmed in a way that isblind to the underlying hardware, thus allowing the first comparison of identical quantum algorithmsbetween different physical systems. We show that quantum algorithms and circuits that employ moreconnectivity clearly benefit from a better connected system of qubits. While the quantum systemshere are not yet large enough to eclipse classical computers, this experiment exposes critical factorsof scaling quantum computers, such as qubit connectivity and gate expressivity. In addition, theresults suggest that co-designing particular quantum applications with the hardware itself will beparamount in successfully using quantum computers in the future.

Inspired by the vast computing power a universal quan-tum computer could offer, several candidate systemsare being explored. They have allowed experimentaldemonstrations of quantum gates, operations, and algo-rithms of ever increasing sophistication. Recently, two ar-chitectures, superconducting transmon qubits [3–7] andtrapped ions [2, 8], have reached a new level of matu-rity. They have become fully programmable multi-qubitmachines that provide the user with the flexibility to im-plement arbitrary quantum circuits from a high-level in-terface. This makes it possible for the first time to testquantum computers irrespective of their particular phys-ical implementation.

While the quantum computers considered here are stillsmall scale and their capabilities do not currently reachbeyond small demonstration algorithms, this line of in-quiry can still provide useful insights into the perfor-mance of existing systems and the role of architecturein quantum computer design. These will be crucial forthe realization of more advanced future incarnations ofthe present technologies.

The standard abstract model of quantum computa-tion assumes that interactions between arbitrary pairsof qubits are available. However, physical architectureswill in general have certain constraints on qubit connec-tivity, such as nearest-neighbor couplings only. These re-strictions do not in principle limit the ability to performarbitrary computations, since SWAP operations may beused to effect gates between arbitrary qubits using theconnections available. For a general circuit, reducing afully-connected system to the more sparse star-shaped orlinear nearest-neighbor connectivity requires an increasein the number of gates of O(n), where n is the number

(a) (b)4

5

3

2

1

2

34

5

1

FIG. 1. Graphic representations of the two systems: (a) thesuperconducting qubits connected by microwave resonators(Credit: IBM Research), and (b) the linear chain of trappedions connected by laser-mediated interactions. Insets: Qubitconnectivity graphs, (a) star-shaped and (b) fully connected.

of qubits [9]. How much overhead is incurred in practicedepends on the connections used in a particular circuitand how efficiently they can be matched to the physicalqubit-to-qubit interaction graph.

In this article, we make use of the public access re-cently granted by IBM to a 5-qubit superconducting de-vice (illustrated in fig.1(a)) via their “Quantum Experi-ence” cloud service [1]. This allows us to repeat algo-rithms that we perform in our own ion trap experimenton an independent quantum computer of identical sizeand comparable capability but with a different physicalimplementation at its core.

arX

iv:1

702.

0185

2v1

[qu

ant-

ph]

7 F

eb 2

017

Page 2: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

2

PHYSICAL SYSTEMS

The ion trap system consists of five 171Yb+ ions whichare confined in a linear Paul trap and laser-cooled closeto their motional ground state (see fig.1(b)) [2]. Thequbits are magnetic field-insensitive pairs of states in thehyperfine-split 2S1/2 ground-level of each atom, whichgives a qubit frequency of 12.642821 GHz. All controland measurement is performed optically. State prepara-tion and readout are accomplished by optical pumpingand state-dependent fluorescence detection [10]. Qubitoperations are realized via pairs of Raman beams, de-rived from a single 355 nm mode-locked laser. These op-tical controllers consist of an array of individual address-ing beams and a counter-propagating global beam thatilluminates the entire chain [2]. Single-qubit rotationsare driven by a Raman beat-note of defined amplitude,phase, and duration resonant with the qubit frequency.Two-qubit operations are produced by applying Ramanbeams to a pair of ions, with beat-note frequencies nearthe motional sidebands. This creates an effective XX-Ising interaction between the spins mediated by all modesof motion [11–13]. We use a pulse-shaping scheme toensure spin and motion are disentangled at the end ofthe operation [14, 15]. Since all ions partake in the col-lective motion of the chain, gates between any pair canbe invoked in this way (see inset of fig.1(b)). The ad-dressing during operations and the distinction betweenqubits during readout are both achieved by spatially re-solving the ions. The fidelities for single- and two-qubitgates are typically 99.1(5)% and 97(1)%, respectively.The single-qubit readout fidelity is 99.7(1)% for state |0〉,and 99.1(1)% for state |1〉. The latter is lower since off-resonant excitation during readout predominantly causes|1〉 → |0〉 pumping. The average readout fidelity for anentire 5-qubit state is 95.7(1)%. This is lower than onewould expect from the average single-qubit readout fi-delity, since there is crosstalk that leads to |0〉 → |1〉errors on adjacent channels. Typical gate times are 20µsfor single- and 250 µs for two-qubit gates. Spin depo-larization is negligible for hyperfine ground level qubits(T1 ∼ ∞). The spin-dephasing time (T ∗2 ) is ∼ 0.5s in thecurrent setup, and can be easily extended by suppressingmagnetic field noise.

In analogy to atoms given by nature, the man-madesuperconducting circuits in the IBM quantum computercan be thought of as “artificial atoms” [17]. They aretransmon qubits [18], or superconducting islands con-nected by Josephson junctions and shunt capacitors thatprovide superpositions of charge states which are insen-sitive to charge fluctuations. The device used here has arange of qubit frequencies between 5 and 5.4 GHz [19].The qubits are connected to each other and the classicalcontrol system by microwave resonators. State prepa-ration [20] and readout, as well as single- [21] and two-

a •• •

Rπ4y R

π4y R

−π4

y R−π

4y

bT † T T † T

T † • • • •H • T • T † H

c |0〉 H • H

|0〉 H • H

|0〉 H • H

|0〉 H • H

|1〉 H H

d |0〉 H X • X H • H

|0〉 H Z H Z H

|0〉 H X • X H • H

|0〉 H X Z X H Z H

1

FIG. 2. High level circuits of the implemented example com-putations (gates defined in [16]): Margolus gate (a), Tof-foli gate (b), Bernstein-Vazirani (c), and hidden shift (d).The Bernstein-Vazirani algorithm is shown for the oraclec = (1111), where all CNOTs are present. The hidden shiftdiagram represents the shift pattern s = (1011), where X-operations are present on qubits 1, 3 and 4.

qubit gates [22], are achieved by applying tailored mi-crowave signals to this network and measuring the re-sponse. Qubits are resolved in the frequency domainduring addressing and readout. In the Quantum Ex-perience hardware, the qubits are connected in a star-shaped pattern that provides four two-qubit interactions(see inset fig.1(a)), which are CNOT gates targeting thecentral qubit. Single-qubit readout fidelities are typically∼ 96% [1], and the average readout fidelity for an arbi-trary 5-qubit state is ∼ 80% [19]. Typical gate fidelitiesare 99.7% and 96.5% for single- and two-qubit gates, re-spectively. Typical gate times are 130 ns for single- and250 − 450 ns for two-qubit gates, while coherence timesare ∼ 60 µs for both depolarization (T1) and spin de-phasing (T2). The publicly accessible system runs au-tonomously, not requiring any human intervention overmany weeks [19]. This level of reliability may come at a

Page 3: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

3

TABLE I. Single- and two-qubit gate counts for the circuitson the superconducting (star-shaped) and the ion trap (fullyconnected) system after mapping to the respective hardwareusing the respective gate libraries. For comparison, the gatecounts for a linear nearest-neighbor (LNN) architecture asimplemented in [3] are included. We also note the gate countfor the Quantum Fourier Transfrom (QFT) for 3 and 5 qubits.The latter was implemented in [2] using a sequence of modulargates that was not optimized for gate count. The QFT-5cannot be implemented exactly using the current IBM gatelibrary. If we assume Za operations are possible, the countsshown as ∗ are 47 for single- and 29 for two-qubit gates.

connectivity star-shaped LNN fully conn.hardware supercond. ion trap

gate library Clifford+T Clifford+Za R/XXgate type single two single two single two

Margolus 20 3 20 3 11 3Toffoli 17 10 9 10 9 5

Bernstein-Vazirani 10 0-4 10 0-10 14-26 0-4Hidden Shift 28-34 10 20-26 4 42-50 4

QFT-3 42 19 11 7 8 3QFT-5 ∗ ∗ 35 28 22 10

cost due to drifts between periodic calibrations. Higherconnectivity can in general be achieved by coupling 3-4transmons to one resonator, limited by spectral resolu-tion. The present layout could be modified to provideconnections from qubit 1 to 5, and 2 to 4 [19]. Fur-thermore, other superconducting architectures involvingmulti-mode resonators [5] can offer higher connectivity.

On these two machines, we compare a selection of com-posite gates and algorithms that represent a variety ofcircuit connectivities. In each case, we map the algo-rithms to the device by breaking them down into circuitsmade up of gates native to the specific hardware. We relyon an optimization protocol [23] to accomplish this taskfor the trapped ions, and CNOT+T/Za algebra [24] withfurther manual optimization to compose the experimentsfor the IBM machine. The available gate set for the iontrap system consists of the two-qubit XX gate, as wellas arbitrary single-qubit Rθ

α gate rotations by an angle θabout any axis (given by α) on the equator of the Blochsphere. We call this the R/XX library. The IBM systemmakes available the family of gates (X, Y, Z, H, S, CNOTand T [16]), known as the Clifford+T library. Since eachgate is subject to errors, the circuits are optimized tominimize the number of operations used. The resultinggate numbers are optimal for two-qubit gates, and eitheroptimal or close to optimal for single-qubit gates. Thetotal number of single- and two-qubit gates for each al-gorithm is shown in table I. The R/XX library offers abetter overall expressive power. However, we note thatthe Clifford+T library was likely chosen for didactic rea-sons and is not native to superconducting systems, whichdo in principle offer continuous parameters for single- andtwo-qubit gates.

In addition to the two systems considered here, the ta-ble also gives the numbers for a linear nearest-neighbor(LNN) connectivity architecture as used, e.g., in super-conducting qubits [3] as well as semiconductor gatedquantum dots [25]. The numbers in table I show thatthe two-qubit gate count strongly depends on the match-ing between the circuit and the qubit connectivity graph.The LNN architecture is as efficient as the fully connectedsystem for the hidden shift algorithm, while the star-shaped system incurs overheads; the reverse is true forthe Bernstein-Vazirani algorithm (see fig.2).

ALGORITHMS

Margolus and Toffoli Gate

The Toffoli gate is a 3-qubit controlled-controlled-NOTgate that requires 6 CNOT gates [26, 27]. It is possible toimplement a Toffoli with 5 entangling gates if the square-root of the CNOT operation is available [16], which is thecase with the trapped ion XX gate. The Margolus gate isa simplified version of the Toffoli operation, which intro-duces an additional phase on the state corresponding to|100〉. It can be realized with just 3 CNOT gates [28, 29].The circuits are shown in figure 2(a,b). Note that forthe Margolus gate, all entangling operations connect tothe same qubit, which means that this circuit can berealized efficiently with star-shaped qubit connectivity.The systems perform this circuit at success probability74.1(7)% for superconductors and 90.1(2)% for ions (seefigure 3(a1,b1)).

The full Toffoli circuit uses the same three qubits as theMargolus implementation so that preparation and mea-surement errors remain the same. The optimized circuitfor the fully connected ion trap system contains 5 two-qubit gates and the additional operations lower the fi-delity to 85.0(2)% (see figure 3(b2)). For the star-shapedsystem, an additional 7 two-qubit gates are needed toeffect the SWAP operations necessary to go from theMargolus to the full Toffoli gate. This leads to a re-duced success rate of 52.6(8)% for the superconductingsystem (3(a2)). Note that the transformation |a, b, c〉 →|c ⊕ ab, b, a〉 may be obtained with the Clifford+T li-brary on a star-shaped graph with the provably mini-mal number of 7 CNOT gates. We do not consider suchinput-to-output mappings of the composite gates in thiswork. However, we always choose the most favorableinput-to-output mapping for the IBM star and LNN ar-chitectures when executing entire quantum algorithms,which is merely a classical swap between physically mea-sured signals.

Page 4: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

4

(a1) Margolus: Supercond. (b1) Margolus: Ion Trap

000011

111000

011

111

00.20.40.60.8

1

inputdetected

pro

ba

bili

ty

000011

111000

011

111

00.20.40.60.8

1

inputdetected

0

0.2

0.4

0.6

0.8

1

(a2) Toffoli: Supercond. (b2) Toffoli: Ion Trap

000011

111000

011

111

00.20.40.60.8

1

inputdetected

pro

ba

bili

ty

000011

111000

011

111

00.20.40.60.8

1

inputdetected

0

0.2

0.4

0.6

0.8

1

FIG. 3. Margolus gate results from the star-shaped super-conductor (a1) and the fully connected ion trap system (b1).The fidelities are 74.1(7)% and 90.1(2)%, respectively. Thefull Toffoli gate results give success probabilities of 52.6(8)%for the superconducting (a2) and 85.0(2)% for the ion trap(b2) system. The axes represent states as 3-bit binary num-bers. For each input state, the probabilities of detecting eachstate are shown.

Bernstein-Vazirani and Hidden Shift Algorithms

In the Bernstein-Vazirani algorithm, an oracle imple-ments the function fc(x) = x ·c. The algorithm finds theunknown bit string c in a single shot. In the oracle, c isencoded in a pattern of CNOT gates, all of which targetthe ancilla qubit [30]. As can be seen from the circuit infigure 2(c), the entire algorithm maps well onto a star-shaped architecture. This algorithm is very similar to aparity check circuit used in error correction applications,and indeed the IBM system was laid out with this appli-cation in mind [7]. The single-shot success probabilitiesare 72.8(5)% for the star-shaped superconducting systemand 85.1(1)% for the fully connected ion trap system (fig-ure 4(a1,b1)).

To compare this to a similar algorithm with differ-ent connectivity requirements, we implement the hid-den shift algorithm [31] for a black box bent function[32, 33]. An oracle implements the shifted version f(x+s)of the known Boolean function f . We want to determinethe n-bit string s that constitutes the “hidden shift”.For a subset of Boolean functions, there exists a quan-tum algorithm that can solve this problem in a singleoracle query, while classical algorithms require Ω(

√2n)

queries. This subset contains functions which have a flatFourier spectrum and whose dual f∼ can be calculatedefficiently, i.e. so-called bent functions of the Maiorana-

McFarland class [33]. Here we choose the 4-bit functionf(x) = x1x2 ⊕ x3x4 for which f = f∼. We implementall possible 4-bit shift patterns s using the circuit shownin figure 2(d). The algorithm output state directly cor-responds to the hidden shift s. The circuit involves gatesbetween two disconnected pairs of qubits, which createsan overhead of 6 two-qubit gates for a star-shaped archi-tecture. The results are shown in figure 4(a2,b2). Thefidelity of the fully connected ion trap implementation is77.1(2)%, compared to 35.1(6)% for the superconductingdevice. The numerical values of the data plotted in figure3 and 4 are reproduced as tables in the Appendix.

The errors in both devices appear concentrated in cer-tain sets of states, leading to patterns in the off-diagonalelements of the result plots (see figure 4). These highlystructured signatures suggest that systematic errors dom-inate, especially readout errors. The grouped patternssuch as in figure 4(a1) indicate flips of the least-significantbits, while parallel lines correspond to the most signifi-cant bits changing their state. In the trapped ion re-sults, these lines can be modulated in height due toread-out crosstalk and are more pronounced on the lower-numbered state side due to 1 → 0 being the dominantdetection error channel. Finally, we stress that compar-ing quantum computations across systems depends onthe specifics of error propagation, which will vary be-tween different hardware implementations, through theirparticular connectivity and physical errors. We summa-rize the success probabilities for the implemented cir-cuits on both machines in Table II. We also show theexpected values for two simple error propagation mod-els based on the errors of the individual gates εg and ofM -qubit single-shot readout εM for both systems. Thefirst model assumes random error propagation per oper-

ation with overall error (1 − εM )M (1 − εg)√N , where N

is the number of gates. Since the errors for each stepare independent and comparable to a random walk, theoverall error involves

√N factors. The second model is

based on systematic (coherent) over- or under-rotationswith overall error (1−εM )M (1−εg)N , which accumulateswith N factors. We see that the numbers are broadlyconsistent, with systematic errors better predicting thesuperconducting system while the ion trap performancefalls in between the two. The superconducting HiddenShift algorithm is the only example with a significantlylower experimental result, perhaps from inhomogeneouserrors in the device.

OUTLOOK

Comparing quantum computing architectures involvesmany interrelated factors. Quantum gate operation fi-delities, qubit numbers, primitive gate speeds, and co-herence times are obviously important low-level metricsin a large scale quantum computer. The results pre-

Page 5: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

5

(a2) Hidden shift: Superconductor (b2) Hidden shift: Ion Trap

00000100

10001100

0000

0100

1000

1100

0

0.2

0.4

0.6

0.8

1

hidden shift sdetected state

pro

babili

ty

0

0.2

0.4

0.6

0.8

1

00000100

10001100

0000

0100

1000

1100

0

0.2

0.4

0.6

0.8

1

hidden shift sdetected state

pro

babili

ty

(a1) Bernstein-Vazirani: Superconductor

00000100

10001100

0000

0100

1000

1100

0

0.2

0.4

0.6

0.8

1

oracle cdetected state

pro

babili

ty

0

0.2

0.4

0.6

0.8

1

(b1) Bernstein-Vazirani: Ion Trap

00000100

10001100

0000

0100

1000

1100

0

0.2

0.4

0.6

0.8

1

oracle cdetected state

pro

ba

bili

ty

FIG. 4. Results from the Bernstein-Vazirani algorithm implementing the oracle function fc(x) = x0c0⊕c1x1⊕c2x2⊕c3x3 for allpossible 4-bit oracles c performed on the star-shaped (a1) and the fully connected (b1) systems. The average success probabilitiesare 72.8(5)% for the superconductor and 85.1(1)% for the ion trap system. Hidden shift algorithm for f(x) = x0x1 ⊕ x2x3. Allpossible 4-bit shifted oracle functions are implemented on the superconducting system (a2) as well as the ion trap (b2). Theaverage success probabilities are 35.1(6)% and 77.1(2)%, respectively. The axes represent states and oracle parameters as 4-bitbinary numbers.

sented here show higher absolute fidelities and coher-ence times in the trapped ion system, with higher clockspeeds for the superconducting system. However, thesemetrics are moving targets: while these systems are themost advanced and versatile quantum computing plat-forms built to date, both technologies are currently ad-vancing rapidly.

In any case, such metrics should not be considered inisolation. Our comparison points to important higherlevel considerations in scaling a quantum computer. Theoverall performance of a quantum circuit and the “timeto solution” will depend critically on architectural re-strictions, qubit connectivity, gate reconfigurability, andgate expressivity, and these attributes will become evermore important as the system is scaled up. Even with 5-

qubit systems, we find that the qubit connectivity graphis best co-designed to mirror the structure of the par-ticular quantum circuit and that the choice of a moreexpressive gate library affects the efficiency of the com-putations.

The physical scaling of each of these leading technolo-gies has many challenges, and how they will be connectedand reconfigured at large scales is an open question. Oneof the biggest challenges is the management of the con-trol complexity in larger systems and potential cross-talkfrom overlapping qubit interactions or control buses. Inmost superconducting designs, there are many current-carrying wires necessary for control and biasing the indi-vidual qubits, and this may be difficult to route througha large superconducting chip [3–7]. It will likely become

Page 6: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

6

TABLE II. Summary of the achieved success probabilities forthe implemented circuits, in percent. The observed probabil-ities (“obs”) are tabulated alongside two simple error prop-agation models given the gate number N and the individ-ual gate and readout errors of the two systems encapsulatedin the parameters εg and εM , respectively (see main text).The first estimate assumes random (“rand”) error propaga-

tion with overall error (1 − εg)√

N while the second is basedon systematic (“sys”) coherent over- or under-rotations withoverall error (1 − εg)N , where N is the number of gates. Thereadout error for M qubits is (1 − εM )M in both cases.

connectivity star-shaped fully conn.hardware supercond. ion trap

success prob/% obs rand sys obs rand sys

Margolus 74.1(7) 82 75 90.1(2) 91 81Toffoli 52.6(8) 78 59 85.0(2) 89 78

Bernstein-Vazirani 72.8(5) 80 74 85.1(1) 90 77Hidden Shift 35.1(6) 75 52 77.1(2) 86 57

a great challenge to manage the dilution refrigerator heatbudget with such circuitry. Alternative modular super-conducting architectures improve connectivity by inte-grating qubits with microwave cavity modes, at the ex-pense of significant added volume per qubit [34]. Ion trapdesigns will hinge upon the stable and accurate deliveryof laser beams (or near-field microwave sources) to ad-dress each qubit individually in a vacuum chamber. Thefully connected nature of the ion trap architecture maynot scale to arbitrarily large numbers of qubits, owingto the spectral overlap of collective normal modes of mo-tion. However, full connectivity between 20−100 trappedion qubits appears possible [2] and a modular approachfor scaling to much larger systems with high connectiv-ity and distance-independent operations seems promising[35, 36]. In any hardware, an automated calibration pro-cedure and powerful user interface will likely provide ahigher level of integration. Such system-level attributeswill become even more important as quantum circuitsgrow in complexity, regardless of physical platform.

ACKNOWLEDGEMENTS

We thank D. L. Moehring, J. Kim, and K. R. Brown forkey discussions, and J. Gambetta and J. Chow at IBM fortheir assistance in interfacing with the IBM Quantum Ex-perience project. This work was supported by the AROwith funds from the IARPA LogiQ program, the AFOSRMURI program on Optimal Quantum Circuits, and theNSF Physics Frontier Center at JQI. DM acknowledgessupport by the NSF. Any opinion, finding, and conclu-sions or recommendations expressed in this material arethose of the authors and do not necessarily reflect theviews of the NSF, IBM, or any of their employees.

[1] (2016). IBM Quantum Experience,http://www.research.ibm.com/quantum.

[2] Debnath S et al. (2016) Demonstration of a small pro-grammable quantum computer module using atomicqubits. Nature 536:63–66.

[3] Barends R et al. (2014) Superconducting quantum cir-cuits at the surface code threshold for fault tolerance.Nature 508:500–503.

[4] Corcoles AD et al. (2015) Demonstration of a quantumerror detection code using a square lattice of four super-conducting qubits. Nature Comm. 6:7979.

[5] Riste D et al. (2015) Detecting bit-flip errors in a logi-cal qubit using stabilizer measurements. Nature Comm.6:6983.

[6] Ofek N et al. (2016) Extending the lifetime of a quantumbit with error correction in superconducting circuits. Na-ture.

[7] Takita M et al. (2016) Demonstration of weight-fourparity measurements in the surface code architecture.arXiv:1605.01351v2.

[8] Monz T et al. (2016) Realization of a scalable shor algo-rithm. Science 351(6277):1068–1070.

[9] Cheung D, Maslov D, Severini S (2007) Translation tech-niques between quantum circuit architectures in Work-shop on Quantum Information Processing.

[10] Olmschenk S et al. (2007) Manipulation and detection ofa trapped yb+ hyperfine qubit. Phys. Rev. A 76:052314.

[11] Mølmer K, Sørensen A (1999) Multiparticle entangle-ment of hot trapped ions. Phys. Rev. Lett. 82:1835–1838.

[12] Solano E, de Matos Filho RL, Zagury N (1999) Determin-istic bell states and measurement of the motional stateof two trapped ions. Phys. Rev. A 59:R2539–R2543.

[13] Milburn G, Schneider S, James D (2000) Ion trap quan-tum computing with warm ions. Fortschritte der Physik48(9-11):801–810.

[14] Zhu SL, Monroe C, Duan LM (2006) Trapped ion quan-tum computation with transverse phonon modes. Phys.Rev. Lett. 97:050505.

[15] Choi T et al. (2014) Optimal quantum control of multi-mode couplings between trapped ion qubits for scalableentanglement. Phys. Rev. Lett. 112:190502.

[16] Nielsen MA, Chuang IL (2011) Quantum Computationand Quantum Information: 10th Anniversary Edition.(Cambridge University Press, New York, NY, USA), 10thedition.

[17] Devoret MH, Schoelkopf RJ (2013) Superconducting cir-cuits for quantum information: An outlook. Science339(6124):1169–1174.

[18] Koch J et al. (2007) Charge-insensitive qubit design de-rived from the cooper pair box. Phys. Rev. A 76:042319.

[19] J. Gambetta, J. Chow (2016), private communication.[20] Geerlings K et al. (2013) Demonstrating a driven reset

protocol for a superconducting qubit. Phys. Rev. Lett.110:120501.

[21] Chow JM et al. (2010) Optimized driving of supercon-ducting artificial atoms for improved single-qubit gates.Phys. Rev. A 82:040305.

[22] Chow JM et al. (2011) Simple all-microwave entanglinggate for fixed-frequency superconducting qubits. Phys.Rev. Lett. 107:080502.

Page 7: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

7

[23] Maslov D (2016) Basic circuit compilation techniques foran ion-trap quantum machine. arXiv:1603.07678v3.

[24] Amy M, Maslov D, Mosca M, Roetteler M (2013)A meet-in-the-middle algorithm for fast synthesis ofdepth-optimal quantum circuits. IEEE Transactions onComputer-Aided Design of Integrated Circuits and Sys-tems 32:818 – 830.

[25] Zajac DM, Hazard TM, Mi X, Nielsen E, R. PJ (2016)Scalable gate architecture for densely packed semicon-ductor spin qubits. arXiv:1607.07025.

[26] Barenco A et al. (1995) Elementary gates for quantumcomputation. Phys. Rev. A 52:3457–3467.

[27] Shende VV, Markov IL (2009) On the cnot-cost of toffoligates. Quantum Info. Comput. 9(5):461–486.

[28] DiVincenzo DP (1998) Quantum gates and circuits. Pro-ceedings: Mathematical, Physical and Engineering Sci-ences 454(1969):261–276.

[29] Song G, Klappenecker A (2004) Optimal realizations ofsimplified toffoli gates. Quantum Info. Comput. 4(5):361–372.

[30] Bernstein E, Vazirani U (1997) Quantum complexity the-ory. SIAM J. Comput. 26:1411–1473.

[31] van Dam W, Hallgreen S, Lawrence I (2006) Quantum al-gorithms for some hidden shift problems. SIAM J. Com-put. 36(3):763–778.

[32] Childs A, Kothari R, Ozols M, Roetteler M (2013) Easyand Hard Functions for the Boolean Hidden Shift Prob-lem in Proc. TQC 2013, Leibniz International Proceed-

ings in Informatics (LIPIcs). (Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik), Vol. 22, pp. 50–79.

[33] Roetteler M (2010) Quantum algorithms for highly non-linear boolean functions in Proceedings of the 21st An-nual ACM-SIAM Symposium on Discrete Algorithms(SODA10). pp. 448–457.

[34] Brecht T et al. (2016) Multilayer Microwave IntegratedQuantum Circuits for Scalable Quantum Computing.Nature J. Quantum Inf. DOI: 10.1038/npjqi.2016.2.

[35] Monroe C et al. (2014) Large-scale modular quantum-computer architecture with atomic memory and photonicinterconnects. Phys. Rev. A 89:022317.

[36] Kielpinski D, Monroe C, Wineland DJ (2002) Architec-ture for a large-scale ion-trap quantum computer. Nature417:709–711.

APPENDIX

The detailed results from the algorithms presented inFigs. 3-4 are shown below as tables containing numericprobabilities. The target populations, with nominal unitprobabilities, are highlighted in yellow. The others, rep-resenting errors, show a bar graph scaled from 0 to 0.1to emphasize the systematic error patterns.

Page 8: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

8

MargolusSuperconductor 000 001 010 011 100 101 110 111

000 0.8252 0.0859 0.0713 0.0107 0.1230 0.0186 0.0059 0.0293001 0.0791 0.8086 0.0146 0.0801 0.0156 0.1006 0.0254 0.0029010 0.0322 0.0039 0.7725 0.0947 0.0156 0.0078 0.0215 0.0771011 0.0029 0.0420 0.0576 0.7148 0.0010 0.0205 0.0752 0.0225100 0.0459 0.0088 0.0127 0.0039 0.6953 0.0850 0.0117 0.0771101 0.0039 0.0352 0.0020 0.0254 0.0762 0.7031 0.0605 0.0039110 0.0098 0.0020 0.0576 0.0176 0.0605 0.0088 0.1113 0.7197111 0.0010 0.0137 0.0117 0.0527 0.0127 0.0557 0.6885 0.0674

MargolusIon Trap 000 001 010 011 100 101 110 111

000 0.9180 0.0406 0.0219 0.0110 0.0292 0.0018 0.0010 0.0010001 0.0318 0.9156 0.0067 0.0245 0.0016 0.0288 0.0000 0.0012010 0.0146 0.0052 0.9151 0.0421 0.0004 0.0012 0.0124 0.0192011 0.0066 0.0150 0.0333 0.8954 0.0002 0.0016 0.0228 0.0112100 0.0278 0.0014 0.0007 0.0009 0.9274 0.0274 0.0090 0.0218101 0.0006 0.0210 0.0004 0.0009 0.0192 0.9158 0.0166 0.0124110 0.0006 0.0006 0.0120 0.0119 0.0114 0.0098 0.0376 0.9050111 0.0000 0.0006 0.0099 0.0134 0.0106 0.0136 0.9006 0.0282

ToffoliSuperconductor 000 001 010 011 100 101 110 111

000 0.5107 0.2832 0.0830 0.0215 0.1172 0.0693 0.0430 0.0381001 0.2490 0.4316 0.0156 0.0635 0.1475 0.1182 0.0322 0.0352010 0.0420 0.0264 0.5996 0.1250 0.0127 0.0146 0.0889 0.0654011 0.0234 0.0303 0.1162 0.5996 0.0205 0.0205 0.0762 0.0732100 0.0723 0.1084 0.0469 0.0264 0.4912 0.1152 0.0303 0.0381101 0.0693 0.0674 0.0156 0.0420 0.1260 0.5947 0.0283 0.0322110 0.0176 0.0166 0.0820 0.0625 0.0537 0.0176 0.2197 0.4990111 0.0156 0.0361 0.0410 0.0596 0.0313 0.0498 0.4814 0.2188

ToffoliIon Trap 000 001 010 011 100 101 110 111

000 0.8878 0.0298 0.0497 0.0111 0.0395 0.0089 0.0035 0.0110001 0.0224 0.8762 0.0101 0.0525 0.0091 0.0358 0.0133 0.0029010 0.0370 0.0090 0.8571 0.0385 0.0152 0.0014 0.0265 0.0224011 0.0075 0.0373 0.0374 0.8521 0.0015 0.0149 0.0206 0.0259100 0.0210 0.0082 0.0117 0.0019 0.8486 0.0332 0.0420 0.0436101 0.0083 0.0229 0.0017 0.0126 0.0237 0.8460 0.0350 0.0374110 0.0149 0.0008 0.0154 0.0171 0.0334 0.0247 0.0377 0.8101111 0.0013 0.0158 0.0169 0.0142 0.0290 0.0351 0.8214 0.0467

input state

detected state

input state

detected state

input state

detected state

input state

detected state

FIG. 5. Numerical quantum computer 3-qubit input/output matrix for the Margolis gate (top two panels) and Toffoli gate(bottom two panels), corresponding to Fig. 3 of the main text. For each gate, the results from both superconductor and iontrap quantum computers are displayed.

Page 9: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

9

Be

rnst

ein

-Vaz

iran

iSu

pe

rco

nd

uct

or

00

00

00

01

00

10

00

11

01

00

01

01

01

10

01

11

10

00

10

01

10

10

10

11

11

00

11

01

11

10

11

11

00

00

0.8

35

00

.10

16

0.0

66

40

.01

27

0.0

46

90

.00

59

0.0

12

70

.00

29

0.0

66

40

.00

98

0.0

11

70

.00

78

0.0

16

60

.00

59

0.0

04

90

.00

29

00

01

0.0

99

60

.79

49

0.0

10

70

.08

30

0.0

04

90

.04

20

0.0

03

90

.00

20

0.0

05

90

.04

98

0.0

02

90

.00

29

0.0

02

00

.00

29

0.0

01

00

.00

20

00

10

0.0

48

80

.01

37

0.8

35

00

.09

18

0.0

04

90

.00

00

0.0

50

80

.00

59

0.0

07

80

.00

20

0.0

59

60

.01

37

0.0

01

00

.00

10

0.0

03

90

.00

29

00

11

0.0

05

90

.06

54

0.0

71

30

.79

88

0.0

01

00

.00

39

0.0

08

80

.04

79

0.0

01

00

.00

59

0.0

06

80

.06

54

0.0

00

00

.00

78

0.0

02

00

.00

68

01

00

0.0

02

00

.00

10

0.0

01

00

.00

00

0.7

58

80

.08

98

0.0

72

30

.00

29

0.0

00

00

.00

00

0.0

00

00

.00

00

0.0

68

40

.10

64

0.0

05

90

.00

29

01

01

0.0

00

00

.00

49

0.0

00

00

.00

00

0.0

96

70

.75

88

0.0

09

80

.06

54

0.0

00

00

.00

00

0.0

00

00

.00

00

0.0

05

90

.00

20

0.0

02

00

.01

17

01

10

0.0

01

00

.00

00

0.0

02

90

.00

00

0.0

57

60

.00

59

0.6

90

40

.09

86

0.0

00

00

.00

00

0.0

00

00

.00

00

0.0

06

80

.00

00

0.0

98

60

.01

56

01

11

0.0

00

00

.00

00

0.0

01

00

.00

39

0.0

09

80

.07

32

0.1

29

90

.75

20

0.0

00

00

.00

00

0.0

00

00

.00

20

0.0

02

90

.00

59

0.0

10

70

.12

79

10

00

0.0

04

90

.00

20

0.0

02

00

.00

00

0.0

01

00

.00

00

0.0

01

00

.00

00

0.7

52

90

.13

28

0.0

83

00

.01

95

0.0

70

30

.01

37

0.0

06

80

.00

39

10

01

0.0

00

00

.01

66

0.0

00

00

.00

00

0.0

01

00

.00

29

0.0

00

00

.00

00

0.0

95

70

.71

78

0.0

07

80

.06

64

0.0

02

00

.04

10

0.0

00

00

.00

29

10

10

0.0

01

00

.00

00

0.0

09

80

.00

20

0.0

01

00

.00

10

0.0

04

90

.00

10

0.0

58

60

.00

88

0.7

40

20

.12

70

0.0

04

90

.00

10

0.0

38

10

.00

98

10

11

0.0

00

00

.00

00

0.0

00

00

.00

78

0.0

00

00

.00

00

0.0

00

00

.00

39

0.0

09

80

.06

84

0.0

84

00

.68

75

0.0

02

00

.00

29

0.0

05

90

.04

49

11

00

0.0

02

00

.00

00

0.0

00

00

.00

00

0.0

10

70

.00

29

0.0

02

00

.00

10

0.0

01

00

.00

10

0.0

00

00

.00

00

0.6

64

10

.11

91

0.0

61

50

.02

25

11

01

0.0

00

00

.00

00

0.0

00

00

.00

00

0.0

04

90

.01

37

0.0

00

00

.00

00

0.0

01

00

.00

29

0.0

01

00

.00

10

0.0

91

80

.62

21

0.0

02

00

.06

15

11

10

0.0

00

00

.00

00

0.0

00

00

.00

00

0.0

01

00

.00

00

0.0

11

70

.00

10

0.0

00

00

.00

00

0.0

02

00

.00

10

0.0

56

60

.01

66

0.6

84

60

.12

40

11

11

0.0

00

00

.00

00

0.0

00

00

.00

00

0.0

00

00

.00

00

0.0

02

00

.01

56

0.0

00

00

.00

10

0.0

01

00

.00

59

0.0

04

90

.05

18

0.0

72

30

.55

76

Be

rnst

ein

-Vaz

iran

iIo

n T

rap

00

00

00

01

00

10

00

11

01

00

01

01

01

10

01

11

10

00

10

01

10

10

10

11

11

00

11

01

11

10

11

11

00

00

0.9

48

10

.03

04

0.0

44

60

.00

80

0.0

57

70

.00

87

0.0

09

60

.00

56

0.0

39

00

.00

96

0.0

10

40

.00

95

0.0

09

40

.00

77

0.0

08

10

.00

99

00

01

0.0

14

10

.90

93

0.0

00

90

.03

10

0.0

01

60

.05

08

0.0

00

20

.00

23

0.0

01

00

.03

76

0.0

00

30

.00

25

0.0

00

40

.00

33

0.0

00

50

.00

06

00

10

0.0

11

60

.00

09

0.8

88

90

.02

59

0.0

00

80

.00

04

0.0

31

90

.00

21

0.0

00

70

.00

05

0.0

32

00

.00

23

0.0

00

20

.00

03

0.0

02

40

.00

10

00

11

0.0

00

30

.01

76

0.0

20

10

.86

68

0.0

00

00

.00

10

0.0

01

20

.03

35

0.0

00

00

.00

14

0.0

01

30

.04

25

0.0

00

10

.00

02

0.0

00

10

.00

36

01

00

0.0

13

70

.00

06

0.0

00

80

.00

03

0.8

78

10

.03

23

0.0

37

00

.00

74

0.0

00

60

.00

03

0.0

00

10

.00

04

0.0

19

20

.00

25

0.0

02

10

.00

09

01

01

0.0

00

10

.01

64

0.0

00

00

.00

09

0.0

17

60

.83

25

0.0

01

30

.02

67

0.0

00

00

.00

06

0.0

00

00

.00

02

0.0

00

60

.02

83

0.0

00

10

.00

20

01

10

0.0

00

20

.00

00

0.0

18

40

.00

08

0.0

18

20

.00

28

0.8

55

20

.03

27

0.0

00

00

.00

02

0.0

00

60

.00

02

0.0

00

60

.00

04

0.0

27

90

.00

31

01

11

0.0

00

00

.00

08

0.0

00

30

.02

41

0.0

00

50

.03

08

0.0

24

50

.82

35

0.0

00

20

.00

03

0.0

00

10

.00

13

0.0

00

20

.00

16

0.0

01

90

.04

00

10

00

0.0

11

10

.00

09

0.0

01

40

.00

05

0.0

01

30

.00

05

0.0

00

30

.00

02

0.9

00

50

.03

35

0.0

44

10

.01

11

0.0

47

40

.01

07

0.0

12

00

.00

85

10

01

0.0

00

20

.02

16

0.0

00

00

.00

18

0.0

00

00

.00

16

0.0

00

20

.00

04

0.0

20

80

.86

47

0.0

01

10

.03

02

0.0

01

50

.03

52

0.0

00

20

.00

19

10

10

0.0

00

30

.00

00

0.0

22

90

.00

13

0.0

00

00

.00

02

0.0

01

30

.00

03

0.0

17

50

.00

21

0.8

51

70

.02

71

0.0

01

00

.00

04

0.0

29

30

.00

33

10

11

0.0

00

00

.00

04

0.0

00

60

.03

70

0.0

00

20

.00

02

0.0

00

30

.00

28

0.0

00

60

.02

30

0.0

30

60

.83

66

0.0

00

20

.00

13

0.0

01

40

.03

22

11

00

0.0

00

20

.00

02

0.0

00

00

.00

00

0.0

21

50

.00

24

0.0

02

00

.00

08

0.0

17

40

.00

12

0.0

01

50

.00

07

0.8

63

60

.03

75

0.0

40

20

.00

83

11

01

0.0

00

00

.00

01

0.0

00

30

.00

01

0.0

00

80

.03

40

0.0

00

10

.00

24

0.0

00

60

.02

31

0.0

00

20

.00

17

0.0

27

50

.83

65

0.0

01

30

.02

84

11

10

0.0

00

00

.00

02

0.0

00

60

.00

01

0.0

00

60

.00

03

0.0

33

40

.00

32

0.0

00

70

.00

04

0.0

24

80

.00

11

0.0

26

60

.00

26

0.8

36

80

.03

87

11

11

0.0

00

00

.00

05

0.0

00

30

.00

14

0.0

01

00

.00

16

0.0

01

30

.05

61

0.0

00

30

.00

15

0.0

01

00

.03

24

0.0

01

40

.03

18

0.0

35

80

.81

77

det

ecte

d

stat

e

ora

cle

c

ora

cle

c

det

ecte

d

stat

e

FIG. 6. Numerical quantum computer 4-qubit input/output matrix for the Berstein-Vazirani algorithm for the superconductorsystem (top) and ion trap system (bottom), corresponding to Figs. 4(a1) and 4(b1) of the main text.

Page 10: Experimental Comparison of Two Quantum Computing …used to e ect gates between arbitrary qubits using the connections available. For a general circuit, reducing a fully-connected

10

Hid

de

n s

hif

tSu

pe

rco

nd

uct

or

00

00

00

01

00

10

00

11

01

00

01

01

01

10

01

11

10

00

10

01

10

10

10

11

11

00

11

01

11

10

11

11

00

00

0.3

60

40

.06

93

0.1

54

30

.03

52

0.0

79

10

.02

83

0.0

50

80

.01

56

0.0

78

10

.02

34

0.0

54

70

.01

56

0.0

51

80

.01

86

0.0

35

20

.00

68

00

01

0.0

67

40

.42

19

0.0

57

60

.14

16

0.0

20

50

.08

20

0.0

14

60

.03

81

0.0

14

60

.09

47

0.0

17

60

.03

52

0.0

22

50

.04

30

0.0

04

90

.03

71

00

10

0.1

36

70

.03

52

0.3

37

90

.07

52

0.0

46

90

.01

27

0.0

74

20

.02

05

0.0

54

70

.01

37

0.0

87

90

.01

66

0.0

38

10

.00

59

0.0

42

00

.01

56

00

11

0.0

36

10

.13

09

0.0

61

50

.37

99

0.0

19

50

.04

00

0.0

17

60

.07

42

0.0

07

80

.03

13

0.0

30

30

.07

71

0.0

14

60

.03

13

0.0

25

40

.05

66

01

00

0.0

69

30

.01

56

0.0

36

10

.01

46

0.2

96

90

.04

98

0.1

47

50

.03

52

0.0

49

80

.00

88

0.0

17

60

.00

88

0.0

58

60

.02

05

0.0

63

50

.01

76

01

01

0.0

11

70

.05

18

0.0

15

60

.03

03

0.0

70

30

.36

62

0.0

31

30

.14

16

0.0

12

70

.05

18

0.0

11

70

.02

73

0.0

22

50

.07

91

0.0

11

70

.02

05

01

10

0.0

47

90

.01

66

0.0

73

20

.02

54

0.1

70

90

.04

10

0.3

27

10

.08

79

0.0

27

30

.00

78

0.0

54

70

.01

56

0.0

57

60

.01

07

0.0

63

50

.01

76

01

11

0.0

11

70

.03

42

0.0

14

60

.05

18

0.0

27

30

.14

06

0.0

65

40

.36

13

0.0

08

80

.03

13

0.0

18

60

.04

69

0.0

08

80

.03

52

0.0

31

30

.07

91

10

00

0.0

77

10

.02

25

0.0

71

30

.01

07

0.0

54

70

.01

66

0.0

31

30

.01

07

0.3

78

90

.06

64

0.1

50

40

.02

93

0.0

71

30

.02

64

0.0

50

80

.01

17

10

01

0.0

19

50

.06

74

0.0

07

80

.03

81

0.0

17

60

.06

05

0.0

11

70

.02

73

0.0

65

40

.39

55

0.0

41

00

.14

55

0.0

25

40

.07

62

0.0

17

60

.03

71

10

10

0.0

48

80

.01

37

0.0

63

50

.02

83

0.0

31

30

.00

68

0.0

41

00

.00

68

0.1

37

70

.04

10

0.3

04

70

.09

08

0.0

41

00

.01

56

0.0

84

00

.03

03

10

11

0.0

11

70

.03

13

0.0

13

70

.08

30

0.0

04

90

.02

54

0.0

17

60

.05

08

0.0

37

10

.11

72

0.0

66

40

.38

57

0.0

14

60

.03

03

0.0

31

30

.07

91

11

00

0.0

44

90

.01

76

0.0

21

50

.00

98

0.0

64

50

.02

34

0.0

67

40

.01

27

0.0

58

60

.01

07

0.0

36

10

.01

27

0.3

07

60

.05

66

0.1

64

10

.03

61

11

01

0.0

16

60

.04

00

0.0

10

70

.01

86

0.0

17

60

.05

96

0.0

12

70

.02

54

0.0

21

50

.06

74

0.0

08

80

.02

54

0.0

54

70

.38

09

0.0

34

20

.14

36

11

10

0.0

27

30

.00

49

0.0

43

90

.01

46

0.0

64

50

.01

46

0.0

77

10

.01

56

0.0

35

20

.01

17

0.0

76

20

.01

66

0.1

78

70

.04

10

0.2

71

50

.06

93

11

11

0.0

12

70

.02

73

0.0

16

60

.04

30

0.0

13

70

.03

22

0.0

12

70

.07

62

0.0

11

70

.02

73

0.0

23

40

.05

08

0.0

32

20

.12

89

0.0

69

30

.34

18

Hid

de

n s

hif

tIo

n T

rap

00

00

00

01

00

10

00

11

01

00

01

01

01

10

01

11

10

00

10

01

10

10

10

11

11

00

11

01

11

10

11

11

00

00

0.7

73

00

.02

42

0.0

24

60

.00

82

0.0

75

20

.00

18

0.0

02

30

.00

10

0.0

86

00

.00

32

0.0

02

60

.00

16

0.0

21

00

.00

10

0.0

00

40

.00

17

00

01

0.0

23

60

.77

18

0.0

03

80

.03

12

0.0

02

00

.07

06

0.0

00

20

.00

30

0.0

03

20

.09

16

0.0

00

40

.00

40

0.0

00

60

.01

94

0.0

01

20

.00

22

00

10

0.0

22

60

.01

18

0.7

89

20

.02

46

0.0

01

80

.00

14

0.0

79

00

.00

26

0.0

02

70

.00

08

0.0

86

80

.00

36

0.0

01

00

.00

04

0.0

20

80

.00

28

00

11

0.0

20

00

.02

26

0.0

18

80

.76

90

0.0

01

80

.00

20

0.0

02

30

.07

08

0.0

01

20

.00

28

0.0

01

00

.08

26

0.0

01

20

.00

10

0.0

03

60

.01

82

01

00

0.0

71

60

.00

18

0.0

02

20

.00

14

0.7

63

40

.02

26

0.0

22

00

.00

48

0.0

24

50

.00

10

0.0

01

40

.00

14

0.0

55

00

.00

12

0.0

03

20

.00

20

01

01

0.0

01

80

.07

10

0.0

00

60

.00

30

0.0

21

20

.76

20

0.0

04

30

.02

44

0.0

01

20

.02

70

0.0

00

00

.00

30

0.0

01

60

.05

84

0.0

00

60

.00

35

01

10

0.0

03

40

.00

12

0.0

71

80

.00

22

0.0

36

80

.00

98

0.7

84

70

.02

34

0.0

01

70

.00

02

0.0

32

80

.00

16

0.0

04

60

.00

06

0.0

64

00

.00

40

01

11

0.0

01

20

.00

42

0.0

01

20

.06

82

0.0

15

80

.04

60

0.0

21

30

.78

46

0.0

00

30

.00

16

0.0

01

20

.02

82

0.0

02

60

.00

58

0.0

04

80

.07

02

10

00

0.0

54

60

.00

26

0.0

01

40

.00

12

0.0

26

40

.00

10

0.0

00

80

.00

04

0.7

70

70

.02

68

0.0

21

60

.01

12

0.0

40

80

.00

20

0.0

00

80

.00

13

10

01

0.0

02

20

.06

12

0.0

00

00

.00

42

0.0

00

40

.02

40

0.0

00

30

.00

12

0.0

21

30

.75

68

0.0

04

00

.02

64

0.0

01

60

.04

34

0.0

00

80

.00

33

10

10

0.0

02

40

.00

12

0.0

62

40

.00

26

0.0

01

20

.00

00

0.0

25

70

.00

22

0.0

16

50

.00

64

0.7

63

00

.02

82

0.0

02

00

.00

10

0.0

38

00

.00

27

10

11

0.0

01

40

.00

10

0.0

01

00

.06

04

0.0

00

00

.00

06

0.0

00

30

.02

88

0.0

14

80

.02

06

0.0

22

60

.73

98

0.0

00

60

.00

22

0.0

02

80

.04

18

11

00

0.0

19

40

.00

10

0.0

00

00

.00

04

0.0

49

60

.00

18

0.0

02

00

.00

06

0.0

50

30

.00

12

0.0

01

40

.00

20

0.7

71

60

.02

34

0.0

22

20

.01

08

11

01

0.0

01

00

.02

18

0.0

00

00

.00

26

0.0

01

40

.05

18

0.0

00

00

.00

18

0.0

01

50

.05

56

0.0

00

20

.00

38

0.0

27

40

.77

78

0.0

05

80

.03

08

11

10

0.0

01

40

.00

04

0.0

21

80

.00

14

0.0

01

80

.00

08

0.0

51

80

.00

10

0.0

02

70

.00

08

0.0

58

40

.00

32

0.0

46

80

.01

08

0.8

00

60

.03

62

11

11

0.0

00

40

.00

22

0.0

01

20

.01

94

0.0

01

20

.00

38

0.0

02

80

.04

94

0.0

01

50

.00

36

0.0

02

60

.05

94

0.0

21

60

.05

16

0.0

30

40

.76

85

ora

cle

s

det

ecte

d

stat

e

ora

cle

s

det

ecte

d

stat

e

FIG. 7. Numerical quantum computer 4-qubit input/output matrix for the Hidden Shift algorithm for the superconductorsystem (top) and ion trap system (bottom), corresponding to Figs. 4(a2) and 4(b3) of the main text.