Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

arXiv:2610.17185

Error-Corrected QRAM Queries with One-Fault-Tolerant \texttt{CSWAP} Gates

Shifan Xu, Connor T. Hann, Nathan Wiebe, Steven M. Girvin, Yongshan Ding

quant-phSubmitted Oct 12, 2026• Announced Oct 13, 2026• 0 citations
arXivHTMLPDF

Abstract

Quantum random-access memory (QRAM) enables coherent queries to classical data. However, the \(O(N)\) qubits required for a memory with \(N=2^n\) addresses make QRAM appear vulnerable to noise. Though bucket-brigade routing provides intrinsic noise resilience to reduce the error in QRAM, improving the fidelity of QRAM queries is still an important and challenging problem. We introduce a low-overhead protection framework for bucket-brigade QRAM with two complementary components. First, we propose a one-fault-tolerant repeat-until-success logical controlled-SWAP gate using the \([[4,2,2]]\) code under erasure noise channel. Interleaved erasure checks and local recovery correct every single erasure, so the leading logical failure probability is second order in the physical erasure error rates. Second, we exploit validity constraints of bucket-brigade routing to define local parity checks directly on the router states, without adding extra data qubits to create code redundancy. Under bit-flip noise, minimum-weight perfect matching with noiseless syndrome measurements corrects single interior faults, while open spatial boundaries retain a first-order contribution in the residual bit-flip rate. Monte Carlo simulations confirm quadratic suppression for the protected controlled-SWAP and improved depth scaling for decoded QRAM router-state snapshots. The two codes admit a concatenated realization in which the inner code supplies erasure protection and the outer code optionally corrects interior logical bit flips. Together, these results show how routing constraints and a protected non-Clifford routing gate can improve QRAM reliability under biased and erasure-dominant noise.

AI Summary

The paper asks whether bucket-brigade QRAM can be protected using erasure locations and routing-state constraints, rather than general-purpose fault-tolerant encoding alone. It develops two complementary protection layers for erasure-dominant and bit-flip-biased noise. The first implements a logical controlled-SWAP across three $[[4,2,2]]$ blocks using eight physical controlled-SWAPs, with interleaved erasure checks and conditional undo/restart or completion. Under the specified erasure model, every single flagged erasure is recoverable, leaving second-order failure contributions. Trajectory simulations, using ideal local erasure recovery and at most two attempts, give a fitted error-scaling exponent of $2.04$. The fault-free circuit uses 12 data qubits and 96 erasure-check outcomes; recovery and feedforward add latency. The second layer encodes routers in two rails and measures local weight-three $Z$ checks derived from valid parent–child routing patterns. MWPM corrects single interior bit flips. For independent bit flips and exact syndromes, the path-weighted snapshot infidelity obeys $\mathbb E[1-F_{\mathrm{tree}}]\le c_1\epsilon+c_2k\epsilon^2$, with depth-independent constants and $k=\log_2N-1$. Leaf-rail ambiguity leaves a first-order boundary term. Circuit-level stabilizer simulations reduce snapshot infidelity from approximately $0.0138$ to $0.00403$ at $k=6$ and physical error rate $10^{-3}$. The simulations benchmark the layers separately, not an end-to-end coherent query; the router benchmark uses destructive final readout. Concatenated fourth-order interior suppression is conditional on sufficiently small correlated and non-$X$ residual errors. Finite-bias noise, protected outer-check implementation, and full concatenated-circuit performance remain unresolved.

Little sign of AI-generated textAI use disclosedStrong assumptionsOverclaimsMissing comparison
Generative AI tools assisted with simulation-code design and manuscript preparation, including grammar checking.

Error found: The two-attempt protected-CSWAP failure estimate omits restart-limit aborts, whose leading coefficient alone is 11664 p_phys^2 at equal elementary rates, exceeding the displayed total of 1752 p_phys^2. At p_phys = 0.03, independent erasure-check errors force the specified protected protocol's failure probability to be at least approximately 0.590, above the raw baseline's approximately 0.422, contradicting the reported break-even point.

Written by gpt-6.1-sol from the paper's full text. Automated: it can be wrong.

Related papers

Reduction of Resources for a Fault-tolerant qRAM using Pieceable Bucket-Brigade Schemes

Bernard Ousmane Sane, Praveen Balaji, Michal Hajdušek +2 more

Quantum random access memory (qRAM) is valuable for applying quantum computers to a broad range of problems and for successfully implementing large-scale quantum computation systems. Despite its importance, its adoption may be restricted by the fact that the decomposition of the qRAM function contains non-transversal gates, which cannot be executed transversally on any quantum error correction (QEC) code. To overcome these limitations, existing works employ techniques like magic state distillation. However, distillation is time-and qubit-intensive. This paper presents a fault-tolerant, resource-efficient implementation of qRAM based on pieceable fault tolerance. By breaking the logical CSWAP and Toffoli gate into simpler, easier-to-execute but non-transversal components, we first show that bucket-brigade qRAM can be implemented in polynomial depth without the need for ancillary magic states, further gate decomposition, or other gates. Afterward, we demonstrate the resource efficiency of this method of attaining fault tolerance in quantum operations. Based on resource estimation results, fault-tolerant bucket brigades using the pieceable technique perform better than fault-tolerant bucket brigades using magic state distillation with respect to the number of physical qubits, time, and cost.

IEEE International Conference on Quantum Computing and Engineering (QCE)•Sep 15, 2024•0 citations

Heterogeneously error-corrected QRAMs

Ansh Singal, Kaitlin N. Smith

Quantum Random Access Memory (QRAM) holds the promise of enabling several large scale applications of quantum computers. However, designing fault tolerant QRAMs for large scale applications is still an open problem due to the poor error and resource scaling of current architectures. Existing protocols often overlook the need for error correcting QRAMs, which will be required for data-intensive, fault-tolerant applications. However, naively error correcting all qubits used to implement the QRAM is prohibitively resource intensive, quickly becoming infeasible for large applications. To fill this gap, we propose a novel QRAM architecture that leverages variable strength error correction. We strongly error-correct qubits that heavily influence query fidelity, and lightly correct less critical regions of the QRAM. This scheme produces queries with fidelity bounded by a constant for arbitrarily sized QRAMs without requiring improvements in physical hardware. Furthermore, the heterogeneous scheme requires 5x fewer resources (for depth 30 QRAM) and quadratically slower error scaling as compared to a uniformly error corrected Bucket Brigade QRAM. In this work, we present a rigorous analysis of the query fidelity scaling and perform resource analyses of two variations of the heterogeneous architecture using the surface code. We verify our results using numerical simulations and compare our results against several other existing QRAM techniques. Through our results, we quantitatively prove the optimal scaling of the heterogeneous architecture, paving a way for data-intensive and fault tolerant quantum applications.

arXiv:2504.21687•Apr 30, 2025•2 citations

Resilience of Quantum Random Access Memory to Generic Noise

Connor T. Hann, Gideon Lee, S. M. Girvin +1 more

Quantum random access memory (QRAM)-memory which stores classical data but allows queries to be performed in superposition-is required for the implementation of numerous quantum algorithms.While naive implementations of QRAM are highly susceptible to decoherence and hence not scalable, it has been argued that the bucket-brigade QRAM architecture [Giovannetti et al., Phys. Rev. Lett. 100, 160501 (2008)] is highly resilient to noise, with the infidelity of a query scaling only logarithmically with the memory size.In prior analyses, however, this favorable scaling followed directly from the use of contrived noise models, thus leaving open the question of whether experimental implementations would actually enjoy the purported scaling advantage.In this work, we study the effects of decoherence on QRAM in full generality.Our main result is a proof that this favorable infidelity scaling holds for arbitrary error channels (including, e.g., depolarizing noise and coherent errors).Our proof identifies the origin of this noise resilience as the limited entanglement among the memory's components, and it also reveals that significant architectural simplifications can be made while preserving the noise resilience.We verify these results numerically using a novel classical algorithm for the efficient simulation of noisy QRAM circuits.Our findings indicate that QRAM can be implemented with existing hardware in realistically noisy devices, and that high-fidelity queries are possible without quantum error correction.Furthermore, we also prove that the benefits of the bucket-brigade architecture persist when quantum error correction is used, in which case the scheme offers improved hardware efficiency and resilience to logical errors.

arXiv:2012.05340•PRX Quantum•Apr 29, 2021•95 citations

Resilience of Quantum Random Access Memory to Generic Noise

Connor T. Hann, Gideon Lee, S. M. Girvin +1 more

Quantum random access memory (QRAM)—memory which stores classical data but allows queries to be performed in superposition—is required for the implementation of numerous quantum algorithms. While naive implementations of QRAM are highly susceptible to decoherence and hence not scalable, it has been argued that the bucket-brigade QRAM architecture [Giovannetti et al., Phys. Rev. Lett. 100, 160501 (2008)] is highly resilient to noise, with the infidelity of a query scaling only logarithmically with the memory size. In prior analyses, however, this favorable scaling followed directly from the use of contrived noise models, thus leaving open the question of whether experimental implementations would actually enjoy the purported scaling advantage. In this work, we study the effects of decoherence on QRAM in full generality. Our main result is a proof that this favorable infidelity scaling holds for arbitrary error channels (including, e.g., depolarizing noise and coherent errors). Our proof identifies the origin of this noise resilience as the limited entanglement among the memory’s components, and it also reveals that significant architectural simplifications can be made while preserving the noise resilience. We verify these results numerically using a novel classical algorithm for the efficient simulation of noisy QRAM circuits. Our findings indicate that QRAM can be implemented with existing hardware in realistically noisy devices, and that high-fidelity queries are possible without quantum error correction. Furthermore, we also prove that the benefits of the bucket-brigade architecture persist when quantum error correction is used, in which case the scheme offers improved hardware efficiency and resilience to logical errors.

•Apr 29, 2021•57 citations

Novel Methods in Quantum Error Correction

Tomas Jochym-O’Connor

Quantum error correction is the backbone of fault-tolerant quantum computation, a necessary requirement for any large scale quantum computer. The fault-tolerance threshold theorem has long been a target for experimental precision, allowing for the possibility of reducing logical error rates to arbitrarily low levels without excessive overhead. While there are many promising fault-tolerant architectures, the path towards the most practical fault-tolerant scheme is far from decided and may vary for differing physical models. This thesis proposes new schemes for universal fault-tolerant quantum computation in both the concatenated and topological code settings. \n \nThrough the concatenation of two different error correcting codes, a set of universal fault-tolerant gates can be obtained without requiring the need for magic state distillation. A lower bound of $1.28 \\times 10^{-3}$ for the fault-tolerance threshold under circuit level depolarizing noise is obtained. Additionally, stacked codes are proposed as a means to simulate the action of a 3D topological code in 2D, allowing for the application of a universal set of transversal operations. While fault-tolerant, unfortunately the scheme does not exhibit a threshold due to the decreasing pseudo-threshold with growing code distance, yet points to potential interesting avenues for fault-tolerant computation in 2D without distillation. \n \nOne of the primary avenues to constructing fault-tolerant logical operations is through transversal operations. In this thesis, the set of single qubit logical gates that can be implemented transversally are characterized and determined to all belong to the Clifford hierarchy. Moreover, any diagonal two-qubit operation that can be applied transversally must belong to the same level of the Clifford hierarchy as the set of gates that can be implemented in the single-qubit case. \n \nThe opposite to quantum error correction is privacy, where the output of a channel is disguised from its input. The two are fundamentally related through the complementary channel construction. This thesis presents a new class of private quantum channels, expanding the existing class beyond a seemingly fundamental restriction. This yields interesting insights into the structure of quantum information and the leaking of information to external environments. Additionally, the duality is only recovered when extending the complementary channel to sufficiently high environmental dimension. \n \nFinally, the error properties of bucket brigade quantum Random Access Memory (qRAM) are assessed. It is determined that using the bucket brigade qRAM architecture for the running of Grover's algorithm necessitates reducing the error rate of the individual components to exponentially small levels for an exponential sized memory. As such, fault-tolerant architectures will likely play an essential role in the construction of such computing primitives.

•Aug 24, 2016•0 citations

Parallelizing the queries in a bucket-brigade quantum random access memory

Alexandru Paler, Oumarou Oumarou, Robert Basmadjian

Quantum algorithms often use quantum random access memory (QRAM) for accessing information stored in a databaselike manner. QRAM has to be fast, resource efficient, and fault tolerant. The latter is often influenced by access speeds, because shorter times introduce less exposure of the stored information to noise. The total execution time of an algorithm depends on the QRAM access time which includes (i) address translation time and (ii) effective query time. The bucket-brigade QRAM was proposed to achieve faster addressing at the cost of exponentially many ancillas. We illustrate a systematic method to significantly reduce the effective query time by using $\mathrm{Clifford}+T$ gate parallelism. The method does not introduce any ancilla qubits. Our parallelization method is compatible with the surface code quantum error correction. We show that parallelization is a result of advantageous Toffoli gate decomposition in terms of $\mathrm{Clifford}+T$ gates, and after addresses have been translated, we achieve theoretical $O(1)$ parallelism for the effective queries. We conclude that, in theory, (i) fault-tolerant bucket-brigade quantum RAM queries can be performed approximately with the speed of classical RAM, and (ii) the exponentially many ancillas from the bucket-brigade addressing scheme are a tradeoff cost for achieving exponential query speedup compared to quantum read-only memories whose queries are sequential by design. The methods used to compile, parallelize, and analyze the presented QRAM circuits have been implemented in software which is available online.

arXiv:2002.09340•Physical Review A•Sep 8, 2020•43 citations
Quantum random-access memory (QRAM) enables coherent queries to classical data. However, the (O(N)) qubits required for a memory with (N=2^n) addresses make QRAM appear vulnerable to noise. Though bucket-brigade routing provides intrinsic noise resilience to reduce the error in QRAM, improving the fidelity of QRAM queries is still an important and challenging problem. We introduce a low-overhead protection framework for bucket-brigade QRAM with two complementary components. First, we propose a one-fault-tolerant repeat-until-success logical controlled-SWAP gate using the ([[4,2,2]]) code under erasure noise channel. Interleaved erasure checks and local recovery correct every single erasure, so the leading logical failure probability is second order in the physical erasure error rates. Second, we exploit validity constraints of bucket-brigade routing to define local parity checks directly on the router states, without adding extra data qubits to create code redundancy. Under bit-flip noise, minimum-weight perfect matching with noiseless syndrome measurements corrects single interior faults, while open spatial boundaries retain a first-order contribution in the residual bit-flip rate. Monte Carlo simulations confirm quadratic suppression for the protected controlled-SWAP and improved depth scaling for decoded QRAM router-state snapshots. The two codes admit a concatenated realization in which the inner code supplies erasure protection and the outer code optionally corrects interior logical bit flips. Together, these results show how routing constraints and a protected non-Clifford routing gate can improve QRAM reliability under biased and erasure-dominant noise.
The paper asks whether bucket-brigade QRAM can be protected using erasure locations and routing-state constraints, rather than general-purpose fault-tolerant encoding alone. It develops two complementary protection layers for erasure-dominant and bit-flip-biased noise.
The first implements a logical controlled-SWAP across three [[4,2,2]][[4,2,2]][[4,2,2]] blocks using eight physical controlled-SWAPs, with interleaved erasure checks and conditional undo/restart or completion. Under the specified erasure model, every single flagged erasure is recoverable, leaving second-order failure contributions. Trajectory simulations, using ideal local erasure recovery and at most two attempts, give a fitted error-scaling exponent of 2.042.042.04. The fault-free circuit uses 12 data qubits and 96 erasure-check outcomes; recovery and feedforward add latency.
The second layer encodes routers in two rails and measures local weight-three ZZZ checks derived from valid parent–child routing patterns. MWPM corrects single interior bit flips. For independent bit flips and exact syndromes, the path-weighted snapshot infidelity obeys E[1−Ftree]≤c1ϵ+c2kϵ2\mathbb E[1-F_{\mathrm{tree}}]\le c_1\epsilon+c_2k\epsilon^2E[1−Ftree​]≤c1​ϵ+c2​kϵ2, with depth-independent constants and k=log⁡2N−1k=\log_2N-1k=log2​N−1. Leaf-rail ambiguity leaves a first-order boundary term. Circuit-level stabilizer simulations reduce snapshot infidelity from approximately 0.01380.01380.0138 to 0.004030.004030.00403 at k=6k=6k=6 and physical error rate 10−310^{-3}10−3.
The simulations benchmark the layers separately, not an end-to-end coherent query; the router benchmark uses destructive final readout. Concatenated fourth-order interior suppression is conditional on sufficiently small correlated and non-XXX residual errors. Finite-bias noise, protected outer-check implementation, and full concatenated-circuit performance remain unresolved.
Quantum random access memory (qRAM) is valuable for applying quantum computers to a broad range of problems and for successfully implementing large-scale quantum computation systems. Despite its importance, its adoption may be restricted by the fact that the decomposition of the qRAM function contains non-transversal gates, which cannot be executed transversally on any quantum error correction (QEC) code. To overcome these limitations, existing works employ techniques like magic state distillation. However, distillation is time-and qubit-intensive. This paper presents a fault-tolerant, resource-efficient implementation of qRAM based on pieceable fault tolerance. By breaking the logical CSWAP and Toffoli gate into simpler, easier-to-execute but non-transversal components, we first show that bucket-brigade qRAM can be implemented in polynomial depth without the need for ancillary magic states, further gate decomposition, or other gates. Afterward, we demonstrate the resource efficiency of this method of attaining fault tolerance in quantum operations. Based on resource estimation results, fault-tolerant bucket brigades using the pieceable technique perform better than fault-tolerant bucket brigades using magic state distillation with respect to the number of physical qubits, time, and cost.
Quantum Random Access Memory (QRAM) holds the promise of enabling several large scale applications of quantum computers. However, designing fault tolerant QRAMs for large scale applications is still an open problem due to the poor error and resource scaling of current architectures. Existing protocols often overlook the need for error correcting QRAMs, which will be required for data-intensive, fault-tolerant applications. However, naively error correcting all qubits used to implement the QRAM is prohibitively resource intensive, quickly becoming infeasible for large applications. To fill this gap, we propose a novel QRAM architecture that leverages variable strength error correction. We strongly error-correct qubits that heavily influence query fidelity, and lightly correct less critical regions of the QRAM. This scheme produces queries with fidelity bounded by a constant for arbitrarily sized QRAMs without requiring improvements in physical hardware. Furthermore, the heterogeneous scheme requires 5x fewer resources (for depth 30 QRAM) and quadratically slower error scaling as compared to a uniformly error corrected Bucket Brigade QRAM. In this work, we present a rigorous analysis of the query fidelity scaling and perform resource analyses of two variations of the heterogeneous architecture using the surface code. We verify our results using numerical simulations and compare our results against several other existing QRAM techniques. Through our results, we quantitatively prove the optimal scaling of the heterogeneous architecture, paving a way for data-intensive and fault tolerant quantum applications.
Quantum random access memory (QRAM)-memory which stores classical data but allows queries to be performed in superposition-is required for the implementation of numerous quantum algorithms.While naive implementations of QRAM are highly susceptible to decoherence and hence not scalable, it has been argued that the bucket-brigade QRAM architecture [Giovannetti et al., Phys. Rev. Lett. 100, 160501 (2008)] is highly resilient to noise, with the infidelity of a query scaling only logarithmically with the memory size.In prior analyses, however, this favorable scaling followed directly from the use of contrived noise models, thus leaving open the question of whether experimental implementations would actually enjoy the purported scaling advantage.In this work, we study the effects of decoherence on QRAM in full generality.Our main result is a proof that this favorable infidelity scaling holds for arbitrary error channels (including, e.g., depolarizing noise and coherent errors).Our proof identifies the origin of this noise resilience as the limited entanglement among the memory's components, and it also reveals that significant architectural simplifications can be made while preserving the noise resilience.We verify these results numerically using a novel classical algorithm for the efficient simulation of noisy QRAM circuits.Our findings indicate that QRAM can be implemented with existing hardware in realistically noisy devices, and that high-fidelity queries are possible without quantum error correction.Furthermore, we also prove that the benefits of the bucket-brigade architecture persist when quantum error correction is used, in which case the scheme offers improved hardware efficiency and resilience to logical errors.
Quantum random access memory (QRAM)—memory which stores classical data but allows queries to be performed in superposition—is required for the implementation of numerous quantum algorithms. While naive implementations of QRAM are highly susceptible to decoherence and hence not scalable, it has been argued that the bucket-brigade QRAM architecture [Giovannetti et al., Phys. Rev. Lett. 100, 160501 (2008)] is highly resilient to noise, with the infidelity of a query scaling only logarithmically with the memory size. In prior analyses, however, this favorable scaling followed directly from the use of contrived noise models, thus leaving open the question of whether experimental implementations would actually enjoy the purported scaling advantage. In this work, we study the effects of decoherence on QRAM in full generality. Our main result is a proof that this favorable infidelity scaling holds for arbitrary error channels (including, e.g., depolarizing noise and coherent errors). Our proof identifies the origin of this noise resilience as the limited entanglement among the memory’s components, and it also reveals that significant architectural simplifications can be made while preserving the noise resilience. We verify these results numerically using a novel classical algorithm for the efficient simulation of noisy QRAM circuits. Our findings indicate that QRAM can be implemented with existing hardware in realistically noisy devices, and that high-fidelity queries are possible without quantum error correction. Furthermore, we also prove that the benefits of the bucket-brigade architecture persist when quantum error correction is used, in which case the scheme offers improved hardware efficiency and resilience to logical errors.
Quantum error correction is the backbone of fault-tolerant quantum computation, a necessary requirement for any large scale quantum computer. The fault-tolerance threshold theorem has long been a target for experimental precision, allowing for the possibility of reducing logical error rates to arbitrarily low levels without excessive overhead. While there are many promising fault-tolerant architectures, the path towards the most practical fault-tolerant scheme is far from decided and may vary for differing physical models. This thesis proposes new schemes for universal fault-tolerant quantum computation in both the concatenated and topological code settings. \n \nThrough the concatenation of two different error correcting codes, a set of universal fault-tolerant gates can be obtained without requiring the need for magic state distillation. A lower bound of 1.28times10−31.28 \\times 10^{-3}1.28times10−3 for the fault-tolerance threshold under circuit level depolarizing noise is obtained. Additionally, stacked codes are proposed as a means to simulate the action of a 3D topological code in 2D, allowing for the application of a universal set of transversal operations. While fault-tolerant, unfortunately the scheme does not exhibit a threshold due to the decreasing pseudo-threshold with growing code distance, yet points to potential interesting avenues for fault-tolerant computation in 2D without distillation. \n \nOne of the primary avenues to constructing fault-tolerant logical operations is through transversal operations. In this thesis, the set of single qubit logical gates that can be implemented transversally are characterized and determined to all belong to the Clifford hierarchy. Moreover, any diagonal two-qubit operation that can be applied transversally must belong to the same level of the Clifford hierarchy as the set of gates that can be implemented in the single-qubit case. \n \nThe opposite to quantum error correction is privacy, where the output of a channel is disguised from its input. The two are fundamentally related through the complementary channel construction. This thesis presents a new class of private quantum channels, expanding the existing class beyond a seemingly fundamental restriction. This yields interesting insights into the structure of quantum information and the leaking of information to external environments. Additionally, the duality is only recovered when extending the complementary channel to sufficiently high environmental dimension. \n \nFinally, the error properties of bucket brigade quantum Random Access Memory (qRAM) are assessed. It is determined that using the bucket brigade qRAM architecture for the running of Grover's algorithm necessitates reducing the error rate of the individual components to exponentially small levels for an exponential sized memory. As such, fault-tolerant architectures will likely play an essential role in the construction of such computing primitives.
Quantum algorithms often use quantum random access memory (QRAM) for accessing information stored in a databaselike manner. QRAM has to be fast, resource efficient, and fault tolerant. The latter is often influenced by access speeds, because shorter times introduce less exposure of the stored information to noise. The total execution time of an algorithm depends on the QRAM access time which includes (i) address translation time and (ii) effective query time. The bucket-brigade QRAM was proposed to achieve faster addressing at the cost of exponentially many ancillas. We illustrate a systematic method to significantly reduce the effective query time by using Clifford+T\mathrm{Clifford}+TClifford+T gate parallelism. The method does not introduce any ancilla qubits. Our parallelization method is compatible with the surface code quantum error correction. We show that parallelization is a result of advantageous Toffoli gate decomposition in terms of Clifford+T\mathrm{Clifford}+TClifford+T gates, and after addresses have been translated, we achieve theoretical O(1)O(1)O(1) parallelism for the effective queries. We conclude that, in theory, (i) fault-tolerant bucket-brigade quantum RAM queries can be performed approximately with the speed of classical RAM, and (ii) the exponentially many ancillas from the bucket-brigade addressing scheme are a tradeoff cost for achieving exponential query speedup compared to quantum read-only memories whose queries are sequential by design. The methods used to compile, parallelize, and analyze the presented QRAM circuits have been implemented in software which is available online.