Quantum ram
The qRAM design addresses the challenge of implementing fast and error-correctable quantum interfaces by using Clifford gates and measurements, enabling efficient quantum queries and integration into current quantum processors for practical applications.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- UNIVERSITY OF INNSBRUCK
- Filing Date
- 2026-01-16
- Publication Date
- 2026-07-23
AI Technical Summary
The development of a quantum Random Access Memory (qRAM) that enables fast and error-correctable quantum mechanical interfaces between quantum processing units and datasets is hindered by the need for exponentially many non-Clifford gates, which are difficult to implement and scale, preventing the demonstration of many quantum algorithms.
A quantum random access memory (qRAM) design that uses a quantum computing module and quantum processing unit, employing a method involving entangling and measuring subsets of resource qubits with address qubits, applying Clifford gates, and performing single-layer measurements to achieve fast and robust quantum queries, allowing for fault-tolerant and error-corrected operations.
Enables fast and robust qRAM calls that can be integrated into current quantum processors, facilitating practical quantum algorithms including search, quantum chemistry, and machine learning, with reduced resource consumption and error correction needs.
Smart Images

Figure EP2026051044_23072026_PF_FP_ABST
Abstract
Description
[0001] QUANTUM RAM
[0002] The present invention relates to a method of quantum-accessing a memory using a quantum address by operating a quantum computing module and a quantum processing unit, and to a quantum random access memory (qRAM) system.
[0003] Background of the invention
[0004] Quantum computation (QC) promises significant algorithmic speedups for specific tasks, fueling innovation across various modern technologies. Remarkable progress has been achieved in developing quantum processing units (QPUs), witnessed by increasing system sizes, improved performances, and the incorporation of quantum error-correction (QEC). However, critical challenges remain: among these, the development of a quantum Random Access Memory (qRAM), enabling fast quantum mechanical interfaces between the QPU and arbitrary datasets. At its core, a quantum query to a database is modeled as
[0005]
[0006]
[0007] where x and label the computational basis of the QPU register and the corresponding amplitudes; Dxis a data-bit stored at memory location x. Minimal modifications extend this to quantum memories. Central to many foundational algorithms, qRAM queries are ubiquitously present in the QC landscape, implementing e.g. ‘blackboxes’ in oracular paradigms and quantum search, and providing fast calls to complex multi-controlled gates; modern applications also include quantum chemistry and machine learning. More generally, a qRAM allows coherent access to pre-calculated lookup-tables, which can drastically reduce the computational runtime, as retrieving complex (classical or quantum) data is considerably simpler than computing them online. So far, the realization of this primitive is hindered by both theoretical and practical challenges, preventing the demonstration of many pioneering algorithms. For being usable advantageously, a qRAM must be fast and errorcorrectable. Current approaches however necessitate to apply exponentially many non-Clifford gates during the query; these operations, which include e.g. controlled-controlled-not (Toffoli) gates, are particularly hard to error-correct, requiring prohibitive space-time resources.
[0008] Moreover, existing proposals are challenging to implement with available features of state-of- the-art devices, as they rely on components which are still undeveloped at large-scale.
[0009] Altogether, these long-standing unsolved points not only hinder technological progress andraise debates on the feasibility of qRAMs, but also pin bold question marks on the potential of QC.
[0010] Short description of the invention
[0011] The object of the present invention is a quantum random access memory design, which is readily integrable in present large-scale quantum processors, allows for fast and robust quantum queries, and can be naturally combined with quantum error correction.
[0012] A solution to the above mentioned problem is provided by a method of quantum-accessing a memory using a quantum address by operating a quantum computing module and a quantum processing unit, wherein the quantum computing module comprises a plurality of resource qubits initialized in a resource state, wherein the quantum processing unit supports a quantum address comprising a plurality of address qubits, wherein the method comprises the steps: i. entangling a first subset of the resource qubits of the resource state with the quantum address by applying a single layer of entangling quantum gates onto the first subset of the resource qubits and the address qubits, subsequently performing a single layer of measurements on the entangled first subset of resource qubits and address qubits and collecting the measurement outcomes,
[0013] ii. correlating a second subset of resource qubits of the resource state with the memory by applying a single layer of Pauli conditional quantum gates depending on the measurement outcomes from step i. and on the values stored in the memory onto the second subset of resource qubits and subsequently performing a single layer of measurements on the correlated second subset of resource qubits,
[0014] iii. performing a logarithmic number of layers of measurements on a third subset of the resource qubits of the resource state and
[0015] iv. collecting the output state on the unmeasured qubits of the resource state.
[0016] Another aspect of the invention concerns a quantum random access memory (qRAM) system comprising
[0017] • a memory,
[0018] • a quantum computing module comprising a plurality of resource qubits initialized in a resource state,• a quantum processing unit supporting a quantum address comprising a plurality of address qubits,
[0019] wherein the quantum processing unit is configured to apply entangling gates and measurements onto the resource qubits and the address qubits,
[0020] wherein the quantum processing unit is configured to correlate the memory with the resource qubits of the resource state by applying conditional gates onto the resource qubits, wherein the qRAM system is configured to output an output state corresponding to the state of the quantum address coherently entangled with the memory.
[0021] Thus, the inventive method of quantum-accessing a memory using a quantum address by operating a quantum computing module and a quantum processing unit can be implemented on the inventive qRAM system.
[0022] Quantum devices might process data faster than classical computers. To leverage this potential, many algorithms require the aid of a quantum Random Access Memory (qRAM), i.e. a module capable to effciently load datasets (both classical and quantum) onto the processor according to arbitrary ‘quantum queries’. A realisation of this fundamental building block was outstanding, since existing proposals required prohibitive resources for reliable implementations, or are not compatible with current architectures. Moreover, these approaches cannot be scaled-up, as they do not allow for efficient quantum error-correction.
[0023] In contrast to that, the inventive qRAM design enables fast and robust qRAM calls, naturally allows for fault-tolerant and error-corrected operation, and can be readily integrated on present hardware. The inventive method and system employ a quantum resource that is consumed during the query. Thus, the inventive method and system place a long missing, fundamental component of quantum computers within reach of currently developed technologies; this opens the door to algorithms featuring practical quantum advantage, including search or oracular problems, quantum chemistry and machine learning.
[0024] In a preferred embodiment the entangling quantum gates comprise Clifford controlled-phase gates. Further, the conditional quantum gates may be Pauli conditional quantum gates. In a further embodiment, all quantum gates, that is the entangling quantum-gates and the conditional quantum gates, are Clifford gates.
[0025] Using only Clifford gates provides dramatic simplifications, as in contrast to non-Clifford gates, which can only be executed and error-corrected during a query at a signifanct cost, these gatescan be implemented fault-tolerantly via naive transversal gates and allow for efficient and fast answers to queries. Clifford gates are commonly much simpler and less resource-consuming than non-Clifford gates, which require more demanding techniques for their implementation. Further, repeated syndrome extractions and active error corrections may not be necessary for fault-tolerant implementations. Furthermore, by using only Clifford gates, faults only need to be corrected once the query is over.
[0026] Further, all measurements of resource and address qubits may be single-qubit Pauli measurements.
[0027] Preferably, the first subset of the resource qubits of the resource state is entangled with the quantum address via a unit depth Clifford circuit. This can be done via pairwise controlled-phase gates.
[0028] Depending on the target task, that is the algorithm to be executed by a quantum processor, the memory may be a classical memory comprising a plurality of bits or a quantum memory comprising a plurality of qubits.
[0029] In another embodiment the initialization of the resource state comprises applying non-Clifford gates onto the plurality of resource qubits, wherein the number of non-Clifford gates is of order N, wherein N is the number of bits or qubits of the memory. The resource state has no conncection with any detail of an algorithm that shall be executed nor the memory. Thus, the resource state can be seen as a resource furnished by the processor and its preparation thus not influence the execution of the main algorithm. When the resource state is initizalized it may be stored statically and is not manipulated until a query begings. Further, the inventive method and system can tolerate several errors in the resource state, thus, syndrome extraction can be performed at low rates. In addition, for any Clifford query detected errors can be corrected at the end of the query by calculating the progagation of these errors.
[0030] According to a certain embodiment the resource state comprises order N resource qubits and can be initialized in the quantum computing module via the following steps:
[0031] • preparing order log N Bell pairs via entangling gates,
[0032] • implementing a nested one-hot encoding on one half of the Bell pairs via applying order N non-Clifford gates on some resource qubits,• applying Clifford gates on order N of the resource qubits in the nested one-hot encoding and the remaining resource qubits not acted on yet.
[0033] In this embodiment the quantum computing module is configured to initialize the resource state via the above described steps.
[0034] Further, the quantum computing module and the quantum processing unit may comprise neutral atom arrays. Note, that the inventive model and system can be implemented in any quantum computing platform. For neutral-atoms the physical qubits may be encoded in long-lived electronic or nuclear levels of single atoms in optical traps. Via laser controls entangling gates can be implemented by exciting the atoms to Rydberg states.
[0035] According to another embodiment the resource state comprises order N resource qubits, wherein N is the number of bits or qubits stored by the memory.
[0036] Further, the quantum computing module may be configured to initialize the resource state via a quantum circuit comprising order log(N) steps, wherein N is the number of bits or qubits of the memory.
[0037] Detailed description and preferred embodiments
[0038] The foregoing and other objects, features and advantages of the invention will become more apparent from the following detailed description, which proceeds with reference to the accompanying figures.
[0039] Fig. la shows a schematic representation of the tasks of a quantum ram (qRAM); Fig. lb sketches the inventive implementation of a qRAM with a resource state and Fig. 1c shows an exemplary implementation on a reconfigurable neutral atom processor.
[0040] Fig. 2a - 2c show a qRAM protocol with details of the query procedure, where in the first step a subset of the qRAM reservoir is entangled with the QPU register via pairwise controlled-phase gates and the involved qubits are then measured in the X basis, with outcomes collected by m (Fig. 2a) and in the second step another subset of the qRAM ancillas is correlated with the memory via conditional Clifford gates (Fig. 2b) and in the last step almost all the ancillary qubits are measured in adaptive Pauli bases (Fig. 2c).Fig. 3a shows a formal circuit defining the resource state; Fig. 3b shows the resource-state implementation of a one hot encoding; Fig. 3c shows a controlled-swap gate, where one qubit is initially in |0); Fig. 3d shows the invertion of the controlled-not gate of Fig. 3c via a Clifford circuit; Fig. 3e shows a resource-state computation, where the first layer of measurements is in the X basis and the collective outcomes determine the measurement basis of the last two qubits (X or Z); Fig. 3f shows a numerical simulation of the favorable error-scaling of the inventive qRAM.
[0041] Fig. 4a - 4f show a nested one-hot encoding (NOHE), a quantum RAM and gate teleportation, with a circuit decomposition for realising a NOHE (Fig. 4a); an example of qRAM model based on a NOHE (Fig. 4b); an explicit qRAM model for N = 2, where the address is a single qubit (Fig. 4c); a minimal gadget for the circuit decomposition of Unohe (Fig. 4d); a depiction of standard gate teleportation (GT) for realising an arbitrary gate U (Fig. 4e); and an explicit depiction of the various variations of one-hot encoding, on the example of N = 8 (Fig. 4f).
[0042] Fig. 5a - 5d show a NOHE sampling and Clifford inversion, with a resource-state sampling of a random NOHEm E a (Fig. 5a); the invertion of the basic, non-Clifford operation |i, j) —> |nohe(i, j)) with a Clifford circuit (Fig. 5b); a generic circuit for the Clifford inversion of the NOHE composed by two parts: the first is a circuit Vnohe featuring deterministic operations, the second part is a sequence of adaptive Pauli measurements, where each qubit is measured either in the X or in the Z basis according to a decision function FT, which is continuously updated by the measurements (Fig. 5c); and a resource-state protocol for inverting Unohe (Fig. 5d).
[0043] Fig. 6 shows a circuit for the resource-state which defines it formally, where in the topleft and right panels in Fig. 6 the preparation of < P(1)and (2), respectively, is highlighted; in the bottomleft panel of Fig. 6 a ‘partial’ Bell measurement, where not all the qubits are projected, is shown; and in the scheme on top of Fig. 6 the action of the contraction P is shown; horizontal lines informally represent the presence of entanglement between sets of qubits.
[0044] Fig. 7a - 7f shows a rearrangement subroutine, with the Bell-pair distribution described as a nested one-hot encoding bifurcation graph (Fig. 7a); the grouping of SLM traps employed for describing the rearrangement protocol (Fig. 7b); a depiction of the rearrangement (Fig. 7c) and details of the rearrangement (Fig. 7d - 7f).Reference will now be made in detail to the various exemplary embodiments, one or more examples of which are illustrated in each figure. Each example is provided by way of explanation and is not meant as a limitation. For example, features illustrated or described as part of one embodiment can be used on or in conjunction with other embodiments to yield yet further embodiments. It is intended that the present disclosure includes such modifications and variations.
[0045] Within the following description of the drawings, the same reference numbers refer to the same components. Generally, only the differences with respect to the individual embodiments are described. The structures shown in the drawings are not necessarily depicted true to scale and may contain details drawn in an exaggerated way to allow for a better understanding of the embodiments.
[0046] A number of quantum algorithms require access to a quantum random access memory, a “qRAM,” which is a memory 2 that can be accessed by a superposition of memory elements. A classical random access memory (“RAM”) is a device that can query a database. Given an address as an input, the RAM can output an element (e.g., a bit value) stored at that address in the database. Analogously, a qRAM is a device that can query a database when given a superposition of addresses 3, and returns a correlated superposition of data from those addresses 3.
[0047] Furthermore, while the below description focuses primarily on accessing bits from a classical memory 2, this is purely for purposes of explanation and it will be appreciated that the below techniques may also be applied to access qubits from a memory 2.
[0048] Notation and background:
[0049] The single-qubit Hilbert H(1)space is spanned by the ‘computational -basis’ states {|0), |1)}; note, however, that any other basis states can be used by simple single-qubits basis transformations. In general we denote the Hilbert space of n qubits by H(n) = H(1)®n. We define the single-qubit Pauli algebra as X = |0) (1| + |1) (0|, Z = |0) (0| - |1) (1| and Y = iXZ. The eigenstates of X are |±) = (|0) ± |1)) / ^2; the change of basis with respected to the computational basis is provided by the Hadamard gate H = (X + Z) / 2. The Pauli group Co is generated by tensor products of Pauli operators; the Clifford hierarchy is defined recursively by stating that U E CK if UCOU^ E CK-I. With our convention, Ci is the Clifford group; any U E CK>2 is said to be non-Clifford. Two important gates belonging to C2 are the ‘T gate’, defined as T = e−iπZ / 8,the controlled-controlled-Z, defined as CCZ = 1 — 2 |1, 1, 1) (1, 1, 1| and the ‘Toffoli gate’, or controlled-controlled-not, given by CCX1,2,3= H3CCZ1,2,3H3.
[0050] We denote the QPU register 4 by the set R, and the memory 2 by the symbol M. The latter is composed by N memory locations, which for simplicity we assume to be a power of 2; these locations can be indexed by a binary vector x = (xo,...
[0051]
[0052] , xlog N − 1) ∈ {0, 1}log N, where the logarithm is in basis 2. The memory is thus capable of storing a dataset D = {Dxfor x£{0, 1 }logN}, such that we physically store Dxat memory location x; for simplicity, we consider single data-bits, i.e. DxG {0, 1}. Note, however, that this can be generalised to quantum memories 2. Correspondingly, the QPU register 4 has size |R| = log N, and its Hilbert space H(|R|)is spanned by a computational basis in the form { |x) for x£{0, l}logN}.
[0053] A quantum address 3 is a generic state on R, |y) =12^
[0054]
[0055] Preferably, the quantum address 3 is initialized in a superposition state. Formally, the task of qRAM can be written as UqRAM|ψ⟩ ⊗ |0⟩ =
[0056]
[0057] ■ where we set
[0058]
[0059] =5S ® 1-^®) ■
[0060] We start by highlighting the features of fast and noise-resilient qRAM protocols in a unified framework. We consider memories 2 of size N, and QPU registers 4 featuring log N qubits. The basic building-block is a ’one-hot encoding’ (OHE) of the quantum address 3 y: this also involves an additional bus qubit prepared in |+) = 1 / ^2 (|0)+| 1 )), and is defined by
[0061] l
[0062]
[0063] ^nohe '■ I®) |+)Ullt'~hot> |no / ie(®)) |OHE(®)).
[0064] Therein, the ‘nested’ OHE state |nohe(x)) has support on N - 1 qubits and ensures reversibility in a noise-resilient way, as shown in more detail below. |OHE(x)) has support on N qubits, which are all in |0), except a ‘pointer-qubit’, identified by x, which is in |+). For instance, for N = 8 we have |OHE(0, 1, 1)) = |0, 0, 0, 0, 0, 0, +, 0), with the pointer at the position whose binary representation is x = (0, 1, 1). Classical versions of this are common e.g. for representing categorical variables in machine learning, or for distinguishing words from a vocabulary. In general, a query to the qRAM proceeds in three steps as in Fig. la (right-hand side): (i) A OHE is applied according to the above definition; (ii) The data is loaded via the single-qubit unitaries vd?. / CX
[0065]
[0066] Dto the OHE-qubits - that is, the last N in the above equation; (iii) The OHE is inverted and a final Hadamard H = (X +Z) / 2 is applied to the bus, where the data is retrieved. In summary, the operation is written as HbuSUqRAM ^nohe ^D ^nohe - Following this, the qRAM subroutine can be realized with O(log N) circuit-depth, and benefits of a remarkable polylogN infidelity scaling. The crucial challenge is that this scheme requires O(N) long-range non-Clifford gates, acting on O(N) ancillary qubits. Executing and error-correcting them during a query incurs a significant cost, hindering efficient and fast answers. Moreover, when embedded on locally-connected processors, the infidelity deteriorates to polyN scalings, demanding prohibitive resources for quantum error correction (QEC).
[0067] Main concepts:
[0068] The inventive approach overcomes these limitations by generalizing ideas from gate teleportation (GT) to implement steps i. - iv. of the inventive method and system, preferably as an entirely Clifford subroutine. Below we introduce the main underlying concepts; we detail the query protocol in the next section, and then connect to QEC.
[0069] The goal of GT is to apply a unitary U to an input state y on log N qubits with the help of the resource state (RS)
[0070]
[0071] =®g, where is a Bell pair. Precisely, using log N Bell measurements (BMs) between the RS and the input, GT outputs UB |\| / ), where B is a random Pauli operator determined by the BM result. If U is e.g. a Clifford gate, correcting for B by applying UBU is simple, making GT deterministic.
[0072] For implementing the OHE, in principle GT faces the challenge that Unohe is deep in the Clifford hierarchy, preventing simple corrections of the byproduct UnoheBUnohe^. A key insight underlying the inventive construction is that for the purpose of qRAM, it is not necessary to correct for B, and we can actually employ any operation from the extended family ε = { 풰nohe,B≡ 풰noheB for B ∈ C0}.wherec0isthe Pauli group. This is because for every
[0073]
[0074] , the operation UnoheB implements an alternative OHE: Z components introduce phases, which cancel out automatically during step iii., when the measurements 6 are performed on the resource qubits; X components permute the pointers of different addresses 3, which we efficiently track in classical processing. Specifically, the OHE of x now simply displays the pointer at location f(x) = x © b. In summary, with the aid of the RS
[0075]
[0076] ≡ (ퟙ ⊗ 풰nohe)Ψ⊗log N, QT implements a generalised version of step i., sampling randomly from 8.
[0077] To implement step iii. we develop a measurement-based approach, preferably inverting the OHE via single-qubit Pauli measurements (SQPMs) on a stabiliser RS. For this, we first note that Unohe is an isometry constructed by iterating the basic operation in Fig. 3c. The operation in Fig. 3c corrsponds to a controlled-swap gate, where one qubit is initially in |0> and may be implemented by applying a Toffoli gate (non-Clifford) and a controlled-not gate. Even though this primitive is non-Clifford, it can be inverted with Clifford operations and SQPMs. As we show below, this is possible because we only require inversion on the image of Unohe, which isan exponentially smaller subspace. We can therefore find a stabilizer RS <b(2)with the following property: after entangling any input state H with <b(2)via BMs, a sequence of adaptive SQPMs extracts the desired output U nohe|^i).
[0078] Finally, we leverage standard Clifford techniques to ‘merge’ (1)and <b(2)in a single, compact resource state 1, (see below for more details), which fuels our query protocol detailed below; an intuition is given in Fig. 3a. There an exemplary formal circuit defining the resource state 1, is shown. In this examplary initialization of the resource state 1, the first part of the circuit prepares log N Bell pairs via entangling quantum gates 5, and then applies a nested OHE 9 to one half; it acts on 2N - 1 qubits employing O(N) non-Clifford gates. The second part of the circuit is entirely Clifford, involving N of the previous qubits, and the remaining 3N - 2 and applies Clifford gates 10 on them. l. Note, that the exact numbers are very flexible and depend on different optimizations, and different optimizations might be well suited for specific quantum platforms or future technological advancements. Thus, the number given in this patent application are just examples and shall not limit the scope of protection.
[0079]
[0080] We now outline the query procedure, that is the inventive method of quantum-accessing a memory 2 using a quantum address 3 by operating a quantum computing module 1′ and a quantum processing unit 4. Prior to it, the resource state 1, O is prepared via an efficient algorithm of depth O(log N) on O(N) resource qubits (see below for more details). For the query, we proceed in four steps i.-iv. as schematically shown in Fig. 2a - 2c. In the first step i. a first subset of the resource qubits of the resource state 1 is entangled with the quantum address 3 by applying a single layer of entangling quantum gates 5 onto the first subset of the resource qubits and the address qubits. Then, a single layer of measurements 6 are performed on the entangled first subset of resource qubits and address qubits and the measurement outcomes m are collected. Preferably, Bell measurements (BMs) are performed as entangling quantum gates 5. Step i. effectively implements a OHE via generalized GT as introduced previously. Specifically, it generates a conditional state < Fm(v) on the resource qubits, corresponding to a sample from a applied to y.
[0081] In the second step ii. a second subset of resource qubits of the resource state 1 is correlated with the memory 2 by applying a single layer of conditional quantum gates 7 depending on the measurement outcomes m from step i. and on the values stored in the memory 2 onto the second subset of resource qubits. Then, a single layer of measurements 6 is performed on the correlated second subset of resource qubits. Thus, each data-bit Dxof the memory 2 is correlated with thecorresponding pointer-qubit via conditional quantum gates 7, exemplary via conditional Z gates. The location of the pointer-qubit depends on the measurement outcomes m via f(x), requiring to adapt the operation WD. This can be absorbed in the next step.
[0082] In the third step iii. a logarithmic number of layers of measurements 6 is performed on a third subset of the resource qubits of the resource state 1. That is, the OHE is inverted as outlined above via measurements, preferably adaptive SQPMs, on a third subset of the resource qubits, retrieving the output of the quantum query on the unmeasured qubits.
[0083] In the fourth and last step iv. the output state 8 is collected on the unmeasured qubits of the resource state 1 and may be used for any quantum algorithm to be executed. Overall, the query may be executed in O(log N) Clifford depth, including log N BMs and O(N) SQPMs. Most importantly, it can be entirely Clifford.
[0084] Quantum error-correction:
[0085] Applying QEC has long been considered crucially problematic for qRAMs; we already mentioned the following reasons. First, involving O(N) ancillas suggests that errors scale exponentially in the QPU size; Second, previous proposals needed O(N) non-Clifford gates during the query. These features would demand unfeasible efforts not only for near-term implementations, but also for error-corrected, fault-tolerant (FT) processors.
[0086] Regarding the first point, it was recently proven that O(log“ N) error-rates are possible for protocols featuring highly-constrained error-propagation. In this work, this is obtained via the nested OHE discussed below. We certify this by simulating the protocol numerically and calculating the query fidelity FQRAM; the results are displayed in Fig. 3f. We consider an always-on depolarising channel (upper line in Fig. 3f), as well as a more realistic model for neutralatoms, where errors are dominated by faulty gates and erasure-conversion of leakages is applied (lower line in Fig. 3f). Assuming 1 - FQRAM ~ log“ N, we extract the dominating exponents as a — 3.8 and a — 1.9 respectively - in line with the theoretical expectations. Here, FQRAM = (y'|TrA pout |\| / ' ) is the fidelity of the desired output y' with the obtained one, pout, after tracing out the qRAM ancillas.
[0087] Concerning the second point, our results provide dramatic simplifications, making FT qRAMs feasible on currently-pursued processors. The key is that all operations in the inventive method can be Clifford, and can be implemented fault-tolerantly via naive transversal operations. Moreover, an important feature of our design is that for implementing our query fault tolerantly, repeated syndrome extraction and active error correction are not necessary: On the one hand, GT allows for built-in syndrome-extraction of the Knill-type after step (i); On the otherhand, the subsequent SQPMs, being destructive, provide themselves all the needed syndrome snapshots; Finally, since these are Clifford manipulations, faults only need to be corrected once the query is over. The most demanding aspect is preparing ; but since it is independent, it allows ad-hoc optimisations and post-selected protocols, potentially including dedicated distillation procedures. Any associated complexity does not impact the query. One approach is to pre-assemble as many copies of as needed. Alternatively, we can parallelise a query with the preparation of a new copy of for the next query, resulting in an efficient cycle, that does not add any time-depth.
[0088]
[0089] The inventive qRAM module can be integrated in any QC platform; here we discuss exemplary neutral -atoms. Physical qubits are encoded in long-lived electronic or nuclear levels of single atoms in optical traps; laser control enables e.g. entangling gates via excitation to Rydberg states, and demonstrated techniques allow for high-fidelity midcircuit readout. Moreover, atoms can be dynamically rearranged with optical tweezers, resulting in a processor whose layout is reconfigurable. We envision to prepare and store the resource state 1, in a ‘qRAM zone’ 1’. We harness atom-transport for preparing the resource state in O(log N) runtime, and with only 0(1) rearrangements (see also below). Crucially, this achieves the non-local connectivity needed for assembling the resource state 1, with the claimed built-in noise-resilience. The long coherence times allow to store the resource state 1, with low-rate QEC. For the query, we extract log N qubits and entangle them with the QPU register 4. Recent QEC experiments have demonstrated transversal gates by shuttling logical blocks across the processor, which unlocks one key point of our design: an error-corrected query simply parallelises the operations we would apply to physical qubits, to logical blocks.
[0090] To estimate the near term potential, we note that with depolarization rate of 1 O'4, one can realize query memories of size N 1024 with fidelity above 50% without QEC; moreover, we find tremendous improvements with leakage-conversion to Z-biased errors, with fidelities above 90% for memory sizes up to N 105.
[0091] Nested one-hot
[0092]
[0093] In the following a more detailed definition of one key concept in this work is given, borrowed by classical computer science and machine learning, that is known as ‘one-hot encoding’ (OHE); this allows us to develop a unified framework, capturing the principal aspects of existing proposals for realising a fast quantum RAM. Further, we introduce the notion of nested one-hotencoding (NOHE), which enables intrinsic error-resilience - a fundamental requirement for a qRAM, both for near-term implementations and for quantum error-corrected modules.
[0094] A OHE is a representation of a finite set {wo,..., WN-I} of size N via N bits; specifically, Wk is represented by an N-bit string ohe(wk) with components ohej(wk) =5j,k. That is, element cok is identified by the k-th bit in the encoding string being ‘hot’. In our case, the set M consists of the memory locations where data-bits are stored, and can be indexed by
[0095]
[0096] “ the set of all ‘computational basis’ labels x = (xo,..., xiogN-i). Thus, ohej(x) = 5j,p(x), where nx) - 2^K=O
[0097]
[0098] is the number whose binary representation is given by x.
[0099] In summary, the OHE can be understood as an injection from a space of log N to N bits.
[0100] We further introduce the nested one-hot encoding (NOHE) as a string of OHEs, where x is represented by progressively encoding its sub-strings; more precisely, nohe(x) = ohe(0)(x),
[0101]
[0102] ...,ohedog X 4)(x), where ohe(K)(x) is a standard OHE of the first K bits of x, but the ‘hot’ bit PK(X) is set to XK G {0, 1 } instead of 1. Precisely, this is defined as ohe(K)(x) = XK ohe (xo, xi,..., XK-1), with the common conventions for the product of a vector by a scalar. We can generalise ~ ’jit, I "ip A Vf — r- / we sef
[0103]
[0104] |nofce(<i)) = 52g, We will refer to the NOHE operation via a map U(N)nohe, defined (informally) such that U(N)nohe |y) = nohe(\| / )) for an arbitrary state y. The superscript N indicates that this is an isometry from log N to N - 1 qubits; we will omit the superscript when the space of action is clear from the context. We discuss Unohe more in detail below, where we also provide a circuit decomposition.
[0105] Bus qubit:
[0106] For our qRAM design, we introduce a ‘bus qubit’. Specifically, for any address y 3 on log N qubits, we introduce an additional qubit in a certain bus state, preferably in the |+) state, and consider the NOHE on the composite state, |NOHE(\| / )) = U(2N)nohe |y) 0 |+). This is supported on 2N - 1 qubits and has a simple interpretation for computational basis states (i.e., when |y) = |x) for some classical index x): the first N - 1 qubits support nohe(x), while the last N qubits support the standard OHE, with the crucial difference that the ‘hot’ pointer qubit is a |+) state; this is captured by defining a quantum OHE state |OHE(x)) = (|0)®N+ |ohe(x)) ) / 2. For computational basis states, |NOHE(\| / )) then reads |NOHE(x)) = |nohe(x)) |OHE(x)), or
[0107] |n,oh,ea(x)J
[0108]
[0109] therein, we set for simplicity Aa,x= 5a-N+i,n(x), which is just a common Kronecker delta, shifted to the lastN qubits.Circuit decomposition of NOHE:
[0110] We now discuss the operation Unohe|y) = |nohe(y)). In this form, it should be understood as an isometry from log N to N - 1 qubits, which can be embedded in a unitary circuit by introducing N -log N-l ancillary qubits initialised in |0). Importantly, this can be implemented by iterating the application of a simple primitive, as we detail in the following.
[0111] To fix the notation, we first define the Friedkin gate (i.e., the controlled-swap) as
[0112] CS(a|b, c) = |0)a(0| 0 lb,c+ |l)a (1| 0 Sb,c, where Sb.c implements a swap of the qubits b «-> c, i.e. Sb.clvb) 0 |<|>c) = I >b) 0 IVc). Moreover, for K < J we define
[0113] CS(KjJ) = [J CS(a|a + 27- 2K, a + 2J);
[0114]
[0115] “=2A“1where we recall that we are considering a string of N-l qubits labeled by a = 0, 1,..., N - 2. Moreover, here and everywhere we use the ordering n - Then, the NOHE operation can be
[0116]
[0117] decomposed as formally, this implements the desired operation as Unohe|y) |0)®N logN 1= |nohe(y)). Note that the first layer, which only features swaps, is just a qubit relabeling introduced for formal convenience, and does not need to be implemented on hardware. The expression above can be further simplified by realising that the Friedkin gate is always applied with one of the targets in the |0) state; this allows to substitute it with the ‘gadget’ in Fig. 4d, that is a minimal gadget for the circuit decomposition of Unohe, consisting of a Toffoli and a controlled-not gate. Note that this saves one controlled- not per Friedkin gate. Altogether, this results in the circuit decomposition shown in Fig. 4a for the explicit example of N = 8. The standard |nohe(y)) is obtained by applying the circuit in the top-left part of Fig. 4a; by adding a bus qubit in the |+) state and iterating the same procedure, we obtain |N0HE(\| / )). Finally, we remark that while the equation above for Unohe(N)apparently suggests a O(log2N) circuit depth, it can be parallelised to exactly Tf= 2 logN - 1 layers. NOHE and quantum RAM:
[0118] The concepts introduced so far allow for an elegant unified description of kown qRAM protocols. For this, note that the query operation can be executed via a protocol of the form shown in Fig. 4b: here a NOHE is first applied to |y) 0 |+), and then inverted after a layer of parallel classically-conditioned gates. The latter gates act on the last N qubits of the NOHE as follows: if Dx= 1, a Z-gate is applied to the corresponding pointer qubit - i.e. to qubit
[0119] WD
[0120] a=N-l+p(x). This corresponds to the operation
[0121]
[0122] Finally, wealso apply a Hadamard gate to the bus qubit. It can be straightforwardly shown that this procedure indeed implements the qRAM unitary on any input: that is, for any address y 3 on
[0123] ® H. )
[0124] |MM) ■
[0125] log N qubits we get
[0126]
[0127] LFor the inventive qRAM design, this equality will be of foundational importance.
[0128] Constant-depth NOHE sampling:
[0129] We now discuss the following task: given an arbitrary address state y 3, we are interested in applying the NOHE to it, i.e. in executing y —> NOHE(\| / ). In principle, this can be achieved by directly implementing Unohe - i.e., via O(N) non-Clifford gates in O(log N) runtime. Here we present a different procedure, that instead employs a RS 1, and only requires to implement a Bell measurement on O(log N) qubits. This has three major advantages: given the RS 1, our method (i) only takes 0(1) steps, (ii) only needs Clifford gates 10 and single-qubit Pauli measurements 6 (SQPMs), and (iii) has appealing features from the QEC perspective. We discuss the latter point in detail in a dedicated section below. Our method is based on a GT paradigm. We recall that, given an arbitrary gate U and a suitable ancillary resource-state u, GT allows to sample a random gate of the form UB, where B G Co is a random Pauli operator; from the time the input is furnished, this only requires an 0(1) depth Bell measurement. More precisely, for any input state y, upon performing the Bell measurement one obtains the state UB |\| / ). If U G Ci is a Clifford gate, it is straightforward to account for the Pauli byproduct by applying the simple Pauli correction UBU:G Co. However, in general (i.e., for U G CK with large K) the application of U is based on post-selection (specifically, on sampling B = 1), with an exponentially vanishing success probability (in system-size). In contrast, our protocol is based on the remarkable observation that we can use GT for qRAM, despite Unohe G CiogN being highly non-Clifford. The reason is that for any B, the sampled gate UB implements a variant of the ‘standard’ NOHE that is equally well suited for the qRAM; eventually, this provides us with a Clifford NOHE protocol of 0(1) depth. We elaborate on this in the next sections.
[0130] NOHE uniform sampling space:
[0131] We start by introducing one crucial concept for our qRAM design. In addition to the NOHE discussed above, we can define a whole family of NOHEs, £ = (NOHEmfor m € {0, 1} 'e’ }; by setting m = (a, b) and a, b G {0, 1}1O8N3elements in a are defined on the computational basis by |N0HEm(x)) = (-)a x|N0HE(x © b)), and then extended by linearity to the whole Hilbert space. Therein, we defined the vector binary additionas (x © b)K= XK © bx, and the scalar product as a • x = aoxo © • • • © aiogN-ixiogN-i. Finally, we can define the ‘NOHE sampling space’ by equipping a with a uniform distribution among its components, i.e. associating an equal probability N2to each NOHEm.
[0132] Importantly, we can express the generalised NOHE in a simple form by noting that |N0HEm(\| / ))—UnoheBm |y), where we defined the Pauli operator Bm= X®bZ®aG Co; here in general we set e.g.x"'6 = xhk. Thus, NOHEm(v) is equivalent to the NOHE of a state obtained by applying a simple Pauli correction to y, prior to Unohe. However, the propagation of Bmthrough Unohe is highly nontrivial, owing to the deep non-Cliffordness of the latter: in general, Unohe BmUnohe1' is at a high layer in the Clifford hierarchy, meaning that deeply non-Clifford circuits are necessary for switching from one NOHE to another, involving O(N) non-Clifford operations. Nevertheless, in our qRAM design any NOHE from a can be equally employed for executing the query; in other words, our query protocol will take large advantage of sampling from a, thus realising a probabilistic NOHE, in place of deterministically implementing the standard operation Unohe.
[0133] Sampling protocol:
[0134] The sampling protocol essentially consists of a standard GT, with the exception that we do not apply any adaptive byproduct correction after the Bell measurements; hence, we implement the teleportation of a random gate. An illustration is displayed in Fig. 5a. The first (boxed) part constructs a resource-state (1); in a nutshell, we first prepare log N Bell pairs, and then apply |
[0135]
[0136] #W) = 4 EH8'* ls / )x ® INOHEfzDj,.
[0137] Unohe to one partition, resulting in1Therein, the partitioning of the qubits supporting (1)in I UD is defined implicitly; note that the state above is a conventional resource-state for GT. For the sampling, we now introduce the state y, which is supported on the register qubits R, and we perform Bell measurements between corresponding qubits on R U I. More specifically, we proceed in two steps. First, we apply a I-JH; V- 1
[0138]
[0139] (5^) CZfceK.fceZ, layer of pairwise controlled-phase gates between Rand I via «.- <> where we recall that R and I have both size log N. Second, we measure R U I in the X basis, collecting the outcomes m. This generates a conditional state of the form
[0140] p(m)
[0141]
[0142] wherer^uzis the projector onto the measured subspace. More precisely, we set mj = 0 if the measurement outcome on qubit j is Xj
[0143] = +1, and mj = 1 if Xj = -1; thus,
[0144]
[0145] Note that we willuse this notation for X-basis projectors also in the following paragraphs; moreover, we will always refer to this procedure when mentioning ‘Bell measurements’. The measurement outcomes are uniformly distributed, i.e. Nm(y) = N2for any m and y; hence, the equation for the conditional state defines a linear operation. Specifically, it can be directly verified that we ww\=INOHI W),...,+....
[0146] always get I / where on the right-hand side we omitted the trivial (factorised) part supported on RUI; thus, we are to all effects applying a random (known) NOHEm to y, by sampling uniformly from a in 0(1) time. Connecting to the formalism of the section above, we simply have m = (a, b) with a and b collecting the measurement outcomes on R and I respectively.
[0147] Clifford NOHE inversion:
[0148] We now discuss the following important concept: even though executing the map \| / ^NOHEm(\| / ) necessarily involves O(N) non-Clifford gates, this same map can be inverted via a completely Clifford procedure. While apparently contradictory, this statement holds true because Unohe actually implements a large isometry, mapping the Hilbert space of log N qubits in the space of N - 1 qubits; this allows to effectively invert it on its image in the codomain, by leveraging non-reversible destructive procedures (i.e., employing measurements 6).
[0149] In the following, we explain this by first showing how the non-Clifford minimal gadget in Fig.
[0150] 4d can be inverted via Clifford operations; we note that this is equivalent to inverting the NOHE for N = 4. Then, since the NOHE for arbitrary N is decomposed in the iteration of this gadget, it follows naively that it can be inverted by iterating the same inversion procedure; importantly, this iteration can be further optimised in the general case.
[0151] Inverting a minimal NOHE:
[0152] To illustrate the main idea, we detail explicitly how the Clifford NOHE inversion works on the simple example of N = 4. In this case, the NOHE can be written as the isometry H J ® y-. O') ( 'h for inverting it, we need to implement the right-inverse
[0153]
[0154] G = 10 J ®fc) (0such that G Unohe = 1 is the identity onH(2). Due to the manifest nonreversibility of G, it cannot be implemented via unitaries only; however, we now outline a protocol to execute G on the image of Unohe by introducing measurements. To this end, let us first consider a generic three-qubit input state
[0155]
[0156] Xi.j.fc h ®fc)-Qur goal is to construct the state=ij,fe Xi,j,k 10 ® *)>under the assumption that % E Unohe(H(2)). For this, we proceed as in Fig. 5b: (i) We implement a controlled-not gate between the third and the second qubit; (ii) We entangle the first and second qubit with an ancillary Bell pair via controlled-phasegates; (iii) We measure the third input qubit in the X basis, collecting the outcome so G {0,1}; (iv) We measure the ancillas in a single-qubit Pauli basis, choosing either the Z (if so = 0) or the X basis (if so = 1), and we collect the outcomes si = (a, P) E {0, 1 }2; (v) We finally apply singlequbit Pauli gates on the original qubits, depending on (so, Si). To inspect the protocol further, we start by writing down the conditional state after the X basis measurement in step (iii), which
[0157]
[0158] reads
[0159]
[0160] i,j,k here the ancillary qubits are written to the left of the tensor product. For step (iv), we now measure the ancillas depending on the obtained outcome so. If we measured so = 0, we simply measure in the Z basis; the system
[0161]
[0162] |x|s0= 0, Si) = Z“ ® Xi,j,k © *) ■
[0163] is then projected to, jThus, in step (v) we simply need to apply the Pauli correction Z“ 0 Zpto cancel the byproduct and retrieve our target output G|%). Differently, if so = 1 we measure in the X basis; now the conditional state reads
[0164] | xko = i, = v1®. )*<j+fe)+fexl!j,fe¥,i + fc),
[0165]
[0166] 1J which for general % is not trivially connected to the target output. However, we recall now the assumption that % belongs to Unohe(H(2)). This I
[0167]
[0168] P = IM, (M, *1 ■
[0169] subspace can be characterised by the projector
[0170]
[0171] Crucially, if % is stabilised by this projector, i.e. if P |%) = |%), then on all its non-vanishing components we get (ij + ik + k) = 0 mod2, meaning that the phases in the equation above are all equal. Thus, if the input is from the subspace of interest, again we can retrieve the desired output by simply applying a Pauli correction, which now reads Zp0 Z“. In both cases, we deterministically apply G, under the assumption that |%) = |nohe(y)) for some y E H(2).
[0172] General case:
[0173] For larger N, we note that the operation Unohe can be implemented by iterating the same isometry introduced above, eventually resulting in a larger isometry from log N qubits to N - 1 qubits. Since the basic building-block is the same, it can be inverted by iterating the inversion procedure outlined for N = 4. This is shown explicitly for N = 16 in Fig. 5c. The circuit therein can be understood by comparison with the circuit for realising Unohe in Fig. 4a: we invert it by applying the destructive protocol in Fig. 5b in place of the direct (non-Clifford) unitary inversion. Note that in the displayed circuit we first execute all the unitary gates, and then all the SQPMs. This is allowed since only Clifford operations are involved, implying that we do not need to physically implement the adaptive Pauli corrections - that is, the byproducts of the form Z“ 0 Zp: instead, byproducts can be ‘propagated’ through the circuit up to the point of a SQPM, where they are accounted for by adequately interpreting the measurement outcomes.This eliminates the need for mid-circuit adaptive gates, thereby separating the circuit in two parts, as highlighted in the figure: the first part Vnohe contains the Clifford operations and Pauli measurements that are pre-determined; the second part contains adaptive single-qubit Pauli measurements (SQPMs) on the ancillas, where the measurement bases are chosen depending on previous measurement outcomes. Note that since the measurements outcomes are probabilistic, Vnohe also has a classical output so G {0, 1 [logwhich collects the outcomes; we indicate the executed operation by Vnohe(s0).
[0174] The SQPMs are performed according to a decision diagram; this is specified by a function FT(SO, SI,... ) that is continuously updated by the measurement outcomes (so, si,... ). The procedure is completed via O(log N) rounds of measurements. We can summarise this as follows: given any arbitrary state E Unohe(H(log N)), then there exists a sequence of adaptive SQPMs that p(«o) i,g\.. ixjrt
[0175] implements the transformation
[0176]
[0177] nohfsSQPM®NOHEupon the application of a final Pauli correction; moreover, the protocol is always completed in O(log N) measurement rounds. Resource-state based implementation:
[0178] This same protocol for inverting Unohe can as well be executed with the aid of a re source- state
[0179]
[0180] of the form
[0181]
[0182] Y, Z where the indexes run over Y, ZG{0, 1 }1. Therein we omit the classical output in Vnohes0and simply write Vnohe because manifestly any so is equally well-suited for the following. This state can thus be assembled by first preparing N - 1 Bell pairs, and then applying any Vnohes0to one half; subsets of qubits are defined with the same convention of the section above. For the inversion, we employ the scheme displayed in Fig. 5d: we first teleport the input state in the resource state via Bell measurements between the input qubits and D', collecting the measurement outcomes in a binary vector s-1; then, we perform SQPMs on P, for which we employ a modified decision function F'T(S-I, so,... ) that also accounts for the outcomes of the Bell measurements. We discuss in detail how F'T is derived in the SM; here we mention that this type of protocol is allowed via SQPMs by the fact that Vnohe is Clifford, implying that (2)is a stabiliser state. Particularly, this enables to account for the stochastic nature of the Bell measurements by propagating Pauli byproducts through the state, and thus realising a deterministic protocol.
[0183]
[0184] Clifford
[0185] The tools developed in the sections above are suffcient to design a query protocol, which only involves Clifford operations and SQPMs. While this is not the ultimate construction, it is pedagogically useful to first discuss this simplified implementation. For this, assume that boththe RSs <b(1)and <b(2)have been prepared in advance, and are supported on qubits I U D and D'UPUF respectively. An arbitrary address state 3, |y) = 52® ^ ) issupported on the log N QPU register 4 qubits R. Thus, the initial state is y 0 (1)0 (2). To execute the query, we proceed in three steps as detailed below.
[0186] (i) We start with our GT -based sampling protocol; that is, we perform BMs between R and I, and collect the outcomes m. As we showed above, this directly results in the state |N0HEm(\| / )) on D. At this stage, it is useful to write down the obtained probabilistic NOHE explicitly
[0187] |NOHE |nohe(® ® b)) ® for an arbitrary address y
[0188]
[0189] : ® we already discussed, different samples are related by highly complex circuits (in terms of non-Cliffordness). This might suggest that outcomes m
[0190]
[0191] 0 should be discarded for effciently proceeding with the query; this would be in line with many similar gate-sampling protocols, which are commonly based on post-selection. Indeed, what seems compromised here is the relation between the amplitudes yxand the computational basis states |x) - a discrepancy that, at this stage, cannot be eliminated via simple operations. However, in the following we argue that this is not the case, and that any NOHE generated in this way can be successfully employed for the query.
[0192] (ii) At this point, the state reads <b(1)m(v) 0 <b(2); the first part is supported on the unmeasured qubits D, while the second, which has not been used yet, is still on D' U P U F. We now load the data by applying to D a modified version of the single qubit operation WD dependent on m:
[0193] ■ 2(Ar-l)
[0194] Wcfni)
[0195]
[0196] Cr=O _a=Ar— 1 = WD(m) obtaining the state
[0197]
[0198] To understand the effect of this operation, it is convenient to write down explicitly the state r 2i A - 1 >
[0199] WHAI)) = |nofce;a- br ® |Aa>iE|TO£Q
[0200]
[0201] where we used the compact notation Da|m= Db ©g-i (a-N+i). The crucial aspect to be appreciated here is the following: note that the original amplitudes yxare related to the correct data-bits Dx. Conceptually, we have adapted the data loading to the sampled NOHE™ G a, in such a way to preserve the desired correspondence between amplitudes and data-bits.
[0202] (iii) At this point, the current quantum state has the form < F(1)m(v|M) 0 (2). Crucially, it can be shown that for any memory M and any address y, one always has (1)m (y|M) G Unohe(H(logN+1)). Therefore, to complete the query we can leverage the methods of the section above to invert Unohe with the aid of <b(2). That is, we first implement BMs between D and D', collecting the outcomes s-i, and then we proceed with a pattern of SQPMs on P according tothe decision function F'T. Upon the final application of Pauli corrections, this results in the state
[0203]
[0204] ® [H m 1;
[0205] thus, we can finally apply a Hadamard gate on the bus qubit to retrieve the desired output \| / M.
[0206] The fundamental feature of the presented query protocol is that, given the RS
[0207]
[0208] (2), it only involves Clifford online operations. In the next sections, we show that the same can be achieved with a unified RS <b l, which allows an important saving of resources.
[0209] Resource-state definition:
[0210] We now give an exemplary defintion of the resource-state 1, , which is the major protagonist of the inventive qRAM design. For this, we start with a formal constructive definition; we outline protocols for physically preparing in subsequent sections. Formally, can be specified by the circuit in Fig. 6: there, we prepare the resource-states <b(1)and <b(2)and perform (partial) Bell measurements; indeed, note that not all the Bell measurements are completed. Specifically, we only measure the first N -1 qubits of D. After this, we finally apply a Pauli correction to PUF, conditioned on the measurement outcomes. Despite the Bell measurements rendering the circuit stochastic, in the following section we show that this protocol becomes deterministic with a suitable choice of the latter Pauli correction; for now, we can formally define as the output of this circuit when all measurement outcomes are +1, and no correction 1$) == tec1)) ® te<2)\.
[0211] is applied. Thus, we can write it as
[0212]
[0213] I / I / where we defined the contraction
[0214]
[0215] = J? (®, j) Hr (j | j,.
[0216] as the linear map Therein, x 6 {0, 1}Nindexes the computational basis on L, while j, k E {0, I J2 1label the computational basis on D and D' respectively; moreover, the term D(x, j) = Ho=o
[0217]
[0218] forces a correspondence between x and the lastN components of j. When we execute the query, is already prepared; it has support on a set of resource qubits A, e.g. of dimension |A| = 5N - 3, and belongs to the Hilbert space
[0219]
[0220] 3^, as
[0221] The construction in Fig. 6 naturally suggests to partition A in disjoint subsets as A = I U L U P U F, of sizes |I| = log N, |L| = N, |P| = 2 (2N - log N - 2) and |F| = log N +1; the Hilbert space of these physical qubits is thus partitioned as
[0222]
[0223] =® We will refer to this as the ‘physical’ Hilbert space, as it describes the quantum state of the resource qubits A, which are physically present on hardware during the query. Formally, can be written in the computational basis as
[0224]
[0225] - > I'*0’ ■ ■ • ■■ici^' where Q = |A| — 1 and we set theo=
[0226]
[0227] / j' > K. <-*'
[0228] tensor entries as j,k therein, we also set M = log N - 1 and we identify x = (1M+I,..., 1M+N). In the following, it will be useful to associate the contracted mute indexes (j, k) with virtual degrees of freedom; these belong to the virtual Hilbert space HD 0 HD', which is not associated to physical qubits. The interplay between the physical picture and the virtual one is then mediated by the map P: HD 0 HD- —> HL, which formally implemens the contraction; many of the operations executed during the query will be most easily understood in the virtual picture.
[0229] Deterministic resource-state preparation:
[0230] The presented formal definition of is apparently non-determini stic, due to the presence of Bell measurements; indeed, as to now we defined as the resulting state, post-selected on all the measurement outcomes being +1. In contrast, we now argue that any outcome is equally favorable, as we can cope with it by simply adding an adaptive Pauli correction to the end of the circuit; thus, no post-selection is needed, and the circuit can be regarded as deterministic. Ultimately, this is allowed by the fact that one of the two states we are ‘merging’, namely <b(2), is a stabiliser state; thus, by implementing standard propagation of Pauli operators we eventually end up with a simple Pauli byproduct. Here we sketch this as follows. To start, let us consider generic outcomes in the X measurements composing the Bell measurements. We collect the outcomes on D' with the binary vector b E {0, 1}2N-1; for D, recall that we only measure the first N - 1 qubits: for simplicity, we collect the outcomes as a E {0, 1 }2 I, where we set by default aa= 0 for a > N - 1. The effect of these generic outcomes is to substitute the / KI
[0231] map P with the generalised version
[0232]
[0233] Crucially, applying Pa,b is equivalent to applying P, after having previously applied a Pauli operator; this!^a b== |x®az®'’], can be seen from the equality
[0234]
[0235] L J®' where we set e.g.
[0236]
[0237] °. We stress the relevant fact that the Pauli correction only acts on D', and not
[0238] on D. Thus, the resulting state takes the form |
[0239]
[0240] < Pa,b) =1• ' I “,b / , where we set 1 ^(2) \=
[0241]
[0242] I “b / = JI '• ' Therefore, the effects of measuring (a, b) (0, 0) can be understood in terms of the properties of <b(2)only. Finally, to complete the proof we employ generic properties of (entangled) stabiliser states, which allow us to re-write the correction X®aZ®bas a Pauli operator acting on P U F only. With this last step, we can to all effects account for the stochastic nature of the measurements by simply applying Pauli corrections to the unmeasured qubits P U F, thereby rendering the protocol deterministic.
[0243]
[0244] : details
[0245] We now present in detail the query protocol of the inventive qRAM design. As mentioned above, the proposed query proceeds in four steps, which can be put in correspondence with those highlighted in Fig. 4b. However, in our implementation these are executed with the aid of a resource state 1, by employing the techniques introduced above. Another understanding of the query is that we implement a ‘virtual’ version of the simplified Clifford query described previously. At the formal level, we will make large use of the abstract map '^to connect the physical operations to the virtual-space dynamics.
[0246] The steps can be understood as: (i) Sampling; (ii) Loading; (iii) Retrieving. The query begins as follows. The address-state 3 |y) =
[0247]
[0248] jsinitially supported on the e.g. log N qubits composing the QPU register 4, R; the resource-state 1, is already assembled and stored on resource qubits A. For step (i), we start by sampling a virtual random NOHE of y out of the ensemble a. For this, we employ our sampling procedure by performing Bell measurements between R and I, collecting the outcomes m; this results in a state of the form
[0249]
[0250] where the virtual state is already defined above. Thus, in step (i) we applied a probabilistic NOHE (in virtual space) to the address 3, y, by sampling uniformly from a.
[0251] For step (ii), we now proceed by loading the data. This is achieved via a loading operation M-I „
[0252]
[0253]
[0254] , acting on L as follows:
[0255]
[0256] where we indicated by L(a) E L the qubits in L c A; for the equation above, also note that q1(a) simply extracts the binary representation of an integer a. By applying this, we obtain the state |< J>m(v|M)) =
[0257]
[0258] (TO) |< J>m(y)),
[0259] U'l-Mj;: k’1-' );
[0260] which has the form
[0261]
[0262] ™
[0263] For step (iii), we complete our protocol by inverting the NOHE. Importantly, we do not need to directly invert the specific NOHEm E a that we sampled during the first step: we simply need to invert the standard NOHE. To understand this, let us consider the state-vector (^’l- ) €..^b jnvirtualSpace, and suppose we applied the inverse of the NOHE operation
[0264]
[0265] to it; this would result in the state ®
[0266] Crucially, this is related to the desired state |\| / M) =
[0267]
[0268] by application of a Hadamard to the last qubit, and the simple Pauli operation Bm= X®bZ®athat we already introduced, meaning that \| / M can be retrieved straightforwardly. While the equation above is formallywritten in the virtual space now the key task is to achieve this in the physical space, by only employing single-qubit Pauli measurements (SQPMs) on the qubits in L U P.
[0269] We start by measuring all the qubits in L in the X basis, collecting the measurement outcomes M; crucially, the resulting conditional state can be written in the form
[0270]
[0271] I ' where M' is calculated as shown in the SM. This equation must be read as follows: the state < J>m(y|M) has support on qubits L U P U F; the state d>(1)m (y|M) belongs to the virtual space
[0272]
[0273] the operation Vnohe acting on it executes a map from virtual to physical space of the form
[0274]
[0275] Further, we note that we always have
[0276] - m
[0277]
[0278] Thus, the same concept of SQPMSraoholds here as well: we can design a sequence of SQPMs such that, upon the application of a final Pauli operation,
[0279]
[0280] In practice, this realises the application of the inverse of the NOHE operation in physical space, as the right-hand side state in the equation above is supported on the physical qubits F. Thus, the right hand side can be transformed in the desired output state 8, \| / M by simply applying a Hadamard to the bus, and a suitable Pauli correction to the rest. Finally, in the last step (iv) we can collect the output state 8. To summarise, for the whole procedure presented so far we get the transformation
[0281] PrM)WM (m) U ® $
[0282] SQPM thus completing the query procedure.
[0283]
[0284] Wp(m)
[0285] We finally discuss how the loading operation is executed. For this, it is useful to separate two possible scenarios: (a) the (classical) memory is stored on classical hardware; (b) it is stored on quantum hardware (i.e., on memory qubits). We note that for classical memories, one can straightforwardly switch from one scenario to the other, e.g. by measuring the memory qubits for swithching from (ii) to (a), or by applying classically-conditioned gates for the opposite switch. In general, scenario (a) might be experimentally preferable, as it saves qubit resources; however, scenario (b) could be advantageous for specific task, so we analyse the two independently.
[0286] For scenario (a), at an abstract level it is suffcient to proceed as follows. Given the measurement outcomes m, for each qubit L(a) G L c A, we compute the string x = b©q1(a) on classical hardware; then, we apply a Z gate to L(a) if Dx= 1. Note that this can be executed in parallelon all qubits L(a), thus allowing for a 0(1) implementation. Most importantly, for this we do not need the classical control software to ‘lookup’ the memory, i.e. to explicitly read all the values Dx. To understand this fact, we now present a detailed construction for the classical hardware implementing WM(HI). We model the controls on L as follows. To each L(a), we associate one ‘control bit’ BaG {0, 1 }, and one ‘control device’ Capointing at qubit L(a); when we Ca is triggered, it only looks up Ba, and applies a Z gate to L(a) if Ba= 1.
[0287] We assume all the control devices can be triggered in parallel. In addition, the classical memory is coupled to a network of swaps, which are controlled by only log N external control bits Bo, Bi..., Biog N-i; note that each BK controls N / 2 swaps simultaneously. When the loading operation is called at step (ii) of the query, we have already registered on classical memory m = (a, b); we thus straightforwardly set BK = bk. After this is executed, the circuit of swaps is activated; This sets the control bits to exactly Ba=Db®n i (a). We now only need to trigger all the controls Cain parallel, resulting in the implementation of the desired operation WM(IH). Thus, the desired loading is executed without any ‘reading’ of the memory by classical hardware. For scenario (b), the data bits Dxare stored in the computational basis states {|0), |1)} of a set of memory qubits M(0), M(l),..., M(N~1); specifically, qubit M(a) is set to the state Djt-i(a). Then, for implementing WM(HI), we need to execute a CZ gate between each pair of qubits M(a) and L(b © q '(a)). For a processor featuring local connectivity, this requires to implement a circuit of swaps conditioned on the classical values b, similar to the classical circuit outlined above.
[0288] Quantum error-corrected qRAM:
[0289] A fundamental question, that has long concerned previous literature, is on whether QEC can be employed to scale-up a qRAM module to serve QPUs operating at relevant system sizes. Concerns are motivated by a series of facts. First, the number of ancillary qubits employed by (fast) qRAMs is exponential in the size of the QPU, suggesting that also the error-rate to be addressed via QEC scales as an exponential function of O(N); this would make the qRAM not error-correctable in the first place for any practical purpose. Second, the deep non-Cliffordness of Unohe G CiogN suggests that unbearable resources would be required for FT implementations of the query; specifically O(N) non-Clifford gates need to be applied. Indeed, previous studies have based estimates on the bare count of needed ‘magic’ states to be produced and injected in the computation during the query.
[0290] Built-in noise-resilience:It was first suggested by Giovannetti, Maccone and Lloyd that circuit-level decopositions of the query might exist, where the relevant infidelity only scales as a function of polylogN. More precisely, the figure of merit we are interested in is the following: if a given qRAM protocol, provided the address y as input, produces as output the density matrix pM, then the query fidelity FqH AM ( < '. M M [ / J. M I I 'At / :
[0291] is defined as
[0292]
[0293] '1L J I / therein, Trrest traces out any ancillary qubits that should ideally be disentangled from the output. For generic qRAM protocols, this scales as FqRAM ~ exp {-polyN}, because errors occurring at any of the O(N) space-time events can have an important impact. The method introduced by Giovannetti and colleagues, dubbed as bucketbrigade, aimed at constraining the propagation of errors by reducing the amount of unnecessary entanglement produced during the procedure; after the enhanced performance of the bucket-brigade remained a conjecture for many years, recently Hann et al. were able to prove, both analytically and numerically, that indeed specific versions of the bucket-brigade have an error-rate bounded by 1 - FqRAM polylogN. For this to be achieved, one must be careful in designing the query circuit, by making sure that only a polylogN number of error events can truly corrupt the query. This includes the adoption of specific designs for both the OHE encoding-decoding circuits, and of the loading step.
[0294] In the inventive scheme, the noise-resilience of the bucketbrigade method is built-in the whole qRAM procedure. This is achieved by the underlying structure of Unohe, which sets the basis of the resource-state . Our circuit-level decomposition can indeed be understood as a modified version of the bucket-brigade, that preserves all its noise-resilience features identified in the dedicated literature. To certify this theoretical expectation, we simulate qRAM queries for memory sizes up to N = 1024, with random memories M (i.e., choosing randomly the databits Dx). Despite the dimension of the total Hilbert space apparently scaling as 2O(N), the simulation is allowed by known techniques, which leverage the manifest non-universality of the gate set employed by qRAM. We consider two separate error models for our simulation. First, we simulate an always-on depolarising channel, for which we employ standard Monte Carlo methods: at each step, all qubits, both idle and operative, are affected by a random Pauli error. Second, we consider a model which is more suitable for neutral-atom platforms, where only qubits involved in gates are affected by Z errors; here, we only apply random Z gates on the currently-manipulated qubits. This is motivated by the fact that idle atoms in hyperfine states are not likely to undergo state-flips, and their coherence times are extremely long if compared to the gate-time. Moreover, errors are dominated by leakage out of the computational manifold, e.g. due to decays from Rydberg states during two-qubit gates; for scaling standard QEC, this requires to adopt erasure detection, with consequent conversion to Z errors. We note that thesemethods are now being successfully implemented in state-of-the-art experiments, and are likely to become a central component of FT computation with neutralatoms.
[0295] By further analysing our scheme, we theoretically expect an error scaling of the form 1 - FQRAM < c log“ N, with the coefficient a depending on the error model. Therein, e is the error-rate of a single physical qubit during a time-step. We estimate the coefficients in the range a
[0296]
[0297] 4 for the first model with always-on depolarisation,
[0298]
[0299] and a 2 for the second model. Fig. 3f displays the obtained numerical results; while our theoretical estimates are only derived via qualitative methods, we find high agreement with the simulation, from which we extract the numerical values a — 3.8 and a — 1.9 for the two error models, respectively.
[0300] Fault-tolerant implementation:
[0301] We now discuss fault-tolerant implementations of the proposed qRAM, highlighting the key advancements of this work in terms of QEC. For this, we first recall that in a ‘fault-tolerant quantum computation’ (FTQC) the processor operates on logical qubits, and implements standard QEC between the logical gates. The necessary condition for QEC to be effective in these schemes is that during each logical operation errors on physical qubits never propagate inside the logical blocks (fault-tolerance condition); if this holds true for any logical operation, including syndrome-extraction and error-correction, then QEC can succeed in arbitrarily suppressing the logical error rate (if physical errors are beyond a ‘circuit-level’ threshold). One central concept in FTQC is that of transveral gates: for instance, a logical single-qubit gate UL is transversal if it can be executed by applying one single-qubit gate to each physical qubit in a block; an analogous definition holds for two-qubit gates. It is manifest that transversal gates are intrinsically fault-tolerant; however, a well-known result is that no QEC code exists, with a universal set of transversal gates (Eastin-Knill theorem). It is a common fact for typical QEC codes, that gates from the Clifford group are transversal: for instance, this is true for Calderbank-Shor-Steane (CSS) codes, for color codes, and for the famous toric and surface codes. This illustrates well the fact that (for standard QEC schemes) Clifford gates are commonly much simpler, and less resource-consuming, than non-Clifford gates; the latter ones, which cannot be implemented by transversal operations, require more demanding techniques, e.g. ‘magic-state injection’ or ‘code-switching’. The hardness of implementing non-Clifford gates with standard QEC has so far left fundamental concerns on the very possibility of errorcorrecting a query to the qRAM, since previous proposals needed O(N) such gates to be implemented online during the execution of the algorithm.
[0302] In the inventive qRAM design, there are two key aspects that allow for directly integrating QEC. First, as discussed in the previous section, the logical error rate scales as polylogN, implyingthat QEC is possible to begin with. Second, the proposed query procedure can be entirely Clifford: thus, with standard QEC codes any operation within the query can be implemented by transversal gates only. Specifically, we note that for the query to be entirely transversal, it is sufficient that the following operations are transversal for the specific code considered: Pauli gates and measurements, and (at least) one between the controlled-not and the controlled-phase gates. Indeed, the needed Bell measurements can be equally well be implemented via any of these two-qubit gates. In the following, we assume these generally-true conditions on transversal operations to hold, and we analyze the various steps and aspects of our qRAM design one-by-one in the spirit of FTQC.
[0303] Resource-state
[0304]
[0305] Preparing the RS is the most demanding part of our qRAM design, both with and without QEC. Indeed, we stress that any remarkable complexity associated with qRAM, in this work is entirely outsourced to this step. As discussed, our approach has two main advantages. The first is that any demanding operation does not directly impact the online query: once the main algorithm is running, any highly complex protocol is already executed, and the query is fast and simple. Thus, for many purposes the complexity associated with the preparation of should not be included in the online cost-evaluation of the algorithm; rather, can be interpreted as a resource furnished by the processor. Second, we no longer need to apply the unitary Unohe to an arbitrary input state: rather, we need to prepare a specific, known state, which has no connection with any detail of the algorithm nor the memory. This is generally a much simpler task: for instance, one can employ post-selected methods, as nothing is lost if the preparation fails. At the technical level, the cost of the preparation of can be evaluated in several ways. For instance, the number of Toffoli gates employed in the circuit-level decomposition of Fig. 6 is 2N - log N - 2. We note that since the only non-Clifford gate which is needed is the Toffoli gate, a sound strategy is to directly distill ad-hoc RSs, resulting in a minimal number of MSFs. Alternatively, one can employ more MSFs for distilling simpler T states. In this regard, several decompositions of the Toffoli are possible. Since the preparation of does not impact the runtime of the principal algorithm, it is convenient to sacrifice circuit-depth for lowering the number of needed MSFs; under this perspective, typical decompositions of the Toffoli gate in four T gates are optimal. In addition, we remark that the last N Toffoli gates can actually be substituted by controlled-Hadamard gates, which only require two T gates; thus, in terms of T count our preparation procedure can be implemented with 6N - log N - 2 magic states of the T type.
[0306] Resource-stateAfter the RS is prepared, it is stored statically, and does not need to be manipulated until the query begins. At this stage, the qubits only need to be corrected at the memory-level, where thresholds are much higher. In addition, as shown in the section above, the proposed qRAM can tolerate several errors in the RS; consequently, syndrome extraction can be performed at low rates. In addition, the Clifford query comes with another crucial advantage: detected errors do not need to be corrected before starting the query. Instead, one can simply calculate the propagation of detected errors through the query, and only correct them at the end of it on the final log N + 1 qubits. Eventually, this means that only very limited resources are required for storing the RS, and no heavy parallel classical processing is needed for fast decoding of the syndrome.
[0307] Query implementation:
[0308] For implementing the query, we only need transversal operations, which include a first layer of parallel Bell measurements on log N pairs of logical qubits, and O(log N) rounds of SQPMs on O(N) logical qubits. Since all these operations are transversal, there is no T cost associated with the query, and no MSF is needed. In addition, we remark the following important fact. Throughout common FTQCs, one needs to continuously extract the syndrome, which allows to identify the location of errors and consequently correct them. Typically, this is achieved by implementing repeated stabiliser measurements: these consist of the measurement of particular correlations between Pauli operators, that do not project the logical state, but allow to detect deviations from the logical space. For measuring the stabilisers fault-tolerantly, one usually needs to employ resource-consuming protocols, with the introduction of a large number of ancillary qubits and many rounds of ‘ancilla-state verification’; in addition, commonly the whole stabiliser measurement needs to be repeated several times, in order to mitigate measurement errors. Importantly, none of these techniques are necessary during our query scheme. This is because almost the whole procedure only contains projective measurements of the logical qubits in the Pauli basis. Since Pauli operators are transversal, these projections can be executed by simply measuring all the physical qubits in a block, and is automatically fault-tolerant; indeed, the obtained outcomes then not only contain the result of the desired logical measurement, but also the needed syndrome information. Furthermore, the only operation which does not consist of a trivial SQPM is the initial GT, which also requires to apply entangling gates for executing the Bell measurements. However, again we do not need midcircuit syndrome extraction: as was shown by Knill in its seminal work, by executing the GT we also directly get the syndrome. In summary, the Clifford and intrinsically measurementbased character of the query allows us to execute it fault-tolerantly with transversal operationsonly, without injecting magic states, and without the need of mid-circuit stabiliser measurements and physical error-correction.
[0309] Resource estimations:
[0310] We now estimate the resources needed for fault-tolerant implementations of the proposed qRAM module. To this end, we consider for simplicity a concatenated code (e.g., a conventional CSS code such as the Steane code) with threshold cth. Moreover, we assume that physical components fail with a raw rate c. As a figure of merit, suppose we target a final qRAM fidelity FQRAM above 1 - e*, i.e. we require the logical error-ceoorected infidelity to be bounded by 1-FqRAM < c*; then, we show that the number of needed code concatenations scales as
[0311] log log f— log“ / log —
[0312] \ t* J / \ f
[0313] where a is the exponent introduced above, dependent on the specific error model. In summary, the number of physical qubits needed for representing a logical qubit in this simplified scenario scales as log (log N). We remark
[0314] that the second logarithm herein originates directly from the built-in noise-resilience of our protocol: if different query sub-structures are employed, the physical resources needed for one single logical qubit are exponentially more, scaling as log polyN.
[0315] Neutral atom blueprint:
[0316] We now outline a detailed exemplary qRAM blueprint based on the concepts above, which is specifically designed for state-of-the-art neutral-atom processors. In the following, we only employ techniques that have already been demonstrated in large-scale QC experiments with these platforms. While our design is well-suited for many other technologies, including trappedions, photonic chips and superconducting devices, specific properties of neutral-atom processors make them a natural choice for the following proposal.
[0317] Processor overview:
[0318] Neutral-atoms have emerged as a leading platform for QC in very recent years, due to a series of breakthrough experiments that facilitated an extremely rapid system-size scaling and technological development. In the following, we refer to reconfigurable processors: here the physical qubits are single atoms trapped in optical tweezers, which allow high flexibility of the system layout. Indeed, while high-fidelity gates are realised via Rydberg interactions at typical distances of few pm, the tweezers can be employed to shuttle the atoms across regions spanning hundreds of pm, while maintaining the internal coherence of the qubits. Together with arbitrary single-qubit manipulations and mid-circuit readout, this completes the picture of a promising and unique QC platform.In the last years, high two-qubit gate fidelities in the 99.5% range, and easily accessible systemsizes of thousands of atoms, have stimulated impressive experimental demonstrations, including investigations of logical QC with QEC successfully implemented. Neutral atoms are thus a natural choice for near-term realizations of the proposed qRAM module, both for the flexibility of the platform, and for the possibility of implementing errorcorrection.
[0319] Neutral-atom qRAM scheme:
[0320] A realization of our qRAM module with neutral atoms can be blueprinted as sketched in Fig.
[0321] 1c. In the following we directly assume a fault-tolerant, error-corrected implementation, but thanks to the demonstrated built-in noise resilience, the underlying logical structure can as well be implemented at the physical level for small memories. The resource qubits A supporting the RS are stored statically in SLM tweezer-traps, realising a ‘qRAM storage zone’. Between queries, standard QEC is performed to detect and correct errors on due to decoherence; this only requires ‘memory-level QEC’, and thus features much higher thresholds than FTQC. Given the very high coherence times of qubits encoded in hyperfine levels, and the noiseresilience of the whole qRAM design, error detection can be performed at low rates in this setting (recall that error correction is not needed). When the query starts, we only need to interface the log N logical qubits in I c A with the log N address QPU qubits; for this, we can employ coherent atom transport, or leverage pre-distilled Bell pairs for entanglement swapping, and perform Bell measurements. As discussed in the section above, this directly provides all the needed syndrome information to correct errors during the gates or the transport (via ‘Knill QEC’); remarkably, this also allows to detect loss errors during the transport as erasures. The rest of the query protocol can be implemented by means of local, highly parallelized operations only on the remaining physical qubits in A, and thus can be implemented entirely in the qRAM storage zone. Specifically, we can use developed techniques for single-qubit gates and measurements such as SLM-induced light shifts. For the measurements, (at least) two approaches are possible: (i) as shown in recent experiments with alkaline-earth atoms, specific atomic structures can be leveraged to implement single-qubit non-destructive measurements; (ii) otherwise, coherent transport to a ‘readout zone’ can be used for collective, destructive readout of subsets of qubits, as was implemented in large-scale QC demonstrations with alkali atoms. Finally, we need to extract the remained log N + 1 qubits in F c A, and feed them back to the QPU; for this, again we can use coherent transport, or pre-assembled Bell pairs. We note that the latter operation can also be performed at any time in advance to the start of the query, or in parallel with any previous step. This completes an end-to-end query. The second central part of our qRAM design is the preparation of , which is carried out independently in theqRAM zone. For implementing Unohe in the circuit decomposition of Fig. 4b, the major challenge is the nonlocal connectivity. This is a crucial aspect: on a locally-connected processor, it cannot be coped with effciently, as any method (including chains of swaps or teleportation) would jeopardize the fundamental error-resilience of the query. With neutral atom processors, we leverage coherent atom transport in order to artificially build the needed connectivity while preserving the error-resilience; however, at the hardware level there are several stringent requirements, for this to be achieved effciently. Below we first outline a generic scheme for preparing starting from a series of Bell pairs; then we present an end-to-end rearrangement protocol, whose output is the desired distribution of Bell pairs, positioned in space so to effectively reproduce the needed connectivity.
[0322] Preparation scheme:
[0323] Any quantum circuit U can be implemented via local operations on a set of suitably distributed Bell pairs (Bel Ipair distribution, BPD), where the spatial distribution of the pairs depends on U; this is achieved by simply employing standard teleportation to shuttle the logical information, and interfacing qubits locally. We now first focus on this paradigm for preparing , and then elaborate on the preparation of the BPD in the paragraph below. This can be understood in two parts: first, we prepare (1)and <b(2); second, we implement P via partial BMs to assemble . Importantly, the BPD for (1)and <b(2)is the same, allowing for efficient preparation. The needed BPD can be understood in terms of a ‘nested one-hot encoding bifurcation graph’ (NOHEBG), which is displayed in Fig. 7a. Therein, as shown in the insets, triangles represent ‘stations’ where qubits are stored; links represent the presence of a Bell pair shared between the triangles. For preparing (1)and <b(2), we simply need to iterate the application of the three-qubit gadgets displayed in Figs. 4d and 5b respectively; correspondingly, each station contains six qubits (three to support the teleported-in input, and three to teleport-out the output). Once the BPD is is prepared according to the NOHEBG, preparing is straightforward; remarkably, while (1)needs O(log N) steps to be prepared, instead <b(2), thanks to its stabiliserness, is prepared with a single layer of completely parallel operations. The only nontrivial part that remains to be discussed is the preparation of the BPD, which we outline below.
[0324] Rearrangement subroutine:
[0325] As an underlying exemplary structure, we consider 8 (2N - log N - 2) static traps generated by a spatiallight modulator (SLM), spatially arranged as shown in Fig. 7b. Specifically, we employ a hierarchy of two groupings: First, we divide the traps in log N main sectors, labeled by K = 0, 1,..., log N - 1; each sector K is further divided in K + 1 columns, labeled by C = 0, 1,..., K; moreover, column C in sector K is divided in 2C stations, labeled by S = 0, 1,..., 2C - 1.For each station, we consider 8 traps, which are arranged in a 3 x 3 checkerboard (with a defect in the right-bottom spot); we can thus label the traps within a station by two integers (x, y), so that the right-bottom defect spot is (1, 3). Together, the five labels (K, C, S, x, y) identify unambiguously one static trap. If we impose integer cartesian coordinates (X, Y ) on the 2D plane, these are related with the adopted labeling as X = x + 3C + 3K(K + l) / 2 and Y = y + 3S. To start, we position 5 (2N - log N - 2) qubits in the traps, such that 5 traps are occupied per station; precisely, we leave empty the leftmost column of each station, i.e. the traps (3, y). In each station, the qubits are initialised in the following configuration: the one in trap (2, 3) is simply in the |0) state, while the others are divided in two entangled pairs of the form EijWJkwhich is atwo-qubit cluster state; for common language, we will refer to the involved qubits as ’Bell pairs’, as they are locally equivalent. The pairs are such that (1, 1) and (1, 2) are entangled with (2, 1) and (2, 2) respectively; thus, the ’entanglement bonds’ are horizontal as shown in Fig. 7c. These pairs are prepared simultaneously in 0(1) time by first initializing the involved qubits in the |+) state, and then moving them to the entangling zone to apply a CZ gate. After this, we proceed with three subsequent layers of rearrangements. The goal of this rearrangement is to spread the Bell pairs among the stations in such a way to establish an effective connectivity, which will be a resource for quantum teleportation. The first layer of rearrangements couples stations within the same sector as shown in Fig. 7d; this is also shown in Fig. 7b. Specifically, for each station (except the rightmost ones of each sector) we pick with the acousto-optical deflector (AOD) beams the qubit in trap (1, 2), and we move it to a trap of a different station of the neighboring column. Precisely, depending on the starting basis, the arrival trap is either (1, 2) or (1, 3); we can write this rearrangement as (K, C, S, 1, 2) K, C 1, I I 3.2 + [S / 2j).,,,,
[0326] V L2J J for C > 0 and K > 0. Crucially, note that across the whole construction (i.e., even considering all the sectors together), moved qubits starting with the same vertical coordinate end up with the same vertical coordinate, as well as qubits starting with the same horizontal coordinate end up with the same horizontal coordinate; thus, we can perform this rearrangement with a single AOD step. The second layer or rearrangements couples neighboring sectors as shown in Fig. 7e, or as also highlighted in Fig. 7b. Specifically, for all the stations in sector K (except those in the leftmost column), we pick the qubit in trap (1, 1), and we move it to trap (3, 1) of a corresponding station in the neighboring sector SK-1. Thus, the rearrangement reads (K, C, S, 1, 1) (K - 1, C, S, 3, 1) for C < K and K > 0. Again, a crucial feature is that moved qubits starting with the same vertical (horizontal) coordinate end up with the same vertical (horizontal) coordinate; thus, again we can execute this with a single AOD step. The last layer of rearrangements couples the leftmost columns of each sector.Specifically, for each station in the leftmost column of sector K we pick the qubit in trap (1, 3), and we move it to a station in the leftmost column of sector K - 1, as shown in Fig. 7f, and highlighted in Fig. 7b; depending on the starting station, the arrival trap is either (3, 2) or (3, 3). Specifically, we perform the rearrangement
[0327] $ _L I I \
[0328] (K, C, S, 1, 1) i,c i
[0329]
[0330] for K > 0. Also in this third case, again motions are uniform in the vertical (horizontal) coordinates, such that this final layer of rearrangements can be executed in a single AOD step as well.
[0331] Summary:
[0332] Here, a novel method of quantum-accessing a memory 2 using a quantum address 3 and a qRAM system is shown which is readily integrable in present large-scale processors, allows for fast and robust quantum queries, and can be naturally combined with QEC. The key aspect is the separation of the qRAM subroutine in two parts. The first involves the preparation of a resource-state 1, (RS) , which is independent on both the memory 2 and the target task, and can be assembled efficiently in advance; it can be understood as a resource ‘fueling’ the qRAM. The second part implements the query by ‘consuming’ the resource state 1, via entangling quantum gates 5 and conditional quantum gates 7, preferably all Clifford operations, and measurements, preferably single-qubit Pauli measurements (SQPM). This is inspired by the gate teleportation paradigm (GT), which plays a foundational role in QEC: complex operations are outsourced to the offline preparation of RSs, only leaving simple tasks for the online computation. However, typically GT is only efficient for minimally non-Clifford tasks, like T-gate injection; in contrast, here we employ GT to efficiently implement highly non-Clifford subroutines. In addition, the inventive method is intrinsically error-resilient, with faults automatically suppressed by built-in mechanisms; this results in an exponentially- enhanced query fidelity, eventually opening the door to near-term implementations with and without QEC. Exemplary blueprints for reconfigurable neutral-atom processors are shown, only relying on technology that has been successfully implemented in large-scale
[0333] experiments.
Claims
Claims:
1. A method of quantum-accessing a memory (2) using a quantum address (3) by operating a quantum computing module (1 ) and a quantum processing unit (4), wherein the quantum computing module (1 ) comprises a plurality of resource qubits initialized in a resource state (1), wherein the quantum processing unit (4) supports a quantum address (3) comprising a plurality of address qubits, wherein the method comprises the steps:i. entangling a first subset of the resource qubits of the resource state (1) with the quantum address (3) by applying a single layer of entangling quantum gates (5) onto the first subset of the resource qubits and the address qubits, subsequently performing a single layer of measurements (6) on the entangled first subset of resource qubits and address qubits and collecting the measurement outcomes (m), ii. correlating a second subset of resource qubits of the resource state (1) with the memory (2) by applying a single layer of conditional quantum gates (7) depending on the measurement outcomes (m) from step i. and on the values stored in the memory (2) onto the second subset of resource qubits and subsequently performing a single layer of measurements (6) on the correlated second subset of resource qubits,iii. performing a logarithmic number of layers of measurements (6) on a third subset of the resource qubits of the resource state (1),iv. collecting the output state (8) on the unmeasured qubits of the resource state (1).
2. A method according to claim 1, wherein the entangling quantum gates (5) comprise Clifford controlled-phase gates.
3. A method according to any of the preceding claims, wherein all measurements (6) of resource and address qubits are single-qubit Pauli measurements.
4. A method according to any of the preceding claims, wherein all quantum gates (5, 7) are Clifford gates (10).
5. A method according to any of the preceding claims, wherein the first subset of the resource qubits of the resource state (1) is entangled with the quantum address (3) via a unit depth Clifford circuit.
6. A method according to any of the preceding claims, wherein the quantum address (3) comprises a bus qubit initialized in a bus state, preferably in the |+) state.
7. A method according to any of the preceding claims, wherein the initialization of the resource state (1) comprises applying non-Clifford gates onto the plurality of resource qubits, wherein the number of non-Clifford gates is of order N, wherein N is the number of bits or qubits of the memory (2).
8. A method according to any of the preceding claims, wherein the memory (2) is a classical memory comprising a plurality of bits or a quantum memory comprising a plurality of qubits.
9. A method according to any of the preceding claims, wherein the resource state (1) comprises order N resource qubits and is initialized in the quantum computing module via the following steps:• preparing order log N Bell pairs via entangling quantum gates (5),• implementing a nested one-hot encoding (9) on one half of the Bell pairs via applying order N non-Clifford gates on some resource qubits,• applying Clifford gates (10) on order N of the resource qubits in the nested one- hot encoding and the remaining resource qubits not acted on yet.
10. A quantum random access memory (qRAM) system comprising• a memory (2),• a quantum computing module (1 ) comprising a plurality of resource qubits initialized in a resource state (1),• a quantum processing unit (4) supporting a quantum address (3) comprising a plurality of address qubits,wherein the quantum processing unit (4) is configured to apply entangling quantum gates (5) and measurements (6) onto the resource qubits and the address qubits,wherein the quantum processing unit (4) is configured to correlate the memory (2) with the resource qubits of the resource state (1) by applying conditional quantum gates (7) onto the resource qubits,wherein the qRAM system is configured to output an output state (8) corresponding to the state of the quantum address (3) coherently entangled with the memory (2).
11. A qRAM system according to claim 10, wherein the quantum computing module (1 ') and the quantum processing unit (4) comprise neutral atom arrays.
12. A qRAM system according to claim 10 or claim 11, wherein the resource state (1) comprises order N resource qubits, wherein N is the number of bits or qubits stored by the memory (2).
13. A qRAM system according to claim 12, wherein the quantum computing module (1 ') is configured to initialize the resource state (1) by• preparing order log N Bell pairs via entangling quantum gates (5),• implementing a nested one-hot encoding (9) on one half of the Bell pairs via applying order N non-Clifford gates on some resource qubits,• applying Clifford gates (10) on order N of the resource qubits in the nested one- hot encoding and the remaining resource qubits not acted on yet.
14. A qRAM system according to any of the claims 10 to 13, wherein the quantum computing module (1 ) is configured to initialize the resource state (1) via a quantum circuit comprising order log(N) steps, wherein N is the number of bits or qubits of the memory (2).