betaFeedback

WorksPhysics and Astronomy

On the Computational Complexity of Blind Quantum Machine Learning

Abstract

Can quantum advantages in computational efficiency coexist with quantum advantages in privacy? In this paper, we construct and use MasonQ, a universal brickwork transpiler, to answer this question with a resounding yes. We approach this question by bridging two seemingly disparate paradigms: universal blind quantum computation (UBQC), based on measurement-based quantum computation, and quantum machine learning (QML) algorithms such as the Harrow-Hassidim-Lloyd (HHL) algorithm and quantum recommendation systems. We provide new upper bounds on the depth of UBQC brickwork graphs, establishing that D=O(ωn)D = \mathcal{O}(ωn), where ωω is the circuit width and nn its computational gate complexity. This is enabled by our newly developed transpiler MasonQ, which maps arbitrary quantum circuits to computational brickwork graph states. Given an optimal Qiskit circuit as input, we prove optimality (up to logarithmic corrections) of the MasonQ transpiler in terms of asymptotic scaling of the total brickwork graph width and depth after decomposition into bricks, enabling systematic cost analyses of blind implementations in near-term experiments and asymptotic regimes. Leveraging MasonQ, we derive depth bounds for several representative blind quantum machine learning (B-QML) algorithms, including the quantum Fourier transform, the HHL algorithm, recommendation systems, and quantum transformers. Lastly, we analyze concrete resource estimates for near-term demonstrations of blind quantum machine learning. We propose a minimal B-QML implementation requiring only a 1212 qubit quantum server. To the best of our knowledge, MasonQ is the first functional and optimal universal circuit-to-brickwork-graph transpiler to implement the full brickwork transpilation process from first principles.

Introduction

Quantum computation enables computational speedups [1, 2, 3, 4, 5, 6, 7, 8, 9] and reductions in energy consumption [10, 11, 12, 13] for certain computational tasks. For both, the key is that quantum algorithms and hardware are efficient at solving tasks in comparison to the best known classical approaches, with quantum machine learning (QML) applications being of particular contemporary interest [14, 15, 16, 17].1 Simultaneously, universal blind quantum computation (UBQC) enables private delegated computation [22, 23, 24, 25, 26], with preliminary experiments performed on near-term hardware [26, 27, 28]. Here, the quantum privacy advantage is ensured by the fragility of quantum information (e.g., no-cloning theorem [29]) and the indistinguishability of computation rounds from test rounds, which are used to verify the behavior of untrusted quantum devices. In UBQC, indistinguishability is often ensured by measurement-based quantum computation performed on a planar brickwork graph.

This raises an immediate question: are quantum advantages in computational and energy efficiency compatible with quantum privacy, without sacrificing the former? UBQC is universal, but not necessarily efficient. This is especially important in the noisy intermediate-scale quantum (NISQ) era, where limited qubit counts and noise preclude fault tolerant implementations of resource-demanding quantum algorithms. While there have been improvements to the achievable rates of remote qubit state preparation [30, 31, 32, 33]—a primitive for UBQC—there is a need for estimates for the sizes of graphs (and thus the number of remotely prepared qubit states) needed to implement algorithms, especially those used in QML.

In this paper, we answer the above question in the affirmative; we show that quantum circuits can be implemented efficiently (i.e. with a polylogarithmic depth overhead as a function of the input circuit size) within UBQC. This result is enabled by MasonQ, a provably efficient transpiler we here develop and introduce2. MasonQ functions by decomposing a circuit into single-row bricks (a line graph of four entangled qubits, Figure 1) and two-row bricks (two single-row brick graphs connected with a CZ entangling gate on the third column, Figure 2), both of which we refer to as bricks as each implements an elementary gate from our generator set G\mathcal{G}. Inter-brick CZ gates are interwoven to combine individual bricks into larger brickwork graphs [3]. In translating an ω\omega-qubit quantum circuit into a measurement pattern, we prove that, for all circuits, UBQC requires at most a brickwork graph of depth O(ωn)O(\omega n), where nn is the gate complexity (i.e. the scaling of the number of gates with input size) of the original circuit decomposed into multi-qubit controlled unitaries, multi-qubit controlled XX gates, and single-qubit rotations3. Focusing on blind quantum machine learning (B-QML), where privacy is particularly well motivated by its reliance on data, we investigate whether privacy compromises potential quantum advantages in computational complexity, which will also impact energy consumption. Analyzing an O(ωn)O(\omega n) blinding overhead for the studied QML circuits, we demonstrate, that quantum speed advantages can be retained due to the polylogarithmic (in the unblinded circuit width) additional expense of making the computation blind.

Graphical representation of composed single-qubit gates

Figure 1. Graphical representation of the composed single-qubit gates implementing a sequence of single-qubit gates (HH, Rx(π/3)R_x(\pi/3), and TT) as a single single-row brick. The nodes and edges represent a graph that implements single-qubit rotations, labeled by their graph vertex index (row, column) and measurement angle. The blue node at the far right denotes the unmeasured output qubit of the measurement pattern containing the quantum state, and therefore its label contains no angle. Emphatically, while any sequence of single-qubit unitaries can be thus decomposed into a single brick, multi-qubit gates e.g. CX correspond to at least one brick in the graph.

Two configurations of a CX gate encoded in a two-row brick

Figure 2. (a) CX gate encoded in a single two-row brick with the logical control qubit on the upper row and the logical target qubit on the lower row. (b) The same construction with control and target interchanged. Control and target qubits are distinguished by color; we color the brick red to denote a lower-qubit target and upper-qubit control, and color the brick orange to denote the reversed case.

In this paper we introduce our universal brickwork transpilation software package, MasonQ, use it to derive the upper bounds on brickwork graph size, and develop a proof of principle B-QML experiment amenable to near term implementation on a quantum internet [36]. § 2 introduces our transpiler used for empirical corroboration of analytical bounds and B-QML numerical experiment generation. § 3 gives an overview of how the upper bounds were established, formulates a method to find the general cost of blindness, and proposes the minimal near-term B-QML experiment requiring 12 physical qubits, 750 remotely prepared qubit states, 750 single-qubit measurements and rotations, and 900 CZ gates. This near-term experiment implements a blind quantum recommendation system where a user queries a delegated server and, without revealing their preferences, receives a recommendation from one of two options based on Hamming distance with a two-bit feature i.e. description of the option. § 5 contains our discussion of the results and possible future directions of the work. Appendix § 8 gives the recursive, constructive proof of our transpiler’s optimality, Appendix § 9.§ 1 compares initial mapping and routing strategies, Appendix § 10 provides further details of the transpilation software including noise modeling and visualization, Appendix § 11 contains additional data from our numerical study, and Appendix F gives the detailed analysis of B-QML protocols and, for the blind quantum recommendation system (B-QRS), gives a comparison with the encrypted (i.e. classically blinded) classical counterpart.

The MasonQ Transpiler

Our primary tool to investigate the scaling of blind quantum algorithms is a transpiler. Mathematically, we define a transpiler as a function

T:C→GBW,T : \mathcal{C} \to\mathcal{G}_{\mathrm{BW}},

where C\mathcal{C} denotes the set of quantum circuits and GBW\mathcal{G}_{\mathrm{BW}} the set of computational brickwork graphs4. The transpiler maps any circuit C∈CC \in\mathcal{C} to a brickwork graph GBW∈GBWG_{\mathrm{BW}} \in\mathcal{G}_{\mathrm{BW}} that implements CC, together with the associated measurement-dependent single-qubit rotations (i.e., correction dependencies) required for determinism in measurement-based quantum computation (MBQC). We developed such a transpiler, which converts any Qiskit quantum circuit into its corresponding computational brickwork graph. The implementation is available on GitHub: github.com/Nonsens24/brickwork_transpiler5.

This section introduces our transpiler, which takes a decomposed circuit and produces an optimal mapping onto the brickwork graph. Appendix § 10.§ 2 provides a formal proof of optimality in terms of the scheduling of decomposed bricks (i.e. brickwork depth) using the decompositions into the universal gate-set G\mathcal{G} defined in § 2.1. We also provide illustrative examples and a discussion of additional functionalities of MasonQ (optimization, visualization). Our transpiler is designed both for transpilation of general quantum algorithms for prospective users and also to support the analysis of the QML algorithms studied here. Crucially, our transpiler can determine brickwork graph dimensions independently of correction dependencies, enabling stronger scaling analyses by allowing larger graphs to be transpiled without computing all dependencies.

Our transpiler, MasonQ, goes beyond existing transpilers in several key regards [38, 39, 40]: firstly, it is efficient, supporting multi-qubit controlled gates (specifically, non-adjacent CX gates) which aids in identifying low-depth circuit decompositions; secondly, it is tailor-made to support the brickwork graph structure for UBQC both in terms of transpilation and in terms of visualization; thirdly, it integrates Qiskit’s native optimization for circuit compilation, so that future upgrades to the Qiskit compiler will automatically be included [41]. These are what enable our study of the brickwork depths of QML circuits presented in this paper.

Graph composition

The universality of brickwork graphs [22] follows from the composability of measurement graphs together with a universal gate-set. Subgraphs implementing elementary operations compose under concatenation (Theorem 1 of [37]), allowing larger patterns to be constructed by sequentially appending these building blocks, now referred to as bricks.

It therefore suffices to realize a universal generator set, as arbitrary circuits follow by concatenation. We consider

G={Rx(θ),Rz(θ),CX},Rx(θ)=e−iθX/2Rz(θ)=e−iθZ/2(1)\mathcal{G} = \{R_x(\theta), R_z(\theta), \mathrm{CX}\}, \\ R_x(\theta) = e^{-i\theta X/2} \\ R_z(\theta) = e^{-i\theta Z/2} \tag*{(1)}

where CX denotes the controlled-NOT gate.

Notably, decomposing arbitrary single-qubit rotations into Rx(θ)R_x(\theta) and Rz(θ)R_z(\theta) reduces the required qubit count by two relative to alternative constructions [42].

Since G\mathcal{G} is universal [43], any quantum circuit admits a decomposition into elements of G\mathcal{G} (up to global phase), yielding a brickwork-graph realization suitable for UBQC. The width of the brickwork graph will be identical to the number of qubits needed in the original circuit (up to a constant number of ancilla qubits, required to obtain a decomposition into G\mathcal{G} with linear overhead), but the depth could be much larger in principle. To prove the universality of our transpiler we will now define each measurement graph corresponding to a gate in the generator set G\mathcal{G}.

Single-Qubit Gates

A single-row brick – four horizontally entangled qubits in the brickwork graph – implements an arbitrary SU(2)\mathrm{SU}(2) unitary via appropriate choices of measurement angles and adaptive feedforward corrections [42]. Since SU(2)\mathrm{SU}(2) is closed under composition, any finite sequence of single-qubit gates can be compiled into a single SU(2)\mathrm{SU}(2) rotation and realized by one such four-qubit graph. In brickwork graphs, these graphs that implement single-qubit rotations are colored green, as illustrated in Figure 1.

Adjacent CX gates

With Rx(θ)R_x(\theta) and Rz(θ)R_z(\theta) implemented, the remaining gate from the generator set G\mathcal{G} required for universality is CX. Brickwork graphs impose connectivity constraints, allowing interactions only between qubits located in adjacent rows. As a result, transpiling CX operations between non-adjacent rows becomes nontrivial, at least for planar brickwork graphs [44].

To address this, we distinguish between two cases: CX gates acting on adjacent qubits and those acting on non-adjacent qubits. This subsection focuses on the former, while the latter will be treated in subsequent sections. To formalize the notion of adjacency, we begin with the following definition.

Definition 1 (Adjacency in a brickwork graph) Two logical qubits (rows) in a brickwork graph are said to be adjacent if and only if there exists a CZ edge directly connecting the corresponding vertices in the graph. Equivalently, the measurement pattern implements a CZ operation between these rows without requiring any permutation of the row ordering.

The measurement angles implementing a CX gate between two logical qubits are specified in [22] and are used here without modification. To enhance the expressivity of the transpilation procedure, CX gates are supported in both orientations, namely with the control qubit above the target and vice versa. Figure 2 illustrates these two configurations, encoded in the graph and distinguished by color to indicate their respective roles.

We refer to the graphs in Figure 1 and Figure 2 as bricks, which, together with the identity brick (denoted with light blue nodes, see Appendix § 9.§ 2 and Figure B3), are combined to build the brickwork graph.

Identity brick in the brickwork graph, showing two rows of five connected qubits and a gate-types legend

Figure B3. Identity brick in the brickwork graph. Measuring the four qubits in each row with angle 0 implements four Hadamard gates, whose product is the identity, thereby teleporting the logical state forward without changing it.

Non-adjacent CX Gates

By Definition 1, non-adjacent logical qubits in a brickwork graph are not connected by a CZ edge between the corresponding rows. Consequently, the encoding of adjacent CX gates cannot be applied directly. Moreover, the rigid structure of the graph is essential for blindness in planar circuits [45], as permuting the logical-qubit ordering during execution would reveal structural information. Thus to implement a non-adjacent CX without violating blindness constraints, we swap logical qubit states until the relevant logical qubits become adjacent, the adjacent CX is applied, and the states are swapped back (if required by the larger algorithm to return the qubit states to their original placements; if a permuted output is permissible, this is always cheaper). Since SWAP1,2=(CX12 CX21 CX12)\mathrm{SWAP}_{1,2} = (\mathrm{CX}_{12}\ \mathrm{CX}_{21}\ \mathrm{CX}_{12}) can be realized using three CX gates [43], our transpiler decomposes any non-adjacent CX into a sequence of adjacent CX operations that effect the necessary swaps, followed by the desired adjacent CX (and inverse SWAP operations, if required). The direction of the SWAP operations is determined by the routing algorithm provided as input to the transpiler; see Appendix § 9.§ 1 for examples.

Figure 3 illustrates the SWAP-based routing procedure. The circuit in Figure 3a, containing a non-adjacent CX gate, is decomposed into adjacent CX gates (Figure 3b). Specifically, Figure 3b comprises four operations: an initial CX (eight red nodes, see Figure 3c), followed by an identity brick (i.e. a brick implementing the (trivial) identity gate, see Appendix § 9.§ 2), a reoriented CX (orange), again an identity brick, and then two more CX gates that complete the SWAP and implement the desired CX. This sequence is then mapped to the brickwork pattern in Figure 3c using the generator set G\mathcal{G}. The necessity of these identity bricks is due to an alignment problem i.e. that CX gates cannot be placed arbitrarily in the brickwork graph topology, necessitating the insertion of identity bricks as detailed in Appendix § 8.

Figure 3. Illustration of the decomposition of a non-adjacent CX gate and its mapping to a brickwork graph. (a) A non-adjacent CX gate. (b) Decomposition into adjacent CX gates. This decomposition does not permute the identity of the qubits i.e. they are (effectively) swapped back to their original placements, hence the arrows indicating qi→iq_i \to i. (c) Mapping of the aligned circuit to the corresponding brickwork graph; note that vertical inter-brick connections are alternated, forming a long-short-long-short pattern. Light-blue nodes represent wire, or identity, bricks that teleport the state without alteration. Here, the final rightmost column qubits are output qubits (darker blue) without a measurement angle specified; these may either be measured to complete the computation, or fed into another part of the larger algorithm. The placement of inter-row CZs is determined as follows: labeling the topmost row with r=0r = 0, CZ connections are made alternating based on both row rr and column cc (also starting from c=0c = 0), and we here define them as connecting downward i.e. from r,c→r,c+1r,c \to r,c+1. For rr even, CZs downward are made for c=2,4 mod 8c = 2,4 \bmod8. For rr odd, CZs downward are made for c=6,8 mod 8c = 6,8 \bmod8, exempting the column c=0c = 0 (where CZs are not performed, in agreement with the definition given in Ref. [22]; note the shift of index labeling by 1 (i.e. we count from 0 instead of 1).

Multi-controlled U Gates

Vital to our proofs of the efficiency of B-QML later in this work is the ability to generate efficient circuit decomposition in terms of our native gate-set G\mathcal{G}. Recent work by Rosa et al. [46] provides a significant advancement in the decomposition of multi-controlled unitary (MCU) gates. While previously the decomposition of an nn-controlled single-target unitary into elementary one- and two-qubit gates required a number of CX gates scaling quadratically with the number of control qubits nn for general U(2) gates (and linearly for certain subclasses such as SU(2) rotation gates), Rosa et al. demonstrate that, by introducing a single auxiliary qubit initialized in the ∣0⟩\lvert0\rangle state, it is possible to rewrite any multi-controlled U(2) gate—including multi-controlled not (MCX) gates—as a composition of multi-controlled SU(2) gates with a phase correction. This approach leverages highly efficient linear decomposition algorithm available for SU(2) gates given in Ref. [46], resulting in an implementation that requires at most 32n32n non-adjacent CX gates to implement an MCU gate with a constant number of ancillae.

The linear gate count of this decomposition does not, by itself, include the cost of satisfying nearest-neighbour connectivity. For the asymptotic brickwork bound, we therefore use the connectivity-aware construction of Zindorf and Bose [47]. Their Theorem 6 implements an arbitrary multi-controlled U(2) gate with c≥6c \ge6 controls on a linear chain of W≥c+2W \ge c+2 qubits using one clean ancilla. The construction permits arbitrary positions of the controls, target, and ancilla, and requires at most

12W+12c−5612W + 12c - 56 nearest-neighbour CX gates, 16c−3216c - 32 T gates, 8c−88c - 8 H gates, and eleven single-qubit rotations.

Since c≤W−2c \le W - 2, the total elementary gate count is O(W)O(W), with connectivity already accounted for. The ancilla is restored and can be reused between successive gates. We reserve one clean ancillary qubit in addition to the original circuit width ω\omega, giving W=ω+1W = \omega+ 1. Single-qubit gates and adjacent CX gates admit constant-cost brickwork implementations. Consequently, this construction yields an O(ω)O(\omega) brickwork-depth bound for each multi-controlled U(2)U(2) gate.

Circuit Decomposition

As discussed, arbitrary quantum circuits are transpiled into a brickwork graph by decomposing them into sequences of elementary operations drawn from the gate-set G\mathcal{G}. This restriction to our gate-set G\mathcal{G} is essential to ensure compatibility with the brickwork graph structure, which admits only a fixed set of local operations (but does not restrict the arguments in terms of computational complexity due to the Solovay-Kitaev algorithm as mentioned above). In our implementation, this decomposition is carried out using Qiskit [41], whose connectivity-aware decomposition routines produce circuit representations restricted to GG while accounting for qubit placement and routing constraints. The resulting circuits are thus both gate-set compliant and more structurally similar to the brickwork graph topology compared to the initial input circuit.

The transpilation procedure is configurable and can be tailored to different optimization objectives through the choice of decomposition strategies, optimization levels, and routing methods. Further implementation details and configuration options are provided in Appendix C and in the public repository for MasonQ, our proposed brickwork transpiler on github.com/Nonsens24/brickwork_transpiler. An illustrative example of these optimizations is given in Appendix B.1.

Details of Implementation

To simulate the resulting execution encoded by measurements of the brickwork graph, we employ Graphix, an open-source Python library for the generation, optimization, and simulation of measurement-based quantum computing (MBQC) patterns [38, 48]. Graphix provides a native abstraction of MBQC in the form of a Pattern object, which encodes the measurement graph together with its associated correction dependencies and measurement angles.

Our transpilation pipeline, shown in Figure 4, leverages this abstraction in terms of Pattern objects directly: it takes as input a QuantumCircuit defined in Qiskit and produces as output a corresponding Graphix Pattern. In this way, the transpiler maps circuit-based descriptions into an MBQC representation that can be further optimized and simulated within the Graphix framework. Our transpiler is also able to visualize the pattern for debugging and analysis purposes.

The transpilation pipeline used by MasonQ, showing the client, Qiskit, MasonQ core, Graphix, and quantum server

Figure 4. The transpilation pipeline used by our software package MasonQ, as envisioned embedded in a larger UBQC protocol. First, a client specifies a quantum circuit they wish to run blindly on a remote quantum server, which they construct as a Qiskit circuit. This circuit is then decomposed into the supported gateset G\mathcal{G}. From this, MasonQ generates a dependency graph for the adaptive feedforward correction angles for MBQC. This is used to generate a matrix of instructions that records all interactions between qubits, arranging them to align with the brickwork graph topology. MasonQ then aligns the instruction matrix to the actual brickwork graph, as not all gates can be performed in all locations within the graph. This results in a final brickwork graph which is input to Graphix as a pattern, which can be sent as instructions to a quantum server enabling implementation of the desired UBQC protocol.

This section provides a high-level overview of how circuits are mapped into measurement-based patterns and why both representations are needed: the former captures the gate-model description used by Qiskit optimizations, while the latter supports efficient pattern simulation, correction dependency computation, and supports optimizations of the measurement calculus [37]. To the best of our knowledge, MasonQ is the first functional and optimal universal circuit-to-brickwork-graph transpiler, implementing the full brickwork transpilation process from first principles.

The entry-point function accepts a Qiskit QuantumCircuit (qc_in), an optimization level opt (for Qiskit’s decomposition/optimization of the circuit to the generator set), Qiskit’s routing layout choices (passed through to the underlying transpilation stack), and an option to use ancillae for linear decomposition of MCU gates into adjacent CX gates6. The transpiler returns (i) a Graphix Pattern (a graph with measurement angles and dependencies), (ii) a color map used by our visualizer, and (iii) the transpiled circuit itself which was used to potentially undo permutations of the output qubit wires from the original quantum circuit, which can then be compared with a reference solution. The color map is included to make the visualization interpretable, enabling the user to clearly follow the evolution of the pattern.

Each step in this process is briefly detailed below.

1. Decomposing the Circuit: The decomposition of the input circuit gates to the generator set G\mathcal{G} is the first step of transpilation. Having specified our generator set G\mathcal{G}, this method creates a coupling map to enforce brickwork graph connectivity constraints; together with our optimization methods this process decomposes the circuit using the Qiskit decomposer. The user has the option to use ancilla qubits which adds a constant number of ancillae making the decomposition of MCU gates linear in the number of control qubits (see § 2.1.4 for more details).

  1. Building the Instruction Matrix: To extract and preserve the necessary information from a Qiskit circuit, we construct a dedicated matrix that records all instructions, including both the qubits they act upon and their execution order using a dependency graph (see Appendix § 10.§ 1). This representation not only encodes the circuit into a matrix form but also arranges the gates such that they align with the brickwork graph topology. This matrix is referred to as the instruction matrix of the circuit.

  1. Constructing the Graph: Once the instruction matrix has been aligned, there exists a direct correspondence between the positions of the encoded gates and the structure of the brickwork graph. Thus, the brickwork graph has its size determined by the instruction matrix, and is now constructed. We represent it as a NetworkX (NX) graph—a standard Python graph data structure consisting of nodes and edges—required for generating a Graphix Pattern.

  1. Creating the Pattern: The final step is to construct a Graphix Pattern, which serves as the central object for representing, optimizing, and simulating the MBQC computation. This is achieved using the Graphix function generate_from_graph(), which requires three inputs: a list of measurement angles for the graph nodes, a list of input qubits, and a list of output qubits.

At this stage, the transpiler assigns measurement angles to the graph according to the instruction matrix, thereby rendering the Pattern operational. No further modifications are required to analyze the graph structure or its complexity scaling. Although UBQC introduces an additional encryption layer through random θ\theta rotations, which is supported by our transpiler, we do not include this layer here because it is not needed for the computational complexity analysis. Its implementation is therefore deferred to Appendix § 10.§ 5. The output qubits are identified with the qubits in the final column of the brickwork graph. A detailed description of the transpiler, together with proofs of its correctness and optimality in terms of brickwork depth, is given in Appendix § 10, which also includes a discussion of the incorporation and visualization of noise; see Appendix § 10.§ 6.

With the instruction generation complete, they may be sent to a remote quantum server to perform the delegated UBQC.

Results

This section presents the main results. We derive an asymptotic upper bound on the scaling of brickwork graphs, use it to characterize the resource requirements of B-QML algorithms, and propose a minimal experimental realization of B-QML for a quantum recommendation system amenable to implementation on a near-term quantum internet [36].

Upper Bound on Brickwork Graph Scaling

Understanding the scaling of brickwork graphs is essential for quantifying the resource requirements of measurement-based quantum computations, i.e., the number of qubits and the depth overhead induced by the brickwork transpilation. Throughout this work, the depth D(B)D(\mathcal{B}) of a brickwork graph B\mathcal{B} is defined as the number of brick columns in the aligned instruction matrix. In the explicit graph representation used by the implementation, each brick column is expanded into four measured graph columns and one final output column is appended. Thus the graph-column depth is

Dgraph(B)=4D(B)+1.D_{\mathrm{graph}}(\mathcal{B}) = 4D(\mathcal{B}) + 1.

To this end, we first establish an upper bound on the additional brickwork depth due to alignment of bricks in the graph, i.e., the problem of mapping bricks onto the brickwork structure under the constraint that CX bricks can only be placed at specific locations. This constraint directly governs the scaling behavior of the graph. The following theorems derive this bound in an abstract setting, with further details – including its realization within our specific transpiler – provided in Appendix § 10.§ 4; the intuition of our argument is that, for each brick, alignment requires at most a shift by a single column in the graph.

Theorem 1 (Brickwork alignment bound) For an instruction matrix of depth nn, independently aligning each brick to the brickwork parity constraint (that is, the location of CX bricks dictated by the brickwork structure) increases the number of columns by at most a factor of two. Hence the resulting brickwork depth satisfies

D(B)≤2n.D(\mathcal{B}) \le2n.

Theorem [1] establishes the abstract alignment bound used in the scaling analysis. The implementation-specific alignment procedure is described separately in Appendix § 10.

Intuition. Because vertical-CZ support alternates with period two (i.e. the brickwork structure alternates vertical connections between bricks so that only every-other brick in a row gets a vertical connection to its upper neighbor), an adjacent CX brick is either already aligned or can be made aligned by a shift of one column. Thus independent alignment never incurs more than a one-column shift per brick, yielding the stated factor-two bound. A complete proof is given in Appendix § 8.§ 1.

Next, we establish that implementing state swaps within the graph incurs a cost that scales linearly with the number of adjacent CX gates. This property is required for deriving the upper bound on the scaling.

Lemma 2 Consider a quantum circuit mapped to a one-dimensional nearest-neighbor architecture, and let ww denote an upper bound on the number of intermediate rows of qubits that must be crossed over in order to realize any non-adjacent two-qubit interaction in the circuit. Then any non-adjacent CX gate can be implemented using at most

nearest-neighbor CXCX gates. In particular, the nearest-neighbor routing overhead of a non-adjacent CXCX gate is O(ω)O(\omega).

Intuition. In a one-dimensional architecture, a non-adjacent interaction is made local by swapping one qubit along the line until the two participating qubits become adjacent. If at most ω\omega intermediate qubits lie between them, then at most ω\omega swaps are needed to bring them together and at most ω\omega swaps are needed to restore the original ordering. Since each swap decomposes into three CXCX gates, the swap routing contributes at most 6ω6\omega nearest-neighbor CXCX gates. Once the qubits are adjacent, one additional nearest-neighbor CXCX implements the desired interaction. Thus the total number of nearest-neighbor CXCX gates is at most 6ω+16\omega+ 1. The complete proof is given in Appendix § 8.§ 2.

Lemma 3 (Nearest-neighbour MCU brickwork bound) An arbitrary multi-controlled single-target U(2)U(2) gate acting within an ω\omega-qubit register admits a brickwork implementation of depth O(ω)O(\omega) using one additional clean ancilla, which is restored after the gate.

Proof. Write cc for the number of controls and W=ω+1W = \omega+ 1 for the implemented width, including the ancilla. For c≥6c \ge6, Theorem 6 of [47] provides an implementation containing O(W+c)=O(W)O(W + c) = O(W) elementary gates on a linear nearest-neighbour architecture, including the cost of arbitrary qubit placement.

The remaining cases c<6c < 6 involve a bounded number of active qubits. These can be brought into a contiguous region using O(W)O(W) adjacent SWAP gates, followed by a constant-size decomposition and restoration of the original placement. Their elementary gate count is also O(W)O(W).

Each elementary gate has a constant-cost translation into the brickwork gate family. In particular, HH and TT gates can be expressed using a constant number of native rotations, up to an irrelevant overall phase. The brickwork alignment step contributes only a constant factor. The resulting depth is therefore O(W)=O(ω)O(W) = O(\omega). □

Theorem 4 (Brickwork Depth Upper Bound) Let CC be a quantum circuit containing nn original gates acting on ω≥1\omega\ge1 logical qubits, with each multi-controlled single-target U(2)U(2) gate counted once. Reserve one additional clean ancilla and write W=ω+1W = \omega+ 1 for the implemented width. Let

nrot,nadjCX,nCX,nMCU,n_{\mathrm{rot}}, \quad n_{\mathrm{adjCX}}, \quad n_{\mathrm{CX}}, \quad n_{\mathrm{MCU}},

denote the numbers of occurrences of native single-qubit rotations, adjacent CXCX gates, non-adjacent CXCX gates, and multi-controlled single-target U(2)U(2) gates, respectively, in CC. These categories are taken to be disjoint, so that

nrot+nadjCX+nCX+nMCU=n.(2)n_{\mathrm{rot}} + n_{\mathrm{adjCX}} + n_{\mathrm{CX}} + n_{\mathrm{MCU}} = n. \tag*{(2)}

Using the nearest-neighbour MCU construction of Lemma 3, there is a constant aMCUa_{\mathrm{MCU}}, independent of nn, ω\omega, and the number of controls, such that the following upper bounds hold for the brick-column cost before global alignment:

rotation:1,adj. CX:2,non-adj. CX:2(6W+1),MCU:aMCUW.(3)\begin{aligned} \text{rotation} &: 1, \qquad\text{adj. CX} : 2,\\ \text{non-adj. CX} &: 2(6W + 1), \qquad\text{MCU} : a_{\mathrm{MCU}}W. \tag*{(3)} \end{aligned}

Consequently, C\mathcal{C} admits a brickwork implementation B\mathcal{B} of width WW whose depth satisfies

D(B)=O(ωn).(4)D(\mathcal{B}) = O(\omega n). \tag*{(4)}

Proof. We first specify the MCU contribution. Let bMCU(W,c)b_{\mathrm{MCU}}(W,c) denote the number of brick columns used to implement one MCU with cc controls on WW rows, before global alignment. For an MCU with c≥6c \ge6 controls, Theorem 6 of Ref. [47] gives a nearest-neighbour implementation with one clean ancilla using at most 12W+12c−5612W + 12c - 56 CX gates, 16c−3216c - 32 T gates, 8c−88c - 8 H gates, and eleven native single-qubit rotations. These counts already include the cost of qubit placement along the line.

We conservatively bound an adjacent CX by two brick columns. Up to global phase, a T gate requires one native rotation and an H gate can be implemented using three native rotations. The brick-column cost before alignment therefore satisfies

bMCU(W,c)≤2(12W+12c−56)+(16c−32)+3(8c−8)+11=24W+64c−157≤88W−285≤88W,(5)\begin{aligned} b_{\mathrm{MCU}}(W,c) &\le2(12W + 12c - 56) + (16c - 32) + 3(8c - 8) + 11 \\ &= 24W + 64c - 157 \\ &\le88W - 285 \\ &\le88W, \tag*{(5)} \end{aligned}

where c≤W−2c \le W - 2.

For c<6c < 6, an MCU acts on at most six logical qubits: five controls and one target. Such a gate admits an elementary decomposition whose gate count is bounded independently of the total width WW. Routing each two-qubit interaction and restoring the original placement costs at most O(W)O(W). Since the number of these interactions is bounded, the total pre-alignment cost is at most a0Wa_0W, for some constant a0a_0 independent of WW and the choice of UU.

Combining this with the bound for c≥6c \ge6, we obtain

bMCU(W,c)≤{a0W,c<6,88W,c≥6.(6)b_{\mathrm{MCU}}(W,c) \le \begin{cases} a_0W, & c < 6, \\ 88W, & c \ge6. \end{cases} \tag*{(6)}

Defining

aMCU=max⁡{88,a0}(7)a_{\mathrm{MCU}} = \max\{88, a_0\} \tag*{(7)}

therefore gives the uniform bound

bMCU(W,c)≤aMCUW(8)b_{\mathrm{MCU}}(W,c) \le a_{\mathrm{MCU}}W \tag*{(8)}

for all allowed control counts. The clean ancilla is restored whenever used and can therefore be reused throughout the circuit.

The depth of the brickwork graph B\mathcal{B} is upper bounded by summing the contributions from the individual gate classes after transpilation into brickwork form. Using the bounds above, together with the alignment factor 2 from Theorem 1, we obtain

D(B)≤2(nrot+2nadjCX+2(6W+1)nCX+aMCUWnMCU).(9)D(\mathcal{B}) \le2\left(n_{\mathrm{rot}} + 2n_{\mathrm{adjCX}} + 2(6W + 1)n_{\mathrm{CX}} + a_{\mathrm{MCU}}Wn_{\mathrm{MCU}}\right). \tag*{(9)}

Since the count of each gate type is bounded by the total number of original gates, we have

nrot,nadjCX,nCX,nMCU≤n.(10)n_{\mathrm{rot}},\quad n_{\mathrm{adjCX}},\quad n_{\mathrm{CX}},\quad n_{\mathrm{MCU}} \le n. \tag*{(10)}

Substituting these bounds yields

D(B)≤2(n+2n+2(6W+1)n+aMCUWn)=[(2aMCU+24)W+10]n.(11)\begin{aligned} D(\mathcal{B}) &\le2\left(n + 2n + 2(6W + 1)n + a_{\mathrm{MCU}}Wn\right) \\ &= \left[(2a_{\mathrm{MCU}} + 24)W + 10\right]n. \tag*{(11)} \end{aligned}

Therefore, with W=ω+1W = \omega+ 1,

D(B)≤[2aMCU+24](ω+1)+10n=O(ωn).(12)D(B) \leq[2a_{\mathrm{MCU}} + 24](\omega+ 1) + 10n = O(\omega n). \tag*{(12)}

Hence, the depth of the constructed brickwork graph scales at most linearly in both the original width ω\omega and the original gate count nn.

Thus, the main result of this section establishes that circuits consisting of these gate classes admit a brickwork implementation whose depth scales at most proportionally to the original gate count multiplied by the original circuit width, using one additional clean ancilla. The same conclusion applies to circuits that can be decomposed into these gate classes with total gate count O(n)O(n) and width O(ω)O(\omega).

Now follows a corollary useful for exact gate bounds in experimental settings.

Corollary 5 (Conservative Brickwork Depth Bound) Let CC be a quantum circuit acting on ω≥1\omega\geq1 logical qubits and containing exactly nn gates, each belonging to one of the classes considered in Theorem 4. With one additional clean ancilla, CC admits a brickwork implementation BB of width W=ω+1W = \omega+ 1 whose depth satisfies

D(B)≤2aMCU(ω+1)n,(13)D(B) \leq2a_{\mathrm{MCU}}(\omega+ 1)n, \tag*{(13)}

where aMCU=max⁡{88,a0}a_{\mathrm{MCU}} = \max\{88, a_0\} is the constant defined in the proof of Theorem 4.

Proof. Apply the proof of Theorem 4. Since aMCU≥88a_{\mathrm{MCU}} \geq88 and W≥2W \geq2, the pre-alignment brick-column cost of every allowed gate is bounded by aMCUWa_{\mathrm{MCU}}W:

max⁡{1,2,2(6W+1),aMCUW}=aMCUW.(14)\max\{1, 2, 2(6W + 1), a_{\mathrm{MCU}}W\} = a_{\mathrm{MCU}}W. \tag*{(14)}

The circuit contains exactly nn original gates. Summing their costs and applying the alignment factor 2 from Theorem 1 therefore yields

D(B)≤2aMCUWn=2aMCU(ω+1)n.(15)D(B) \leq2a_{\mathrm{MCU}}Wn = 2a_{\mathrm{MCU}}(\omega+ 1)n. \tag*{(15)}

We now extend Theorem 4 by deriving a universal upper bound for the brickwork depth for circuits containing gates outside the linearly decomposable gate classes—also referred to as non-native gates—using Solovay–Kitaev approximations to translate such gates into the native gate-set [34, 35].

To make this precise, we now consider circuits containing arbitrary constant-locality (that is, involving a set of at most qq qubit wires) unitary gates which do not belong to the gate classes considered in Theorem 4 and are assumed non-native7 in terms of G\mathcal{G}. Such gates are first compiled to a fixed finite universal gate-set using the Solovay–Kitaev algorithm, and the resulting finite gate sequence is then translated exactly into the brickwork-native gate family

G={Rx(θ),Rz(θ),CX}.\mathcal{G} = \{R_x(\theta), R_z(\theta), \mathrm{CX}\}.

This gives a universal brickwork depth bound with only polylogarithmic dependence on the inverse approximation accuracy.

We also note that our generator set

G={Rx(θ),Rz(θ),CX}\mathcal{G} = \{R_x(\theta), R_z(\theta), \mathrm{CX}\}

can implement, with constant overhead, the finite approximately universal gate-set

GSK(q)={H,T,T†,CX}.\mathcal{G}_{\mathrm{SK}}^{(q)} = \{H,T,T^\dagger,\mathrm{CX}\}.

Indeed,

T=eiπ/8Rz(π/4),T†=e−iπ/8Rz(−π/4),T=e^{i\pi/8}R_z(\pi/4), \qquad T^\dagger=e^{-i\pi/8}R_z(-\pi/4),

and

H=iRz(π/2)Rx(π/2)Rz(π/2),H=iR_z(\pi/2)R_x(\pi/2)R_z(\pi/2),

while CX is already contained in G\mathcal{G}. Hence every gate in GSK(q)\mathcal{G}_{\mathrm{SK}}^{(q)} has a constant-size implementation over G\mathcal{G}. Therefore, for the purpose of applying the Solovay–Kitaev theorem, arbitrary qq-local non-native unitary gates may first be approximated over GSK(q)\mathcal{G}_{\mathrm{SK}}^{(q)}, and the resulting gates may then be translated into G\mathcal{G} with constant overhead.

Theorem 6 (Universal Brickwork Depth Bound under Solovay–Kitaev Approximation) Let CC be a quantum circuit of gate complexity nn acting on ω\omega logical qubits. Suppose that CC is expressed over an arbitrary finite approximately universal gate-set, and that every non-native gate has locality at most q=O(1)q = O(1).8 Let ε>0\varepsilon> 0 be the desired total approximation error, measured in operator norm.9

Assume that every non-native gate is first approximated over the finite gate-set GSK(q)\mathcal{G}_{\mathrm{SK}}^{(q)} using the Solovay–Kitaev algorithm, and that the resulting gates are then translated with constant overhead into our generator set G\mathcal{G}. Then the resulting brickwork graph BεB_\varepsilon has depth

D(Bε)=O(ωnlog⁡κnε),(16)D(B_\varepsilon)=O\left(\omega n\log^\kappa\frac{n}{\varepsilon}\right), \tag*{(16)}

where κ>0\kappa> 0 is the Solovay–Kitaev exponent depending on the particular construction used e.g. for the standard Solovay–Kitaev construction κ≈3.97\kappa\approx3.97.

Proof. Let the target total approximation error be ε\varepsilon. Since the input circuit contains nn gates, it suffices to approximate each non-native gate to accuracy

εloc=εn.(17)\varepsilon_{\mathrm{loc}}=\frac{\varepsilon}{n}. \tag*{(17)}

Then the accumulated error is bounded by

nεloc=ε.(18)n\varepsilon_{\mathrm{loc}}=\varepsilon. \tag*{(18)}

By the Solovay–Kitaev theorem, each non-native gate can be approximated over the finite approximately universal gate-set GSK(q)\mathcal{G}_{\mathrm{SK}}^{(q)} using at most

O(log⁡κ1εloc)=O(log⁡κnε)(19)\mathcal{O}\left(\log^{\kappa}\frac{1}{\varepsilon_{\mathrm{loc}}}\right)=\mathcal{O}\left(\log^{\kappa}\frac{n}{\varepsilon}\right) \tag*{(19)}

gates, where κ>0\kappa> 0 is the Solovay–Kitaev exponent. Since q=O(1)q = O(1), the constants hidden in this bound are independent of nn, ω\omega, and ε\varepsilon.

Let CεC_{\varepsilon} be the circuit obtained after replacing every non-native gate by its Solovay–Kitaev approximation. The cumulative error satisfies

∥C−Cε∥≤∑j=1nεloc=nεloc=ε.(20)\lVert C-C_{\varepsilon}\rVert\leq\sum_{j=1}^{n}\varepsilon_{\mathrm{loc}}=n\varepsilon_{\mathrm{loc}}=\varepsilon. \tag*{(20)}

Therefore, after this preliminary gate-set translation, the gate complexity of the approximating circuit CεC_{\varepsilon} is asymptotically bounded above by

nε=O(nlog⁡κnε).(21)n_{\varepsilon}=\mathcal{O}\left(n\log^{\kappa}\frac{n}{\varepsilon}\right). \tag*{(21)}

Each gate in GSK(q)\mathcal{G}_{\mathrm{SK}}^{(q)} is then translated with constant overhead into our brickwork-native gate family

G={Rx(θ),Rz(θ),CX}.\mathcal{G}=\{R_x(\theta),R_z(\theta),\mathrm{CX}\}.

Hence the same asymptotic bound holds for the circuit CεC_{\varepsilon} expressed in terms of G\mathcal{G}.

We now apply Theorem 4 to the translated circuit CεC_{\varepsilon}. Since CεC_{\varepsilon} is expressed over the gate classes handled by the brickwork transpiler, namely single-qubit rotations, adjacent CX gates, non-adjacent CX gates, and multi-controlled U gates, its brickwork depth satisfies

D(Bε)=O(ωnε).(22)D(\mathcal{B}_{\varepsilon})=\mathcal{O}(\omega n_{\varepsilon}). \tag*{(22)}

Substituting the bound on nεn_{\varepsilon}, we obtain

D(Bε)=O(ωnlog⁡κnε).(23)D(\mathcal{B}_{\varepsilon})=\mathcal{O}\left(\omega n\log^{\kappa}\frac{n}{\varepsilon}\right). \tag*{(23)}

Hence the brickwork depth grows linearly in the circuit width ω\omega, linearly in the original gate complexity nn, and only polylogarithmically in the inverse approximation accuracy. □\square

Since the finite set GSK(q)\mathcal{G}_{\mathrm{SK}}^{(q)} is approximately universal and is implementable with constant overhead over

G={Rx(θ),Rz(θ),CX},\mathcal{G}=\{R_x(\theta),R_z(\theta),\mathrm{CX}\},

any constant-locality unitary gate can be approximated over the brickwork-native family with Solovay–Kitaev overhead

log⁡κnε\log^{\kappa}\frac{n}{\varepsilon}

after allocating local error ε/n\varepsilon/n. Consequently, the brickwork depth remains

D(Bε)=O(ωnlog⁡κnε).D(\mathcal{B}_{\varepsilon})=\mathcal{O}\left(\omega n\log^{\kappa}\frac{n}{\varepsilon}\right).

Brickwork Depth Scalings of Blind Quantum Learning Protocols

Having established an upper bound on the cost of implementing blind quantum algorithms for a range of gate classes, we now specialize to a selected set of quantum machine learning (QML) circuits. We begin by showing how our transpilation procedure yields an upper bound on the brickwork depth DD for a well-known and analytically tractable example, the quantum Fourier transform (QFT), before turning to more general classes of QML algorithms and calculating their blind complexity i.e. the depth of the brickwork graph state needed to implement them blindly. This adds overhead compared to the unblinded circuit complexity for our selected QML circuits, but, as we will show, sometimes smaller one than may be expected based on the classical intuition that privacy (blindness) makes learning difficult.

For the QFT on log⁡2N\log_{2} N qubits, corresponding to an NN-dimensional input state, the gate complexity (i.e. the number of gates) is O(log⁡22N)O(\log_{2}^{2} N). Since the circuit width is ω=log⁡2N\omega= \log_{2} N, Theorem 4 implies

D(BQFT)=O(ωlog⁡22N)=O(log⁡23N).(24)D(B_{\mathrm{QFT}}) = O(\omega\log_{2}^{2} N) = O(\log_{2}^{3} N). \tag*{(24)}

Thus, for the exact QFT, the brickwork graph depth grows polylogarithmically with the input size NN. We verify this scaling by transpiling QFT circuits of increasing size and recording the depth of the resulting brickwork graphs. The observed behavior is shown in Figure 5a.

Scaling of brickwork depth for transpiled blinded QFT and HHL circuits

Figure 5. Scaling of brickwork depth D(B)D(B) for transpiled blinded QFT and HHL circuits as functions of the problem size NN. (a) QFT circuits, with growth of the depth consistent with a scaling upper bounded by O(log⁡23N)O(\log_{2}^{3} N), with NN the dimension of the input state. (b) HHL circuits for the tridiagonal Toeplitz matrix with a phase register of fixed size, with growth of the depth consistent with a scaling upper bounded by O(log⁡23N)O(\log_{2}^{3} N). Further details on Blind HHL, including inputs, sparsity, condition number, and error, are given in Appendix F.§ 1.

This example thus motivates a general strategy, which we introduce here, for deriving upper bounds on the resource overhead required to implement quantum algorithms in blind brickwork form. To our knowledge, no such general procedure has previously been available. Given a quantum circuit, the estimation proceeds in four steps:

  1. Verify that the gates used by the circuit admit a linear decomposition into the gate classes used in the proof of Theorem 4. If they do not, then the present procedure does not directly apply, and a different decomposition or an extension of the gate-set is required.

  2. Identify the circuit width ω\omega (number of qubits) and gate complexity nn.

  3. Apply Theorem 4 to obtain the bound O(ωn)O(\omega n) on the resource overhead.

  4. Rewrite this bound in terms of the natural input parameter of the algorithm, and simplify the resulting expression.

Applying this procedure yields the detailed analyses of several quantum machine learning algorithms presented in Appendix F. The resulting bounds form the basis of the catalogue of blind quantum machine learning algorithms summarized in Table 1.

AlgorithmUpper-bound computational complexityUpper-bound blind complexity
Quantum Fourier TransformO(log⁡2N)\mathcal{O}(\log^{2} N)O(log⁡3N)\mathcal{O}(\log^{3} N)
HHL [2]poly⁡(κ,s,1/ε)⋅polylog⁡(N)\operatorname{poly}(\kappa, s, 1/\varepsilon) \cdot\operatorname{polylog}(N)poly⁡(κ,s,1/ε)⋅polylog⁡(N)\operatorname{poly}(\kappa, s, 1/\varepsilon) \cdot\operatorname{polylog}(N)
QRS (QK-NN + Grover) + database encoding [50]O(L2)\mathcal{O}(L^{2})O(L2log⁡L)\mathcal{O}(L^{2}\log L)
QRS (QK-NN + Grover) inference onlyO(L)\mathcal{O}(\sqrt{L})O(Llog⁡L)\mathcal{O}(\sqrt{L}\log L)
Quantum Compound Transformer [49]O(log⁡n+nlog⁡d+log⁡(n+d))\mathcal{O}(\log n+n\log d+\log(n+d)) (depth)O((n+d)2(log⁡n+nlog⁡d+log⁡(n+d)))\mathcal{O}((n+d)^{2}(\log n+n\log d+\log(n+d)))

Table 1. B-QML algorithm catalogue, showing upper bounds on unblinded computational resources and brickwork depth under the assumptions stated in the text. For QFT, NN is the transform dimension; for HHL, NN is the matrix dimension, κ\kappa its condition number, ss the maximum number of nonzero entries per row, and ε\varepsilon the target approximation error. For QRS, LL is the number of database entries, with fixed feature width; inference-only bounds exclude database encoding and assume the stated coherent-access model. For the Quantum Compound Transformer, nn is the number of input patches and dd the feature dimension per patch.

Taken together, these examples show that blindness does not generally change the qualitative scaling of efficient quantum machine learning algorithms, but instead introduces a structured overhead governed by circuit width. For algorithms that are already polylogarithmic in the problem size, such as the QFT and HHL with bounded condition number and sparsity, the blind implementation remains polylogarithmic, see Figure 5b. For database-driven quantum recommendation systems (QRS), blindness contributes an additional logarithmic factor, yielding O(L2log⁡L)O(L^{2}\log L) when data loading is included (Figure 6b) and O(Llog⁡L)O(\sqrt{L}\log L) when inference is performed on a pre-encoded quantum database (Figure 6a). Here, LL denotes the number of entries in the database. Notably, this inference complexity is sublinear in the database size LL and scales more favorably than that of classical recommendation systems under comparable blindness constraints (Appendix F.§ 2.2).

Scaling of brickwork depth for blind quantum recommendation system

Figure 6. Scaling of brickwork depth D(B)D(B) for a transpiled blind quantum recommendation system (B-QRS) is plotted in green, with the number of Grover iterations/amplifications as a number above the line, including (right) and excluding (left) the cost of blindly training the model. Here the output of the algorithm is a single match from the quantum recommendation system, so that running the algorithm kk times yields kk recommendations; we relax this assumption in Figure F13. Here, the horizontal axis is the size of the database, L=2nL = 2^n, with nn the number of qubits used to represent the database. We plot in red the database size LL for reference. We also include our analytic upper bound (dashed line). (a) Blind inference from a pre-trained model, with growth consistent with O(Llog⁡L)O(\sqrt{L}\log L). (b) Blind inference including the cost of blindly training the model with growth consistent with O(L2log⁡L)O(L^2\log L). Note the large difference in vertical axes; there is a cost to performing the training blindly as well. Detailed analyses are given in Appendices F.2.2 and F.2.

Quantum transformer architectures provide another class of quantum learning protocols amenable to blinding. In the quantum vision transformer of [49], an image is divided into nn patches, each represented by a dd-dimensional feature vector, and an attention mechanism learns correlations between these patches. The resulting n×dn \times d patch–feature matrix is encoded using an nn-qubit patch register and a dd-qubit feature register, giving a total circuit width of n+dn+d qubits. Applying the same transpilation principle as for the B-QRS therefore yields a width-dependent upper bound: the blind complexity, measured by the depth of the corresponding brickwork graph, is at most the native circuit depth multiplied by (n+d)2(n+d)^{2}, since a circuit of depth TT on ω=n+d\omega=n+d qubits contains at most ωT\omega T gates and Theorem 4 charges one factor of ω\omega per gate. Overall, Table 1 shows that in all our studied cases the cost of blindness is systematic and analyzable. Furthermore, for HHL, and the inference part of QRS, the addition of blindness does not disrupt the favorable asymptotic scaling of the underlying quantum algorithm, especially in comparison to their classically blinded counterparts as discussed in Appendix § 12 and Appendix F. Of course, we only analyze here a select number of QML circuits as examples; our framework and the MasonQ software package enable further, open-ended study into B-QML protocols, incorporating new QML circuits and strategies as they are developed.

A Rudimentary B-QML Experiment

In light of the encouraging scalings summarized in Table 1, we propose an experimental demonstration of blind quantum machine learning with near-term resources. This task is important because the practical value of the derived bounds lies not only in classifying asymptotic overheads (i.e. the differences between the columns in Table 1), but also in identifying protocols that remain implementable at nontrivial system sizes. Here, we explicitly construct a blind implementation of a nontrivial quantum machine-learning routine and determine its exact overhead for a minimal working instance.

Motivated by this, we propose an experimental implementation of a blind quantum recommendation system (B-QRS), requiring 12 logical qubits and 750 qubits prepared via remote state preparation (RSP). Starting from a six-qubit circuit-level implementation, we explicitly transpile the computation into its brickwork graph-state form and obtain a resource count for the brickwork graph. Specifically, we find we need a brickwork graph 6 logical qubits wide and 125 qubits deep. This can be implemented on hardware holding 12 logical qubits in memory using a cylindrical register (i.e. recycling the qubits in a brickwork column after its measurement), provided their memories are sufficiently long to allow for RSP of 750 qubit states. This gives a concrete benchmark for the cost of blindness in this setting, and a goalpost for experimentalists looking to implement this protocol on near-term hardware.

We consider the smallest nontrivial instance of the QRS algorithm introduced in [50]. Specifically, we use a database with two entries, each represented by a feature vector of size 2. We choose the database entries to be

D={(0,0),(0,1)},\mathcal{D} = \{(0,0), (0,1)\},

so that the database can be prepared from the initial computational basis state using a single CX gate. The user feature register consists of two qubits encoding the query feature vector t=(0,1)t=(0,1) in the computational basis. Starting from ∣00⟩|00\rangle, this register is initialized using a single X gate, completing the data-loading stage. The QKNN routine compares this user vector with the database entries to determine the recommendation. This setting corresponds to blind utilization of the recommendation system: the recommendation is inferred from the encoded database entries, and the encoding required for this inference is performed blindly.

The corresponding circuit is shown in Figure 7a, while the corresponding decomposed version is presented in Figure 7b. The associated brickwork graphs, both the encrypted and the colored representations, are omitted from the appendix and instead are hosted on the project’s GitHub repository https://github.com/Nonsens24/brickwork_transpiler/blob/main/images/graphs/Brickwork%20graph%3A%20Minimal%20QRS.pdf as their diagrams exceed the size of an A4 page. The experiment could also be extended to support ε\varepsilon-verifiability by interweaving test rounds with trap qubits as detailed elsewhere [44].

Figure 7. (a) Non-decomposed minimal QRS circuit. (b) Decomposed circuit satisfying the gate constraints imposed by the brickwork graph. The minimal quantum recommendation system contains only the quantum kk-nearest-neighbor (QKNN) and database-encoding components, based on the quantum recommendation system proposed by Sawerwain and Wróblewski [50].

The second stage implements the quantum kk-nearest-neighbor (QKNN) routine [50, 51]. This consists of computing the Hamming distance between the user feature vector and each database entry, followed by a summation of these distances into an auxiliary register. The intermediate distance information is then uncomputed, leaving the database register in a state whose measurement probabilities encode the relative Hamming distances to the user vector. Measuring the database register therefore yields a recommendation biased towards the nearest entry. If desired, this bias can be amplified using Grover amplitude amplification [1, 50], at the cost of increased circuit depth, and is therefore omitted in this experiment.

The full circuit requires only six qubits in total, one of which is a single ancilla used for QKNN. The main caveat is that the results must be post-selected on the measurement outcome of the ancilla qubit c0c_0, retaining only those runs where c0=0c_0 = 0. For the feature vector ⟨0,1⟩\langle0,1\rangle, this occurs with probability

P⁡(c0=∣0⟩)=1L∑pcos⁡2(π2ld(t,rp))→34,(25)\operatorname{P}(c_0=\lvert0\rangle)=\frac{1}{L}\sum_p\cos^2\left(\frac{\pi}{2l}d(t,r^p)\right)\to\frac{3}{4}, \tag*{(25)}

where LL is the size of the database, l=2l=2 the number of feature bits, and d(t,rp)d(t,r^p) the Hamming distance between the user feature vector tt and the ppth database entry rpr^p; the two entries have d=0d=0 and d=1d=1. Conditioned on c0=0c_0=0, the database register is measured in the matching entry with probability 2/32/3 (Figure D10b). The probabilistic nature of c0c_0 can be classically mitigated with parallel computing and therefore does not impose restrictions on the complexity [50]. We performed a numerical experiment using Graphix, verified against noiseless Qiskit Aer simulations. After aligning qubit ordering, the state vectors agreed up to global phase. Simulated histograms from 4096 shots after post-selection on c0=0c_0=0 and the Graphix state-vector output distributions are presented in Appendix § 11, Figure D11 and Figure D10, respectively.

Four output-count bar charts for feature-vector recommendations

Figure D10. Output counts for four feature-vector recommendations based on the same database encodings, 00 and 01. (a) Feature vector ⟨0,0⟩\langle0,0\rangle. (b) Feature vector ⟨0,1⟩\langle0,1\rangle. (c) Feature vector ⟨1,0⟩\langle1,0\rangle. (d) Feature vector ⟨1,1⟩\langle1,1\rangle.

Output counts for four feature-vector recommendations

Figure D11. Output counts for four feature-vector recommendations based on the same database encodings, 00 and 01, optimized with SABRE layout and routing. (a) Feature vector ⟨0,0⟩\langle0,0\rangle. (b) Feature vector ⟨0,1⟩\langle0,1\rangle. (c) Feature vector ⟨1,0⟩\langle1,0\rangle. (d) Feature vector ⟨1,1⟩\langle1,1\rangle.

The key message of this example is that, for a minimal but nontrivial recommendation task, a blind implementation requires 12 logical qubits, 750 RSP qubits, and a brickwork graph with depth 125. Although deliberately small, this example provides a concrete benchmark at a scale that is now directly relevant to current logical-qubit experiments, thereby linking the asymptotic resource analysis to experimentally accessible fault-tolerant regimes [52].

However, we emphasize that we still require our 12 qubits to preserve their coherence long enough to make 750 RSP qubit states, 750 single-qubit measurements and rotations, and 900 CZ gates; even though each qubit is only used for 1/125th of the protocol before being measured and reset, the effects of decoherence accumulate with depth as in any quantum circuit. Long lived qubits and fast operations, including RSP, will be needed; next-generation RSP of graph states will further decrease the needed resources [53].

The Interplay of Learning and Hiding

A central question throughout this work has been whether machine learning and blind quantum computation are fundamentally in tension. At first sight, they appear to be: machine learning aims to extract structure from data, whereas blindness is designed to conceal those data and the computation from the server. These objectives nevertheless concern different parties: the client should learn from the result, while the server should learn nothing beyond the prescribed leakage. Classical approaches such as fully homomorphic encryption [54], approximate homomorphic encryption [55], and garbled circuits [56] also reconcile these objectives, with computational costs that depend on the task and security requirements.

Our results identify regimes in which the additional cost of blind quantum computation is limited. At the level of the measurement-based implementation, blindness is obtained by local randomization and adaptive measurement instructions on the brickwork resource state. For the gate classes considered here, the brickwork-depth bound scales with the original gate count multiplied by the circuit width. For the QRS encoding, this width grows only logarithmically with the number of database entries LL at fixed feature width. As shown in the two QRS rows of Table 1, the resulting blind depth bounds are O(L2log⁡L)O(L^{2}\log L) including database encoding and O(Llog⁡L)O(\sqrt{L}\log L) for inference only. Thus, under the stated input-access assumptions, the logarithmic transpilation factor preserves the sublinear inference-depth bound.

This distinction is especially important in settings where data preparation and inference can be separated. Protocol 2 of [22], Universal Blind Quantum Computation with Quantum Inputs, permits blind delegation on supplied quantum states. In the QRS setting of Appendix F.§ 2, treating the database encoder as a trusted resource on the client side places preparation outside the delegated inference stage (Appendix F.§ 2.2). This separates the costs rather than eliminating them: the trusted side must supply the input states and perform the local operations required by the quantum-input protocol. A logarithmic input-register size does not by itself establish efficient preparation or coherent database access, including in a QRAM-style architecture [57]. The inference bound assumes that all coherent operations required during inference are implemented at the stated cost.

Taken together, our results establish a width-dependent upper bound on the depth of transpiled blind brickwork computations and identify regimes in which favorable asymptotic scaling survives compilation. They do not by themselves establish an advantage over classical privacy-preserving learning. Such a comparison requires matched tasks, output guarantees, data-access assumptions, and leakage models, together with a common resource measure. Appendix § 12 discusses these requirements and distinguishes transpilation bounds from end-to-end advantage claims.

Conclusions and Future Work

In this paper, we introduced a transpilation framework for blind quantum algorithms, and used this to analyze machine learning that combines the cryptographic guarantees of universal blind quantum computation with the computational advantages of quantum learning algorithms.

Within this framework and using the associated transpiler to assemble bricks into a quantum brickwork state, MasonQ, we derived complexity bounds for blind implementations of several quantum machine learning algorithms and illustrated the construction through a minimal blind quantum recommendation system experiment using kk-nearest neighbors. Taken together, these results provide a concrete basis for assessing the feasibility of privacy-preserving quantum machine learning across near-to long-term quantum hardware scales. Furthermore, using our toolkit any researcher can analyze the cost of making their circuits blind in the UBQC framework, as unlike prior transpilation tools MasonQ can be used for UBQC transpilation even for large-brickwork depths (∼107\sim10^7 in this work).

More specifically, we obtained brickwork-depth scalings of O(log⁡3N)\mathcal{O}(\log^3 N) for the quantum Fourier transform, O(poly⁡(κ,s,1/ε)polylog⁡(N))\mathcal{O}(\operatorname{poly}(\kappa, s, 1/\varepsilon)\operatorname{polylog}(N)) for HHL, O(L2log⁡L)\mathcal{O}(L^2\log L) for a quantum recommendation system, and O((n+d)2(log⁡n+nlog⁡d+log⁡(n+d)))\mathcal{O}((n+d)^2(\log n+n\log d+\log(n+d))) for quantum transformers. Here, NN denotes the dimension of the register’s state space, κ\kappa the condition number, ss the sparsity, ε\varepsilon the target precision, LL the number of entries in the database, nn is the number of image patches, and dd is the size of the feature vector associated with each patch, so the image is represented as an n×dn \times d array of patch embeddings. To the authors’ knowledge, these constitute the first rigorous asymptotic upper bounds on the brickwork depth of the B-QML implementations considered here.

We then compared these explicit QML circuit implementations with our UBQC brickwork-depth upper bound, O(ωn)\mathcal{O}(\omega n), which applies to circuits composed of single-qubit rotations, adjacent and non-adjacent CX gates, and multi-controlled single-target U(2)U(2) gates, with each multi-controlled gate counted once and one additional clean ancilla available. This comparison shows that, for the circuit families studied here, blindness does not necessarily introduce only a generic worst-case overhead. In several cases, the blind implementations preserve nontrivial asymptotic structure inherited from the original quantum algorithm. In particular, adding blindness to these QML circuits does not always change the qualitative scaling of efficient QML algorithms; For instance, the blind HHL depth bound remains polylogarithmic in NN, the dimension of the N×NN \times N system matrix, for fixed sparsity, condition number, and target accuracy. Therefore, when the quantum speedup of a QML protocol exceeds the security overhead, for which we provide upper bounds, the protocol can in principle achieve a two-fold quantum advantage: privacy and computational efficiency.10

Practically, B-QML provides an avenue to explore private delegated quantum learning architectures where privacy, efficiency, and user control are treated as foundational design requirements from the outset. Furthermore, B-QML brings together two tasks that are in tension in classical settings: learning and hiding. Our analysis shows that, in the quantum domain, this tension need not translate into prohibitive overhead at the level of computational-graph complexity. A useful way to understand this is through the structure of quantum information itself: it is both natively private (due to the sensitivity to unknown phase rotations) and efficient for information encoding and manipulation (due to the superposition principle). In the constructions studied here, the principal overhead associated with blindness arises not from an intrinsic incompatibility between privacy and quantum learning, but largely from architectural constraints, especially the need to realize non-nearest-neighbor interactions through sequences of SWAP gates. This overhead could be further reduced through non-planar graph constructions as proposed in [45], partial blindness [58, 59], and further algorithmic design tailored for blinded quantum learning tasks, which we propose exploring in future works. We expect that these may reduce the asymptotic upper-bounds in complexity derived in the present work.

In practice non-asymptotic optimality is also desirable, as are non-universal implementations of B-QML based on other schemes beyond measurement based quantum computation with potentially reduced resource requirements and amenable to NISQ era devices and networks [60, 61]. It is our intention that MasonQ will continue being developed, expanded beyond planar brickwork graphs, and utilized to support future research into blind quantum computation, both in the asymptotic regime and for the near-term implementation.

Acknowledgments

We gratefully acknowledge useful advice from Stephanie Wehner. TzBP gratefully acknowledges support from the Quantum Software Consortium Ada Lovelace Fellowship. This work was funded by the European Union’s Horizon Europe research and innovation programme under grant agreement No. 10102140 – QIA Phase 1.

Author Contributions

RF wrote the MasonQ transpiler, derived the theorems associated with the results, and wrote the majority of the manuscript. TzBP conceptualized the project, provided day-to-day supervision, and co-wrote the manuscript with RF. SF provided feedback and guidance throughout on the project and paper.

Proofs

Brickwork Alignment Bound

Proof of Theorem 1. Independently aligning bricks of an input matrix of depth nn never increases the depth beyond 2n2n.

Proof by Structural Induction Base Case (n=1n = 1): Consider a brickwork graph containing of one brick. This brick can either already be aligned (i.e., placed correctly according to allowed positions) or require shifting one additional column. Thus, for the base case of n=1n = 1, the resulting brickwork depth is at most 2n=22n = 2. See cases 1 and 2 of Figure A1 for an illustration.

Sketch providing the intuition on the upper bound of brick alignment

Figure A1. Sketch providing the intuition on the upper bound of brick alignment.

Inductive Hypothesis: Assume that the following statement holds: for any brickwork graph BkB_k consisting of kk brick, the depth nkn_k after alignment satisfies

nk≤2k.(26)n_k \le2k. \tag*{(26)}

Inductive Step (k→k+1k \to k + 1): Now consider extending the brickwork graph BkB_k by one more brick, forming the (unaligned) graph Bk+1B_{k+1}. Since the alignment algorithm processes bricks sequentially from left to right, at the point of the k+1k + 1th brick either it is aligned (so depth nk+1=2k+1n_{k+1} = 2k + 1) or it is not aligned, necessitating a shift by a single brick column (so depth nk+1=2k+2n_{k+1} = 2k + 2). Thus, adding brick can shift the alignment horizontally by at most one additional brick column, and thus increases the depth by at most two. Consequently, the depth of the graph Bk+1B_{k+1} satisfies:

nk+1≤2(k+1).(27)n_{k+1} \le2(k + 1). \tag*{(27)}

By the principle of mathematical induction, this establishes that shifting bricks for alignment purposes given an input matrix with depth nn yields a depth of at most 2n2n. □

Non-adjacent CX Cost bound

Proof of Lemma 2. Consider a quantum circuit mapped to a one-dimensional nearest-neighbor architecture, and let ω\omega denote an upper bound on the number of intermediate qubits that must be crossed in order to realize any non-adjacent two-qubit interaction in the circuit. Then any non-adjacent CX gate can be implemented using at most

6ω+16\omega+ 1

nearest-neighbor CX gates. In particular, the nearest-neighbor routing overhead of a non-adjacent CX gate is O(ω)O(\omega).

Proof Let the logical CX act on two qubits that are not adjacent in the one-dimensional layout, and suppose that at most ω\omega intermediate qubits lie between them.

To realize this interaction on a nearest-neighbor architecture, one first repeatedly swaps one of the qubits towards the other until the two qubits become adjacent. Since there are at most ω\omega intermediate qubits, this requires at most ω\omega SWAP operations. After the local interaction has been applied, restoring the original qubit ordering requires at most another ω\omega SWAP operations. Hence the routing stage uses at most

2ω(28)2\omega \tag*{(28)}

SWAP gates in total.

Now each adjacent SWAP admits the standard three-CX decomposition

SWAP⁡(i,j)=CX⁡i,jCX⁡j,iCX⁡i,j,(29)\operatorname{SWAP}_{(i,j)} = \operatorname{CX}_{i,j}\operatorname{CX}_{j,i}\operatorname{CX}_{i,j}, \tag*{(29)}

so the 2ω2\omega swaps contribute

3(2ω)=6ω(30)3(2\omega) = 6\omega \tag*{(30)}

nearest-neighbor CX gates.

Once the two qubits are adjacent, the desired logical CX is applied using one nearest-neighbor CX gate. Therefore the total number of nearest-neighbor CX gates required is

nCX≤6ω+1.(31)n_{\mathrm{CX}} \le6\omega+ 1. \tag*{(31)}

Therefore the non-adjacent CX overhead is linear in ω\omega, i.e. O(ω)O(\omega). □

Alignment Procedure Used by the Transpiler

This section analyzes the results of the rotation-aware alignment procedure described in Appendix § 10.§ 3. They are not required for the abstract scaling bound of Theorem 1, but establish a factor-two depth bound for the placement and rotation-insertion rules specified below.

Definition 2 (Bricks and original column) A brick BB is the unordered pair of matrix entries encoding a single adjacent CX gate; its set of rows is rows⁡(B)⊂Z\operatorname{rows}(B) \subset\mathbb{Z} with ∣rows⁡(B)∣=2\lvert\operatorname{rows}(B)\rvert= 2. Its original column in the unshifted (that is, before alignment) instruction matrix is defined

ocol⁡(B):=min⁡{c∣B has an instruction in column c}\operatorname{ocol}(B) := \min\{c \mid B \text{ has an instruction in column } c\}, and we write ⊤(B):=min⁡rows⁡(B)\top(B) := \min\operatorname{rows}(B) for the top row.

Definition 3 (Row-isolated CX-matrix). A CX-matrix MM is row-isolated if no two bricks of MM share both a row and a column. Equivalently, if bricks A≠BA \ne B share a row and ocol⁡(A)≤ocol⁡(B)\operatorname{ocol}(A) \le\operatorname{ocol}(B) then gap⁡(A,B):=ocol⁡(B)−ocol⁡(A)≥1\operatorname{gap}(A,B) := \operatorname{ocol}(B) - \operatorname{ocol}(A) \ge1.

Definition 4 (Column extent and depth). The original instruction matrix MM has d≥1d \ge1 columns, indexed from 00 to d−1d-1. Each CX brick has both endpoints in the same original column, and each single-qubit cell is realisable by one brick. The aligned CX extent is

DCX(M′):={1+max⁡Bplace⁡(B),if CX bricks are present,0,otherwise.(32)D_{\mathrm{CX}}(M') := \begin{cases} 1 + \max_{B} \operatorname{place}(B), & \text{if CX bricks are present},\\ 0, & \text{otherwise}. \end{cases} \tag*{(32)}

The full depth D(M′)D(M') is one plus the largest occupied column index after single-qubit cells have been reinserted, or zero for an empty output. Both quantities are measured from the same column origin.

Parity constraint.

The brickwork embedding admits a brick with top row ⊤(B)\top(B) only at columns congruent to ⊤(B)\top(B) (mod 2). Define the parity-aligned base column

base⁡(B):={ocol⁡(B),ocol⁡(B)≡⊤(B)(mod2),ocol⁡(B)+1,otherwise.(33)\operatorname{base}(B) := \begin{cases} \operatorname{ocol}(B), & \operatorname{ocol}(B) \equiv\top(B) \pmod{2},\\ \operatorname{ocol}(B) + 1, & \text{otherwise}. \end{cases} \tag*{(33)}

The algorithm.

Bricks are processed in order of ocol⁡\operatorname{ocol}, with ties broken by prioritizing the top brick, so that when a brick BB is placed, the bricks already placed on a row r∈rows⁡(B)r \in\operatorname{rows}(B) are exactly those lying to its left along rr. Let Lr(B)L_r(B) denote the nearest such left neighbour on row rr, if one exists, and set

χr(B):={1a rotation occupies a column strictly between ocol⁡(Lr(B)) and ocol⁡(B) on r,0otherwise.\chi_r(B) := \begin{cases} 1 & \text{a rotation occupies a column strictly between } \operatorname{ocol}(L_r(B)) \text{ and } \operatorname{ocol}(B) \text{ on } r,\\ 0 & \text{otherwise}. \end{cases}

The placement keeps each brick separated from its left neighbours by one column, plus a second column when a rotation must be threaded between them. It computes the floor

⌊B⌋:=max⁡r∈rows⁡(B)Lr(B) exists(place⁡(Lr(B))+1+χr(B)),(34)\lfloor B \rfloor:= \max_{\substack{r \in\operatorname{rows}(B)\\ L_r(B)\ \text{exists}}} \left(\operatorname{place}(L_r(B)) + 1 + \chi_r(B)\right), \tag*{(34)}

with the convention that the empty maximum is −∞-\infty, and selects the smallest admissible column

place⁡(B):=min⁡{c:c≥max⁡(base⁡(B),⌊B⌋), c≡⊤(B)(mod2)}.(35)\operatorname{place}(B) := \min\{c : c \ge\max(\operatorname{base}(B), \lfloor B \rfloor),\ c \equiv\top(B) \pmod{2}\}. \tag*{(35)}

Unlike a gap-preserving rule, (A9) reserves a column only where a rotation is actually interleaved; an empty original gap is free to close.

Lemma 7 (Locality of shifts) The placement of BB is determined by its base column and the placements of its immediate left neighbours on the two rows it touches, together with the corresponding rotation indicators. Bricks on disjoint rows impose no direct constraint on one another, although delays may propagate through intermediate bricks. No placement is ever revised.

Proof. By (A9), ⌊B⌋\lfloor B\rfloor reads only place⁡(Lr(B))\operatorname{place}(L_r(B)) and χr(B)\chi_r(B) for r∈rows⁡(B)r \in\operatorname{rows}(B); no other brick enters, and base⁡(B)\operatorname{base}(B) depends only on BB. Placements are assigned once and never changed. □

Lemma 8 (Separation embodied by the floor) Any placement that preserves per-row order, avoids collisions, and reserves a free column whenever single-qubit operations are interleaved between consecutive CX bricks must satisfy

place⁡(B)≥place⁡(Lr(B))+1+χr(B)(36)\operatorname{place}(B) \ge\operatorname{place}(L_r(B)) + 1 + \chi_r(B) \tag*{(36)}

on every shared row rr with an existing left neighbour. The floor in (A9) is the maximum of these row-wise lower bounds and therefore enforces all such separation requirements. The base-column and parity constraints are imposed separately.

Proof. On row rr, brick BB lies strictly to the right of Lr(B)L_r(B), so place⁡(B)≥place⁡(Lr(B))+1\operatorname{place}(B) \ge\operatorname{place}(L_r(B))+1. If χr(B)=1\chi_r(B) = 1 a rotation must occupy a column strictly between them, which forces place⁡(B)≥place⁡(Lr(B))+2\operatorname{place}(B) \ge\operatorname{place}(L_r(B)) + 2. Taking the maximum over the rows of BB gives (A9). □

Lemma 9 (Column bound) Every CX brick satisfies

place⁡(B)≤2ocol⁡(B)+1.(37)\operatorname{place}(B) \le2\operatorname{ocol}(B) + 1. \tag*{(37)}

Proof. We proceed by induction over the processing order. Write t=ocol⁡(B)t = \operatorname{ocol}(B). For any left neighbour A=Lr(B)A = L_r(B),

ocol⁡(A)≤t−1−χr(B),(38)\operatorname{ocol}(A) \le t - 1 - \chi_r(B), \tag*{(38)}

because χr(B)=1\chi_r(B) = 1 requires an original column strictly between the two bricks. By the induction hypothesis,

place⁡(A)+1+χr(B)≤2ocol⁡(A)+2+χr(B)\operatorname{place}(A) + 1 + \chi_r(B) \le2\operatorname{ocol}(A) + 2 + \chi_r(B)
≤2t−χr(B)≤2t.(39)\le2t - \chi_r(B) \le2t. \tag*{(39)}

Taking the maximum over both rows gives ⌊B⌋≤2t\lfloor B\rfloor\le2t whenever a predecessor exists. For t=0t = 0, no predecessor exists and place⁡(B)=base⁡(B)≤1\operatorname{place}(B) = \operatorname{base}(B) \le1. For t≥1t \ge1, we also have base⁡(B)≤t+1≤2t\operatorname{base}(B) \le t+1 \le2t. Equation A10 rounds the resulting lower bound to the required parity, adding at most one column. Thus place⁡(B)≤2t+1\operatorname{place}(B) \le2t + 1. □

Rotation insertion.

For the full-depth bound, we use the following insertion rule. Consider a single-qubit cell originally in column jj, and let PP and RR be its nearest preceding and following CX bricks on the same row, when present. If PP occupies original column j−1j-1, place the cell at place⁡(P)+1\operatorname{place}(P)+1. Otherwise, if RR occupies original column j+1j+1, place it at place⁡(R)−1\operatorname{place}(R)-1. In all remaining cases, place it at place⁡(P)+1\operatorname{place}(P)+1 if PP exists, or at column 00 otherwise. Cells assigned to the same position are composed in their original execution order and realised by one single-qubit brick. Existing CX columns are not shifted.

Lemma 10 (Rotation insertion) Under the insertion rule above, every single-qubit cell is placed without overlapping a CX endpoint on its row, and the order of operations is preserved. Its destination column is at most 2d−22d-2.

Proof. Suppose first that both neighbouring CX bricks PP and RR exist. Since a single-qubit cell lies between them, χr(R)=1\chi_r(R)=1, and Lemma 8 gives

place⁡(R)≥place⁡(P)+2.(40)\operatorname{place}(R) \ge\operatorname{place}(P)+2. \tag*{(40)}

Both possible destinations, place⁡(P)+1\operatorname{place}(P)+1 and place⁡(R)−1\operatorname{place}(R)-1, therefore lie strictly between the two aligned bricks and contain no CX endpoint on that row.

If only RR exists, the destination is either place⁡(R)−1\operatorname{place}(R)-1 or 00. Both are nonnegative and precede RR, since place⁡(R)≥ocol⁡(R)≥1\operatorname{place}(R) \ge\operatorname{ocol}(R) \ge1. If only PP exists, the destination is place⁡(P)+1\operatorname{place}(P)+1, after the final CX on that row. If neither exists, the destination is 00.

Within an original gap, all cells are placed immediately after PP, or at column 00 when PP is absent, except possibly the last cell, which may be placed immediately before RR. Their destinations are therefore non-decreasing in original execution order. Composing cells in that order preserves the operation on the row.

Finally, whenever PP exists,

place⁡(P)+1≤2ocol⁡(P)+2≤2j≤2d−2.(41)\operatorname{place}(P)+1 \le2\operatorname{ocol}(P)+2 \le2j \le2d-2. \tag*{(41)}

Whenever RR exists,

place⁡(R)−1≤2ocol⁡(R)≤2d−2.(42)\operatorname{place}(R)-1 \le2\operatorname{ocol}(R) \le2d-2. \tag*{(42)}

The remaining destination, 00, satisfies the same bound because d≥1d \ge1. □

Theorem 11 (Global depth bound) Let MM be a row-isolated instruction matrix with d≥1d \ge1 columns. Under the placement and rotation-insertion rules specified above, the aligned matrix satisfies

D(M′)≤2d.(43)D(M') \le2d. \tag*{(43)}

Proof. Lemma 9 places every CX brick in a column at most 2d−12d-1. Lemma 10 places every single-qubit cell in a column at most 2d−22d-2. The full column extent is therefore at most 2d2d. □

Remark 1 (Tightness) The bound is attained for every d≥1d \ge1. Take dd CX bricks in consecutive original columns on the same pair of rows, with an odd top-row index. The first brick is placed in column 11, and the separation and parity constraints of (A10) place each subsequent brick two columns later. The final occupied column is 2d−12d-1, giving D(M′)=2dD(M')=2d while D(M)=dD(M)=d; the factor of two in Theorem 11 is therefore unavoidable.

Theorem 12 (Optimality under locality) For any feasible placement pp satisfying Definition 5,

place⁡(B)≤p(B)(44)\operatorname{place}(B) \le p(B) \tag*{(44)}

for every CXCX brick BB. Consequently, the algorithm minimizes the CXCX extent and, under the fixed rotation-insertion rule of Lemma 10, the full depth.

Proof We proceed by induction over the processing order. Suppose place⁡(A)≤p(A)\operatorname{place}(A) \le p(A) for all previously processed bricks. For each left neighbor A=Lr(B)A = L_r(B), feasibility gives

p(B)≥p(A)+1+χr(B)≥place⁡(A)+1+χr(B).(45)p(B) \ge p(A) + 1 + \chi_r(B) \ge\operatorname{place}(A) + 1 + \chi_r(B). \tag*{(45)}

Thus p(B)≥⌊B⌋p(B) \ge\lfloor B \rfloor. Feasibility also requires p(B)≥base⁡(B)p(B) \ge\operatorname{base}(B) and the same parity as ⊤(B)\top(B). Hence p(B)p(B) is admissible in Equation (35), whose least admissible value is place⁡(B)\operatorname{place}(B).

The insertion destination of each single-qubit cell is fixed by its original neighbours and is either place⁡(P)+1\operatorname{place}(P) + 1, place⁡(R)−1\operatorname{place}(R) - 1, or 00. Each is a non-decreasing function of the relevant CXCX placement. Pointwise minimality therefore also minimizes the largest occupied column after insertion. □

Theorem 13 (Semantic correctness) Under the specified placement and rotation-insertion rules, the aligned matrix M′M' preserves the order of operations on every row, introduces no CXCX collisions, respects the brickwork parity constraint, and preserves the circuit operation up to global phase.

Proof Lemma 8 separates consecutive CXCX bricks on each row by at least one column, preserving their order and preventing collisions. Parity holds by construction in Equation (35). When single-qubit operations are interleaved, the floor reserves an additional column. Lemma 10 places those operations in their original order relative to neighbouring CXCX bricks. Cells sharing a destination are composed in execution order and represented by an equivalent single-qubit brick. Thus all operations sharing a qubit retain their order; changes in the order of operations on disjoint qubits do not affect the circuit operation. □

Definition 5 (Feasible alignments under locality) A placement place⁡(⋅)\operatorname{place}(\cdot) is feasible if for every brick BB:

  1. place⁡(B)≡⊤(B)(mod2)\operatorname{place}(B) \equiv\top(B) \pmod{2} and place⁡(B)≥base⁡(B)\operatorname{place}(B) \ge\operatorname{base}(B);

  2. on each shared row rr with an existing left neighbour, place⁡(B)≥place⁡(Lr(B))+1+χr(B)\operatorname{place}(B) \ge\operatorname{place}(L_r(B)) + 1 + \chi_r(B);

  3. earlier placements are not changed when BB is placed.

It is earliest-feasible if place⁡(B)\operatorname{place}(B) is the least integer satisfying (1)–(2) for each BB in processing order.

Constraining each brick only against its immediate left neighbours loses nothing: the separations in (2) compose along a row, so they imply the corresponding bounds against every earlier brick.

Lemma 14 (The algorithm is earliest-feasible) *For every brick BB, the column place(B)(B) from (A9)–(A10) is the least cc meeting (1)–(2).

Proof Condition (2) is exactly c≥⌊B⌋c \ge\lfloor B\rfloor by Lemma 8, and (1) is c≥base⁡(B)c \ge\operatorname{base}(B) with c≡T⁡(B)c \equiv\operatorname{T}(B) (mod 2). Equation (A10) returns the least such cc. □

Brickwork Graphs

Circuit Optimizations

During decomposition, the transpiler considers many optimizations designed to make the circuit as short as possible. This section considers two of these strategies to reduce the final brickwork depth: initial mapping and routing. Consider the circuit in Figure B2a consisting of one non-adjacent CX gate. Without these optimizations, the circuit would transpile to the graph shown in Figure B2d. Applying the routing method, the depth of the circuit is reduced by half, swapping states to each other as can be seen in Figure B2c. If we then also implement initial mapping in addition to our routing strategy, we change the order of the qubits such that the qubits of interest are adjacent, making the graph one brick deep, as shown in Figure B2b.

Figure B2. Comparison of an example circuit and its corresponding brickwork graphs under different optimization strategies. (a) Example quantum circuit consisting of one non-adjacent CX gate. (b) Brickwork graph of the exemplary circuit optimized with initial mapping. (c) Brickwork graph of the exemplary circuit optimized with SABRE routing. (d) Brickwork graph of the exemplary circuit without routing or mapping optimizations.

The Identity Brick

From [42] follows that measuring a qubit in the brickwork graph with angle 0 implements a Hadamard gate HH in our framework. It follows that an identity brick, that is, a subgraph that teleports the logical state further along the brickwork graph unmodified, can be implemented by applying four such measurements in a single row, corresponding to one logical gate; see Figure B3. The resulting operation is

H4H3H2H1=H4=(H2)2=I,(46)H_4 H_3 H_2 H_1 = H^4 = \left(H^2\right)^2 = I, \tag*{(46)}

and hence the brick acts as the identity on the encoded state.

The Brickwork Transpiler

This section serves as an extension to the high level overview discussed in § 2.3.

Instruction Matrix

The instruction matrix encodes the essential information of a quantum circuit, including the qubits each gate acts upon, the corresponding gate parameters, and their execution dependencies. Moreover, the instruction matrix matches the topology of a brickwork graph up to alignment, functioning as a primitive for constructing the measurement graph. An instruction matrix M\mathcal{M} is generated by first constructing a directed acyclic graph (DAG) of gate dependencies for the decomposed circuit. Conceptually, if this dependency graph is rotated so that dependency order runs from left to right, its layers define matrix columns: rows correspond to logical qubits and columns correspond to sets of instructions that can be executed contiguously. This representation matches the topology of the brickwork graph up to the subsequent alignment of CX bricks. The dependency-graph construction also provides the scheduling structure used in the local optimality argument below. Figure C4 shows the dependency graph generated for the example circuit in Figure C5, rotated and reflected to visually match the direction of time. Figure C6 and Figure C7 show the decomposed circuit and the corresponding brickwork graph generated by the transpiler respectively. The associated instruction matrices are shown in Table C1–Table C3.

Dependency graph generated for the circuit in Fig. C5, rotated by 90° and reflected over the vertical axis

Figure C4. Dependency graph generated for the circuit in Figure C5, rotated by 90° and reflected over the vertical axis to visually match the direction of time.

Example quantum circuit defined in Qiskit

Figure C5. Example quantum circuit defined in Qiskit.

Decomposed quantum circuit used for the instruction-matrix construction

Figure C6. Decomposed quantum circuit used for the instruction-matrix construction.

Qubit –Brickwork ColumnGroup 0Group 1Group 2Group 3
Qubit 0rz, rxcx1crz, rx–
Qubit 1rxcx1trz, rx, rz–
Qubit 2cx0t–––
Qubit 3cx0crxcx2crz
Qubit 4rz–cx2t–

Table C1. Unaligned instruction matrix. The CX gates carry an integer identifier distinguishing the gate instance, together with a suffix c or t indicating control or target. These identifiers are used during alignment.

Brickwork graph: DAG example

Figure C7. Brickwork graph generated by the transpiler from the decomposed circuit.

Qubit -Brickwork ColumnGroup 0Group 1Group 2Group 3Group 4
Qubit 0rz, rx–cx1crz, rx–
Qubit 1rx–cx1trz, rx, rz–
Qubit 2cx0t––––
Qubit 3cx0crx–cx2crz
Qubit 4rz––cx2t–

Table C3. Fully aligned instruction matrix after reinserting single-qubit rotations, corresponding to the layout of the graph in Figure C7.

Optimality of the Brickwork Graph

The use of the dependency graph, which we denote DD, sets up a proof of optimality (in terms of final brickwork depth) for the scheduling of bricks given the generator set and supported gates. The idea is as follows: every gate is inserted into the graph as soon as all the gates it depends on have been executed. Note that this proof only proves optimality from the starting point of a Qiskit circuit that is already optimally decomposed (in terms of circuit depth) into our native gateset G\mathcal{G}; if the initial decomposition is sub-optimal, so will be our transpilation.

Let D=(V,E)D = (V, E) be a directed acyclic graph where each node v∈Vv \in V represents a gate with unit execution time, and each edge (u,v)∈E(u, v) \in E represents the precedence constraint that gate uu must finish before gate vv can start, that is the dependency graph. We emphasize that the single-qubit rotations within the dependency graph presented in Figure C4 are themselves separate vertices, but that in the dependency graph DD they are merged into a single brick that implements the combined single-qubit rotation RzRxRzR_zR_xR_z to reduce the final brickwork depth of the algorithm they are embedded within.

Definitions

  • For each v∈Vv \in V, define its level (or longest-path distance)

ℓ(v):=max⁡P⇝v∣P∣,(47)\ell(v) := \max_{P \rightsquigarrow v} |P|, \tag*{(47)}
Qubit -Brickwork ColumnGroup 0Group 1Group 2Group 3
Qubit 0––cx1c–
Qubit 1––cx1t–
Qubit 2cx0t–––
Qubit 3cx0c––cx2c
Qubit 4–––cx2t

Table C2. Aligned CX matrix before reinserting single-qubit rotations. When the single-qubit gates are inserted, an additional column may be appended.

where the maximum is taken over all directed paths PP through the dependency graph DD starting at its leftmost column and ending at column vv, and ∣P∣|P| is the number of nodes in PP.

  • The critical path length is

L:=max⁡v∈Vℓ(v)(48)L := \max_{v \in V} \ell(v) \tag*{(48)}

giving the path corresponding to the shortest scheduling time (i.e. where all dependencies have been evaluated), hence affecting the calculation of the minimum graph depth.

  • The Greedy schedule AA executes, at each timestep t=1,2,…t = 1, 2, \ldots, all gates vv whose predecessors have completed by time t−1t - 1.

Key properties

Lemma 15 (Feasibility of Levels) Any feasible schedule must execute gate vv no earlier than time ℓ(v)\ell(v).

Proof By definition of ℓ(v)\ell(v), there exists a path of length ℓ(v)\ell(v) ending at vv. Since gates on a path must be executed sequentially, vv cannot be scheduled before time ℓ(v)\ell(v).

Lemma 16 (Greedy Completes Levels On Time) For all t≥1t \ge1, after timestep tt the Greedy schedule has executed exactly the set

{v∈V:ℓ(v)≤t}.\{v \in V : \ell(v) \le t\}.

Proof by induction. Base case (t=1t = 1): ℓ(v)=1\ell(v) = 1 iff vv has no predecessors, so Greedy executes precisely those gates at time 1.

Induction step: Assume the claim holds for timestep t−1t - 1. Consider timestep tt. Any gate with ℓ(v)≤t\ell(v) \le t has all predecessors satisfying ℓ(u)≤t−1\ell(u) \le t - 1, hence by induction they are completed by time t−1t-1. Thus Greedy executes all such vv at time tt. Conversely, if ℓ(v)>t\ell(v) > t, then some predecessor requires ≥t\ge t steps, so vv cannot yet be executed. Hence the claim holds.

Theorem 17 (Optimality of Greedy) The Greedy schedule completes all gates in exactly LL timesteps, which is optimal.

Proof We establish optimality using a “greedy stays-ahead” argument. By Lemma 16, after timestep LL all gates with ℓ(v)≤L\ell(v) \le L are completed, which means all v∈Vv \in V are done since ℓ(v)≤L\ell(v) \le L for all vv. Thus Greedy finishes in LL steps.

By Lemma 15, no schedule can complete any gate earlier than its level, so in particular no schedule can finish the DAG in fewer than LL steps. Therefore Greedy stays ahead and uses the minimum possible timesteps to schedule the graph.

For circuits with different gate-sets than our set G\mathcal{G} defined in § 2.1, the additional cost to translate to our specified gate-set is at most logarithmic in both depth and accuracy of approximation, as implemented by the Solovay-Kitaev algorithm [34, 35]. Thus, up to the standard Solovay-Kitaev polylogarithmic approximation overhead, the transpilation procedure preserves polynomial-size efficiency for arbitrary polynomial-size input circuits over finite universal gate-sets.

Alignment to the brickwork topology

We now add the brickwork constraint. Let CC denote the set of schedules that (i) respect precedence in the dependency graph DD and (ii) conform to the brickwork topology (e.g., parity/lattice placement constraints). Let τ(b)\tau(b) denote the earliest feasible timestep for brick bb under these two constraints given the already scheduled predecessors.

For now we assume that the alignment procedure places each brick bb at time τ(b)\tau(b), i.e., the minimum timestep consistent with both the dependency constraints and the brickwork topology. That the transpiler enforces this is proved in Section C.4, Lemma 8.

Corollary 18 (Depth minimality under brickwork) The aligned schedule has the smallest possible depth over CC.

Proof. Let S⋆∈CS^{\star} \in C be any schedule. If it places some brick bb earlier than the aligned schedule, then it places bb before τ(b)\tau(b), contradicting Lemma 8. Hence no schedule in CC finishes earlier. □\square

Outline of the Alignment Algorithm

Our algorithm begins by performing a pass (that is, a sweep) of the instruction matrix. Specifically, the CX brick alignment pass arranges two-qubit operations (“CX bricks”) within the instruction matrix into a compact, collision-free layout that respects the brickwork parity constraint and preserves the logical order of execution on each row. Each brick corresponds to the two tagged endpoints of a single CX instruction, which share a group identifier, occupy two adjacent rows after routing, and originate from a single column of the input instruction matrix. Bricks are collected, ordered by their original column, and placed sequentially from left to right, with stable tie-breaking by prioritizing placement of top bricks before bottom bricks.

Core idea.

The alignment pass maintains row-local placement information describing the already occupied portion of each row. When a new brick is processed, only previously placed bricks sharing one of its rows can constrain its placement. The algorithm therefore computes the earliest brick column that simultaneously satisfies the brickwork parity constraint, preserves per-row order, avoids collisions, and, when required, leaves space for single-qubit rotations that must be inserted between consecutive CX bricks.

Parity-compatible base column.

For a brick BB, let ocol⁡(B)\operatorname{ocol}(B) denote its original column and let ⊤(B)\top(B) denote its top row. The brickwork pattern admits a CX brick with top row ⊤(B)\top(B) only in columns with matching parity. The parity-aligned base column is therefore

base⁡(B)={ocol⁡(B),ocol⁡(B)≡⊤(B)(mod2),ocol⁡(B)+1,otherwise.(49)\operatorname{base}(B) = \begin{cases} \operatorname{ocol}(B), & \operatorname{ocol}(B) \equiv\top(B) \pmod{2},\\ \operatorname{ocol}(B) + 1, & \text{otherwise.} \end{cases} \tag*{(49)}

Placement floor.

The placement floor is the smallest column index at which a brick can be placed without violating the row-local constraints imposed by previously placed bricks. Different but closely related choices of this floor lead to different alignment policies. A conservative gap-preserving policy maintains, for each row, an occupancy frontier that records how far the rightmost placed brick on that row has been shifted relative to its original column. This policy preserves original separations between overlapping bricks and therefore guarantees that no originally available column is lost. It is simple and robust, but may introduce unnecessary empty columns when the original gap contains no operation that must be preserved. The implementation used for the resource estimates in this work uses a tighter rotation-aware policy. For each row rr touched by a brick BB, let Lr(B)L_r(B) denote the most recently placed brick on row rr, if it exists. If no such brick exists, row rr imposes no lower bound beyond the parity-compatible base column. If Lr(B)L_r(B) exists, then BB must be placed at least one column to its right in order to preserve per-row order. Moreover, if the original instruction matrix contains a single-qubit rotation on row rr in a column strictly between ocol⁡(Lr(B))\operatorname{ocol}(L_r(B)) and ocol⁡(B)\operatorname{ocol}(B), then an additional free column must be reserved so that the rotation can later be inserted without colliding with a CX brick. Equivalently, define

χr(B)={1,if row r of B admits an interleaved rotation,0,otherwise.(50)\chi_r(B) = \begin{cases} 1, & \text{if row } r \text{ of } B \text{ admits an interleaved rotation},\\ 0, & \text{otherwise.} \end{cases} \tag*{(50)}

The rotation-aware row-wise constraint is

place⁡(B)≥place⁡(Lr(B))+1+χr(B).(51)\operatorname{place}(B) \ge\operatorname{place}(L_r(B)) + 1 + \chi_r(B). \tag*{(51)}

Taking the maximum of these constraints over the rows of BB gives the rotation-aware placement floor. The selected placement column is the smallest column that is at least both this floor and base⁡(B)\operatorname{base}(B), and whose parity matches ⊤(B)\top(B).

Rotation insertion.

After all CX bricks have been aligned, the single-qubit rotations from the original instruction matrix are reinserted next to their neighbouring CX bricks. If a rotation originally had a CX neighbour on its left, the algorithm places it immediately to the right of the aligned CX when that cell is free. Otherwise, if it had a CX neighbour on its right, the algorithm places it immediately to the left of that aligned CX when possible. Rotations with no neighbouring CX are placed in the leading rotation column. The rotation-aware floor ensures that a free column is available whenever a rotation must be threaded between consecutive CX bricks on the same row.

Collision avoidance and efficiency.

Because every brick is placed strictly to the right of the most recently placed brick on each row it touches, the aligned matrix preserves per-row program order and introduces no CX collisions. Under the conservative gap-preserving policy, original gaps are preserved. Under the rotation-aware policy used in the present implementation, empty original gaps are allowed to close unless they are needed for an interleaved rotation. This gives a tighter layout while preserving the same parity and ordering constraints. The algorithm is deterministic for the fixed processing order. Its cost is linear in the number of brick–row incidences, apart from the lookup used to detect interleaved rotations, which can be implemented with a sorted per-row list of rotation columns.

Alignment Algorithm Depth Bound

Theorem 1 gives the abstract factor-two alignment bound used in the scaling analysis. Here we summarize the constructive alignment procedure used by the transpiler and relate it to the detailed proofs in Appendix § 8.§ 3. The implemented procedure follows a local earliest-feasible placement policy: for a fixed dependency-ordered instruction matrix, each CX brick is placed as early as possible subject to the brickwork parity constraint, per-row ordering, and the reservation of a free, unoccupied column whenever an interleaved single-qubit rotation must later be inserted.

Locality policy.

The instruction matrix is scanned in non-decreasing order of the bricks’ original columns, with stable tie-breaking by prioritizing placement of top bricks over bottom bricks. When the current brick BB is placed, earlier placements are not revised. The placement of BB is constrained only by the most recently placed brick on each row touched by BB, together with the parity constraint imposed by the brickwork graph. Empty gaps are allowed to close; an additional column is reserved only when the original instruction matrix contains a single-qubit rotation strictly between two consecutive CX bricks on the same row.

Identifiers and order.

Each two-qubit CX gate appears on two rows and carries a global identifier gid, tying the two endpoints together and fixing the control/target roles. We write τ∈N\tau\in\mathbb{N} for the original column of the brick and ⊤(B)\top(B) for its top row. Bricks are processed in non-decreasing τ\tau, with stable tie-breaking. The statements below summarize the formal results proved in Appendix § 8.§ 3.

Locality of shifts.

When placing a brick BB, the selected column place⁡(B)\operatorname{place}(B) depends only on the already placed left-neighbour bricks that share a row with BB. Bricks on disjoint rows are independent, and no placement is ever revised. Intuition. The placement floor for BB is computed row-wise based on the nearest already placed brick on each row touched by BB, together with whether a single-qubit rotation brick must be inserted between the two bricks on that row.

Earliest-feasible placement.

For each brick BB, the algorithm chooses the earliest (that is, leftmost) column that simultaneously (i) satisfies the brickwork parity constraint, (ii) preserves per-row order with respect to the immediate left neighbours of BB, (iii) leaves a free column for each interleaved rotation, and (iv) leaves all earlier placements unchanged. Consequently, among placements obeying this locality policy, the algorithm minimizes every place⁡(B)\operatorname{place}(B) and hence minimizes the aligned depth. Intuition. The row-wise constraints induce a necessary lower bound (“floor”); the algorithm takes the smallest parity-compatible column above that floor.

Gap bound.

For consecutive bricks A,BA, B on a row rr, with ocol⁡(A)<ocol⁡(B)\operatorname{ocol}(A) < \operatorname{ocol}(B),

newgap⁡(A,B)≥1+χr(B).(52)\operatorname{newgap}(A, B) \ge1 + \chi_r(B). \tag*{(52)}

Thus the aligned gap is always positive, so row order is preserved, and a free column is kept whenever a rotation must be inserted between AA and BB. The aligned gap is not bounded above by gap⁡(A,B)+1\operatorname{gap}(A, B) + 1: the placement of BB is governed by the larger of the floors of its two rows, so on the row with the smaller floor the gap can grow by more than one column. For bricks on rows (0,1)(0, 1) at column 00, on rows (2,3)(2, 3) at columns 00–33, and on rows (1,2)(1, 2) at column 44, the last brick is placed at column 77, so on row 11 the gap grows from 44 to $7. The depth is bounded instead through the column bound below. Intuition. Empty original gaps may close, parity rounding adds at most one column, and delay accumulated on the other row of BB is inherited.

Column bound.

Every CX brick satisfies

place⁡(B)≤2ocol⁡(B)+1,(53)\operatorname{place}(B) \le2\operatorname{ocol}(B) + 1, \tag*{(53)}

and every reinserted single-qubit brick is placed at a column at most 2d−22d - 2 (Lemmas 9 and 10). Intuition. By induction over the processing order: each left neighbor Lr(B)L_r(B) has ocol⁡(Lr(B))≤ocol⁡(B)−1−χr(B)\operatorname{ocol}(L_r(B)) \le\operatorname{ocol}(B) - 1 - \chi_r(B), so the floor is at most 2ocol⁡(B)2\operatorname{ocol}(B); parity rounding adds at most one column.

Global depth bound.

If MM is row-isolated and depth⁡(M)=n\operatorname{depth}(M) = n, then the aligned matrix M′M' satisfies

depth⁡(M′)≤2n,(54)\operatorname{depth}(M') \le2n, \tag*{(54)}

and for every row ρ\rho, depth⁡ρ(M′)≤2depth⁡ρ(M)\operatorname{depth}_{\rho}(M') \le2\operatorname{depth}_{\rho}(M). The bound is attained (Remark 1). Intuition. Apply the column bound to the last brick of each row and then maximize over rows.

Semantic correctness.

The aligned matrix preserves per-row program order, introduces no CX-brick collisions, respects the brickwork parity constraint, and leaves a free column between consecutive bricks whenever a rotation is interleaved. Intuition. Consecutive new gaps on any row are at least one, so there is no reorder or collision. Parity is enforced by construction, and the rotation-aware floor reserves the required intermediate column.

Depth bounded. Combining the global depth bound with the earliest-feasible placement result shows that, for a fixed row-isolated instruction matrix and under the stated locality policy, the transpiler enforces the alignment depth bound by construction:

depth⁡(M′)≤2depth⁡(M).(55)\operatorname{depth}(M') \le2\operatorname{depth}(M). \tag*{(55)}

The complete implementation is available on our Github page: https://github.com/Nonsens24/brickwork_transpiler.

UBQC Graph Encryption

This subsection describes the transpiler’s implementation of angle randomization in the BFK protocol [22], distinguishing its static representation from the adaptive execution required for blindness. The resource-scaling results in this work depend only on the dimensions of the brickwork graph and on the measurement pattern prior to the UBQC encryption layer. Blinding in the BFK protocol randomizes measurement angles without altering the graph or the structure of the pattern, so the depth and qubit-count bounds of § 3 are unchanged by its application. To this end, the transpiler provides a function bfk_encoder, which takes as input a brickwork Pattern and returns both a new brickwork Pattern carrying randomized displayed angles and a log of Alice’s randomization data. An optional argument allows the removal of byproduct commands from the returned Pattern, thereby better reflecting the opaque nature of the protocol. The measurement basis angle δx,y\delta_{x,y} is defined as

δx,y=ϕx,y′+θx,y+πrx,y,(56)\delta_{x,y} = \phi'_{x,y} + \theta_{x,y} + \pi r_{x,y}, \tag*{(56)}

where

ϕx,y′=(−1)sx,yXϕx,y+sx,yZπ,(57)\phi'_{x,y} = (-1)^{s^{X}_{x,y}}\phi_{x,y} + s^{Z}_{x,y}\pi, \tag*{(57)}

with sXs^{X} and sZs^{Z} denoting the dependency terms on prior measurement outcomes:

sx,yX=⨁i∈Dx,ysi,sx,yZ=⨁i∈Dx,y′si.(58)s^{X}_{x,y} = \bigoplus_{i\in D_{x,y}} s_i,\qquad s^{Z}_{x,y} = \bigoplus_{i\in D'_{x,y}} s_i. \tag*{(58)}

Here ϕx,y\phi_{x,y} is the unencrypted adaptive measurement angle, θx,y\theta_{x,y} is Alice’s random preparation angle drawn from {0,π/4,…,7π/4}\{0,\pi/4,\ldots,7\pi/4\}, and rx,y∈{0,1}r_{x,y}\in\{0,1\} is Alice’s random bit. The dependency corrections sx,yXs^{X}_{x,y} and sx,yZs^{Z}_{x,y} are computed dynamically during execution from prior measurement outcomes. The usage of the function is illustrated below:

encoded_pattern, log_alice = bfk_encoder(bw_pattern, remove_dependencies=False)

The list log_alice contains Alice-side randomization data and dependency information in a structured format, for example:

{'node': (1, 1), 'phi': 0.5, 'theta': 0.75, 'r': 0, 'x_byproducts': {(1, 2)},
'z_byproducts': {(0, 2), (1, 3)}, 's_domain': set(), 't_domain': set()},

The dependency domains are inherited from the underlying Graphix pattern and need not be empty for general brickwork patterns. The current static-pattern utility stores randomized displayed angles and retains the Graphix dependency domains. In the full BFK protocol, however, the quantity δx,y\delta_{x,y} must be evaluated adaptively at measurement time after the relevant prior outcomes are known; the randomization terms θx,y\theta_{x,y} and πrx,y\pi r_{x,y} should therefore be treated as Alice-side classical data rather than as a complete replacement for adaptive protocol execution. Accordingly, the encryption layer is used in this work only for illustration, and the format above records the information needed to inspect the generated encrypted schedule. In addition, a visualization scheme was implemented to represent encoded graphs. Unlike the noise visualization (Appendix § 10.§ 6, Figure C9), this scheme removes color indicators corresponding to gate types and instead labels the nodes with either symbolic angles θx,y\theta_{x,y} or their explicit numerical values. An example is provided in Figure C8.

Encrypted brickwork graph visualized without color-coding to conceal gate information, showing UBQC structure with nodes labeled $\theta_{0,0}$ through $\theta_{1,8}$ and the expression $\{ \lvert +_{\delta_{x,y}}\rangle, \lvert -_{\delta_{x,y}}\rangle \},\quad \delta_{x,y}=\phi'_{x,y}+\theta_{x,y}+\pi r_{x,y}$

Figure C8. An encrypted brickwork graph visualized without color-coding to conceal gate information.

A brickwork graph visualized with a color-coded heat map based on the measurement angles carried by the supplied pattern

Figure C9. A brickwork graph visualized with a color-coded heat map based on the measurement angles carried by the supplied pattern. The renderer displays angle values for diagnostic visualization and does not itself define a physical noise model.

Noise Injection

Although a comprehensive analysis of noise processes is beyond the scope of this paper, the transpiler is designed to interface with noise models supported by the underlying Graphix simulation stack. In particular, depolarizing-noise simulation is supported through Graphix’s noise-model interface rather than through a MasonQ-specific physical noise channel. The MasonQ noise module re-exports the relevant Graphix noise classes and adds helpers for noisy simulation, density-matrix extraction, and fidelity evaluation. For visualization and exploratory studies, one may also consider phenomenological perturbations of measurement angles. Such perturbations are useful for debugging and for illustrating sensitivity to measurement-basis errors, but they should not be identified with a physical depolarizing channel. A depolarizing channel acts on the quantum state, whereas a measurement-angle perturbation changes the measurement basis. The transpiler additionally provides a rendering routine that color-codes graph nodes by their measurement angle on a continuous heat map, making it easy to see where angles deviate from their nominal values without inspecting the underlying parameters. Figure C9 illustrates this mode. The routine is a renderer: it displays whatever angles the supplied pattern carries and does not itself generate noise. This functionality is intended as a diagnostic and extensibility feature rather than as a noise model entering the complexity analysis.

Experiment supplementary material

Figure D10 shows the simulated recommendation counts for all four two-bit user feature vectors, using the database entries 00 and 01. Figure D11 shows the corresponding recommendation counts after SABRE layout and routing.

Scope of classical–quantum blind complexity comparisons

A central question of this work is under what assumptions and at what cost blind quantum learning can offer an advantage over classical privacy-preserving approaches: is it possible to simultaneously achieve a quantum advantage in privacy and speed? To address this question, we distinguish the additional cost of making an existing computation private from the cost of implementing a complete private computation. We then consider the inference-only B-QRS as a case study, as the blinded classical analog is well-studied [62].

Criterion for a dual quantum advantage.

Let Q(L)Q(L) and C(L)C(L) denote the costs of specified unblinded quantum and classical algorithms, respectively, for a problem of size LL. For a fixed resource measure, define the privacy overhead factors hQ(L)h_Q(L) and hC(L)h_C(L) through

BQ(L)=hQ(L)Q(L),BC(L)=hC(L)C(L),(59)B_Q(L)=h_Q(L)Q(L), \qquad B_C(L)=h_C(L)C(L), \tag*{(59)}

where BQB_Q and BCB_C are the costs of the corresponding private implementations. These comparisons assume the same task and output guarantee, together with compatible data-access and privacy assumptions.

Two cases are worth distinguishing. First, the quantum implementation has a strictly smaller asymptotic privacy overhead when

lim⁡L→∞hQ(L)hC(L)=0.(60)\lim_{L\to\infty}\frac{h_Q(L)}{h_C(L)}=0. \tag*{(60)}

Second, the complete private quantum implementation has strictly better asymptotic scaling when

lim⁡L→∞BQ(L)BC(L)=lim⁡L→∞hQ(L)Q(L)hC(L)C(L)=0.(61)\lim_{L\to\infty}\frac{B_Q(L)}{B_C(L)}=\lim_{L\to\infty}\frac{h_Q(L)Q(L)}{h_C(L)C(L)}=0. \tag*{(61)}

The first case does not imply the second, since a smaller privacy overhead may accompany a more expensive underlying algorithm; a quantum speed quantum advantage is not guaranteed for all possible problems. Conversely, an algorithmic advantage may survive even if the quantum privacy overhead is larger due to an underlying quantum speed advantage. Relations expressed only as OO bounds allow equal asymptotic scaling and therefore do not, on their own, establish either strict improvement. Emphatically, for a blind quantum algorithm to provably satisfy Eq. (61) implies a dual quantum advantage in both privacy due to the information-theoretic security of UBQC and in speed due to the improved asymptotic scaling.

Resource measures

To apply this criterion, the costs being compared must first be specified. Let nn denote the gate count over the gate families covered by our brickwork-depth bound, and let ω\omega denote the logical circuit width. § 3.1 establishes

D(B)=O(ωn).(62)D(B) = O(\omega n). \tag*{(62)}

This bounds brickwork depth. It does not identify ω\omega as the actual multiplicative overhead in every resource measure.

For a full ω\omega-row brickwork graph, each brick column expands into four measured graph columns, with one final output column appended. The resource-state size is therefore

S(B)=ω[4D(B)+1]=O(ω2n+ω).(63)S(B) = \omega[4D(B) + 1] = O(\omega^2 n + \omega). \tag*{(63)}

There are 4ωD(B)4\omega D(B) measured qubits, and the bounded graph degree gives an O(S(B))O(S(B)) bound on the entangling operations. Streaming preparation can reduce the number of qubits stored simultaneously without removing these operations.

With sufficient hardware, operations across the width can be performed in parallel once their dependencies are satisfied. Assuming bounded-duration local operations, bounded-time classical feed-forward per measurement layer, and sufficient parallel capacity for resource preparation and delivery, execution time is upper bounded by O(D(B))O(D(B)). Total quantum work instead scales as O(ωD(B)+ω)O(\omega D(B)+\omega). Thus, parallel runtime and total work give different comparisons. A runtime comparison must also specify the parallel resources available to the classical implementation. These statements concern logical operations and exclude fault-tolerance costs.

Case 1: comparing privacy overheads.

Classical secure computation offers several ways of evaluating algorithms while protecting private inputs. Their overheads depend on the protocol, security parameters, and trust assumptions [63]. Consequently, there is no single classical overhead factor against which the width-dependent brickwork bound can be compared.

Fully homomorphic encryption provides a relevant example, since it allows a server to compute on encrypted client data [64]. A comparison with a specified FHE implementation should include its evaluation, encryption, and decryption costs, together with the security parameter and numerical precision. Standard FHE does not automatically hide the evaluated function or circuit structure, so the permitted leakage must also be specified.

UBQC protects the delegated inputs, outputs, and computation under its stated assumptions, while allowing disclosure of the chosen resource dimensions [22]. Its security setting is therefore not interchangeable with that of every classical private-learning protocol. Similarly, concealing query-dependent memory accesses does not require forbidding them: oblivious-access methods may be relevant when the task admits suitable indexing [65]. Blindness alone does not establish that a classical algorithm must scan the complete database.

These differences make comparisons of fully specified implementations more informative than comparisons of overhead factors in isolation.

Case 2: comparing complete private computations.

An interesting case is the B-QRS without database encoding considered in Appendix F.§ 2.2. Under the assumptions and gate accounting given there, constant feature width gives ω=O(log⁡L)\omega= O(\log L) and

Dinf(L)=O(Llog⁡L).(64)D_{\mathrm{inf}}(L) = O\left(\sqrt{L}\log L\right). \tag*{(64)}

For the full brickwork graph, this implies

Sinf(L)=O(L(log⁡L)2).(65)S_{\mathrm{inf}}(L) = O\left(\sqrt{L}(\log L)^2\right). \tag*{(65)}

The corresponding logical quantum work is therefore asymptotically sublinear in LL, subject to the stated inference accounting.

A classical baseline that explicitly scores all LL candidates has linear dependence on LL for fixed per-candidate cost. For example, exhaustive dense factorization-machine scoring takes Θ(LKd)\Theta(LKd) operations for rank KK and feature dimension dd. PriRec provides a practical privacy-preserving example using factorization-machine scoring and a candidate-matching stage [62]. However, this is not automatically the same task as the distance-based recommendation routine underlying B-QRS [50]. The scoring rule, candidate selection, output size, accuracy, and privacy guarantees must be matched before comparing them.

If such a comparison establishes total quantum inference work BQ(L)=O(L(log⁡L)2)B_Q(L) = O(\sqrt{L}(\log L)^2) and classical work BC(L)=Ω(L)B_C(L) = \Omega(L), then

0≤BQ(L)BC(L)≤c(log⁡L)2L⟶0(66)0 \le\frac{B_Q(L)}{B_C(L)} \le c\frac{(\log L)^2}{\sqrt{L}} \longrightarrow0 \tag*{(66)}

for some constant c>0c > 0 and sufficiently large LL. This would establish an asymptotic inference-work advantage over the specified classical baseline. Establishing an advantage against a class of classical algorithms requires the lower bound to hold throughout that class; the cost of an exhaustive implementation alone does not provide such a lower bound.

Database preparation and the scope of inference.

The distinction between inference and preparation is essential to this comparison. UBQC with quantum inputs permits delegation of computations on supplied quantum states [22]. The inference complexity derived in Appendix F.§ 2.2 includes the amplification stage. Amplification is therefore already accounted for in the stated bound and is not an additional overhead introduced by the present comparison. Initial database preparation remains excluded from the inference-only analysis.

The inference-only analysis assumes a supplied encoded database state. Initial preparation is excluded, while all database-access operations required during inference must be included. No assumption is made that the supplied state can be reused for subsequent recommendations. A comparison with classical inference must likewise specify which input preparation and preprocessing costs are excluded. In addition, delegating a supplied database state does not by itself establish database privacy against the client; no-cloning alone is insufficient to prove mutual privacy.

The comparison therefore depends on where the cost of preparing and accessing the data resides. Our results provide bounds on specified blind quantum implementations and identify conditions under which favorable inference scaling can survive transpilation. Whether these conditions yield an advantage over a classical private implementation is then determined by the matched costs and the criterion above.

Analysis of Blind Quantum Machine Learning Algorithms

B-HHL

Since HHL encodes the solution of a linear system of equations into a quantum register, it can use the extension of the BFK protocol supporting quantum outputs [22], returning the solution state rather than a measurement sample. To benchmark blind HHL, we considered several matrix families, given the parameters entering its computational complexity:

poly⁡(κ,s,1/ε)⋅polylog⁡(N).\operatorname{poly}(\kappa, s, 1/\varepsilon)\cdot\operatorname{polylog}(N).

Here, NN is the dimension of the N×NN \times N system matrix, κ\kappa its condition number, ss the maximum number of nonzero entries per row, and ε\varepsilon the target error in the prepared quantum solution state. Our interest here is how the blind HHL brickwork depth scales with matrix dimension NN across different matrix families, rather than an in-depth performance analysis. To that end, we used tridiagonal Toeplitz matrices (inspired by [66]), normalized Laplacians (shifted to control κ\kappa), and sparse Hermitian matrices with controlled spectral properties.

Tridiagonal Toeplitz matrix

Let AN(a,b)∈RN×NA_N(a,b) \in\mathbb{R}^{N \times N} be the tridiagonal Toeplitz matrix

AN(a,b)=(abbab⋱⋱⋱babba),s=3.(67)A_N(a,b) = \begin{pmatrix} a & b & & & \\ b & a & b & & \\ & \ddots& \ddots& \ddots& \\ & & b & a & b \\ & & & b & a \end{pmatrix}, \qquad s=3. \tag*{(67)}

In the benchmark case we set a=1a=1 and b=−16b=-\frac{1}{6}, i.e. AN:=AN(1,−16)A_N := A_N(1,-\frac{1}{6}). From [67], the eigenvalues of a tridiagonal Toeplitz matrix where the diagonal is aa and the off diagonal is bb, AN(a,b)=aI+bA~A_N(a,b)=aI+b\widetilde{A} are

λj=a+2bcos⁡(jπN+1),j=1,…,N.(68)\lambda_j = a + 2b\cos\left(\frac{j\pi}{N+1}\right), \qquad j=1,\ldots,N. \tag*{(68)}

With AN(1,−16)A_N(1,-\frac{1}{6}), one has λmax⁡→43\lambda_{\max}\to\frac{4}{3} and λmin⁡→23\lambda_{\min}\to\frac{2}{3} as N→∞N\to\infty, so

κ(AN)=λmax⁡λmin⁡=4323=2,(69)\kappa(A_N)=\frac{\lambda_{\max}}{\lambda_{\min}}=\frac{\frac{4}{3}}{\frac{2}{3}}=2, \tag*{(69)}

i.e., the condition number remains constant across system sizes.

Let n=⌈log⁡2N⌉n=\lceil\log_2 N\rceil. The circuit width decomposes as

ω=n⏟system+Θ(log⁡(κ/ε))⏟phase register+O(n)⏟ancillae+1⏟flag,(70)\omega= \underbrace{n}_{\text{system}} + \underbrace{\Theta(\log(\kappa/\varepsilon))}_{\text{phase register}} + \underbrace{O(n)}_{\text{ancillae}} + \underbrace{1}_{\text{flag}}, \tag*{(70)}

where the ancilla term is implementation dependent: Qiskit’s TridiagonalToeplitz Hamiltonian simulation uses n−1n-1 ancillae, while an explicitly given matrix uses none. In either case ω=Θ(log⁡N)\omega=\Theta(\log N) as κ=Θ(1)\kappa=\Theta(1) and ε\varepsilon is fixed. For Figure 5b we therefore keep the phase register at five qubits for every NN, in line with Eq. (70), using Qiskit’s HHL with exact reciprocal, ε=10−2\varepsilon=10^{-2} and ∣b⟩=H⊗n∣0⟩|b\rangle=H^{\otimes n}|0\rangle; the resulting width is ω=2n+5\omega=2n+5. For N≤64N\le64, where the circuit can be simulated, the post-selected output has fidelity at least 0.9980.998 with the normalized solution AN−1∣b⟩A_N^{-1}|b\rangle. The gate count GG grows as G≈1.4×103n2G\approx1.4\times10^3 n^2 up to N=212N=2^{12}, so the circuit is polylogarithmic in NN, and Theorem 4 gives D(B)=O(ωG)=O(log⁡3N)D(\mathcal{B})=O(\omega G)=O(\log^3 N), consistent with the measured depths.

Normalized Laplacian matrix

A closely related family to the tridiagonal Toeplitz matrices, but not restricted to 1D banded couplings, is the normalized Laplacian L=I−D−1/2AD−1/2\mathcal{L}=I-D^{-1/2}AD^{-1/2} of a graph (with adjacency matrix AA and degree matrix DD). It is symmetric positive semidefinite and its eigenvalues lie in the interval [0,2][0,2] for any simple connected graph; in particular, 0=λ1≤λ2≤⋯≤λn≤20=\lambda_1\le\lambda_2\le\cdots\le\lambda_n\le2 on connected graphs [68, 69]. To control the condition number for HHL, we add a positive multiple of the identity to the normalized Laplacian:

Lμ=L+μI,μ>0.(71)\mathcal{L}_{\mu}=\mathcal{L}+\mu I,\qquad\mu>0. \tag*{(71)}

This shifts every eigenvalue by μ\mu, making Lμ\mathcal{L}_{\mu} positive definite with eigenvalues in [μ,2+μ][\mu,2+\mu]. Its condition number therefore satisfies

κ(Lμ)=λmax⁡(L)+μμ≤2+μμ.(72)\kappa(\mathcal{L}_{\mu})=\frac{\lambda_{\max}(\mathcal{L})+\mu}{\mu}\le\frac{2+\mu}{\mu}. \tag*{(72)}

For example, choosing μ=1\mu=1 gives κ≤3\kappa\le3. Keeping μ\mu fixed thus bounds the condition number independently of the matrix dimension.

The sparsity of L\mathcal{L} is governed by the graph degree. For graphs of maximum degree Δ\Delta, each row has at most Δ+1\Delta+1 nonzero values (neighbors plus the diagonal), so L\mathcal{L} is ss-sparse with s≤Δ+1=O(1)s\le\Delta+1=O(1). In the special case Δ=2\Delta=2 (paths/cycles), each row has at most three nonzero values, matching the Toeplitz tridiagonal sparsity; for general bounded-degree graphs the nonzero values are not confined to a tridiagonal band but are dispersed according to the neighbor indices, serving as an excellent comparison to the transpiler’s behavior given a tridiagonal Toeplitz matrix.

Finally, with n=⌈log⁡2N⌉n=\lceil\log_2 N\rceil system qubits, a constant number of ancillae, and a constant-sized phase register when κ\kappa is bounded and ε\varepsilon is fixed, the circuit width scales as

w=n+O(1)=Θ(log⁡N).(73)w=n+O(1)=\Theta(\log N). \tag*{(73)}

Sparse Hermitian matrix

Let A∈RN×NA\in\mathbb{R}^{N\times N} be a sparse matrix with density 0.05. We form

A~=A+AT2,(74)\widetilde{A}=\frac{A+A^{\mathsf{T}}}{2}, \tag*{(74)}

which satisfies A~T=A~\widetilde{A}^{\mathsf{T}}=\widetilde{A} and is therefore symmetric; for real-valued matrices, symmetry implies Hermitianity (A†=ATA^\dagger=A^{\mathsf{T}}). For numerical stability, we add a diagonal shift while preserving symmetric and Hermitian structure:

A~μ=A~+μI,(75)\widetilde{A}_{\mu}=\widetilde{A}+\mu I, \tag*{(75)}

with μ=1\mu=1 (e.g., chosen so that λmin⁡(A~μ)>0\lambda_{\min}(\widetilde{A}_{\mu})>0). Two independent samples of this low-density Hermitian matrix are transpiled without circuit optimization. The results of all matrices are plotted in Figure F12. Figure F12 uses Qiskit’s default phase register of n+2n+2 qubits, which grows with NN. For the Toeplitz matrix, the controlled power U2jU^{2^j} then uses ⌈2j/2/k⌉\lceil2^{j/2}/k\rceil Trotter steps, with kk the base number of steps, and the exact reciprocal acts on all 2n+12^{n+1} register values, so the circuit carries a N\sqrt{N} factor and, for large NN, a linear term; this is why panel (a) grows faster than Figure 5b. For the Laplacian and sparse Hermitian matrices, the matrix is compiled as a dense unitary and repeated 2j2^j times, so the circuit grows roughly as N3N^3. These costs come from the circuit, not from blinding: in every family the brickwork depth follows the circuit and stays within the bound of Theorem 4.

Brickwork depth, circuit gate count, and Theorem 4 reference for four matrix families

Figure F12. Brickwork depth D(B)D(B) (green), circuit gate count GG (orange) and the Theorem 4 reference cωGc\omega G (dashed) for HHL with Qiskit’s default phase register of n+2n+2 qubits, as a function of the matrix dimension N=2nN=2^n: (a) tridiagonal Toeplitz AN(1,−12)A_N(1,-\frac{1}{2}), (b) normalized Laplacian L+IL+I of a random 2-regular graph, (c) and (d) two independently drawn sparse Hermitian matrices (density 0.05) A~+I\widetilde{A}+I. All circuits use the exact reciprocal and ε=10−2\varepsilon=10^{-2}; no circuit optimization is applied. Because Qiskit compiles an explicit matrix as a dense unitary, the gate count is essentially independent of the matrix entries: (b), (c) and (d) coincide except at N=8N=8, where the sample in (d) happens to synthesize to fewer gates. The brickwork depth stays below the Theorem 4 reference in every panel (constant c=0.3c=0.3 chosen empirically).

B-QRS

All gates used in the quantum recommendation system from [50] fall into the four gate families assumed in the derivation of Theorem 4. Hence, by Theorem 4, the brickwork depth obeys

D(B)=O(ωn),(76)D(\mathcal{B}) = \mathcal{O}(\omega n), \tag*{(76)}

where ω\omega is the original circuit width in logical qubits and nn its gate complexity before decomposition, with each multi-controlled gate counted once. We reserve one additional clean ancilla and write W=ω+1W = \omega+ 1 for the implemented width. Throughout this section, aMCUa_{\mathrm{MCU}} denotes the constant defined in Theorem 4. An MCU therefore contributes at most aMCUWa_{\mathrm{MCU}}W brick columns before alignment. The global alignment factor is included explicitly in the bounds below.

Under a binary encoding of database identifiers, a database with L=2qL = 2^q entries requires qq identifier qubits. With constant feature width ll and a fixed number of auxiliary qubits, the circuit width therefore satisfies

ω=O(log⁡L).(77)\omega= \mathcal{O}(\log L). \tag*{(77)}

In the absence of Grover amplification, the gate complexity is dominated by database encoding. Following § 3.3 of [50], the initialization cost satisfies

O1(l,N)=2l+N(N−1)2,(78)O_1(l,N) = 2l + \frac{N(N-1)}{2}, \tag*{(78)}

with N=2qN = 2^q the number of database entries11. With ll constant and N=LN = L, this gives the upper bound n=O(L2)n = \mathcal{O}(L^2), and therefore

D(B)=O(L2log⁡L).(79)D(\mathcal{B}) = \mathcal{O}(L^2 \log L). \tag*{(79)}

Bounding B-QRS With Grover Amplification

Even though all gates used in the recommendation system are covered by the assumptions leading to Theorem 4, the part of the algorithm responsible for amplitude amplification introduces additional overhead. Let rr denote the integer number of amplification rounds. Under the amplification assumptions used here,

r=O(Lg),(80)r = \mathcal{O}\left(\sqrt{\frac{L}{g}}\right), \tag*{(80)}

where g≥1g \ge1 denotes the number of “good” elements subject to amplification.

Retaining the circuit accounting of at most 6ω6\omega native single-qubit rotations and two MCUs per amplification round, the pre-alignment cost of rr rounds is bounded by

r(6ω+2aMCUW).r(6\omega+ 2a_{\mathrm{MCU}}W).

Applying the alignment factor 2, the amplification stage admits a brickwork implementation satisfying

Damp≤2r(6ω+2aMCUW)=(12ω+4aMCUW)r.(81)D_{\mathrm{amp}} \le2r(6\omega+ 2a_{\mathrm{MCU}}W) = (12\omega+ 4a_{\mathrm{MCU}}W)r. \tag*{(81)}

Since W=ω+1=O(log⁡L)W=\omega+1=O(\log L) for constant feature width, combining this contribution with the database-encoding and non-amplification costs gives

D(B)=O(L2log⁡L+Lglog⁡L).(82)D(\mathcal{B}) = O\left(L^2\log L + \sqrt{\frac{L}{g}}\log L\right). \tag*{(82)}

Since g≥1g \ge1, this yields

D(B)=O(L2log⁡L+Llog⁡L),(83)D(\mathcal{B}) = O\left(L^2\log L + \sqrt{L}\log L\right), \tag*{(83)}

and hence

D(B)=O(L2log⁡L).(84)D(\mathcal{B}) = O(L^2\log L). \tag*{(84)}

Experimental results supporting this analysis are presented in Figure F13.

Scaling behavior of brickwork graph depths for four database matching conditions

Figure F13. Scaling behavior of brickwork graph depths obtained after transpiling the quantum recommendation system circuit, including the database encoding stage. Each point represents the resulting brickwork graph depth for a given input size, illustrating how transpilation cost grows with system scale, corroborating O(L2log⁡L)\mathcal{O}(L^2 \log L).

Bounding B-QRS Complexity Without Database Encoding

A not unreasonable scenario is that an organization provides a dataset of size LL, with feature vectors fff_f, already encoded in a Hilbert space spanned by log⁡L+l\log L+l qubits. In this setting, the user can get a recommendation directly by applying QKNN and Grover amplification to the prepared database qubits. This division of tasks is particularly relevant given the dominating cost of database encoding and the support for quantum inputs in the generalized BFK protocol [22] and is therefore further explored in this section.

It is important to note that the number of gates involved in QKNN depends as much on the width of the circuit as its depth. To see this, consider the QKNN construction presented in [50]. In this design, each additional qubit contributes one additional CX gate, i.e., the gate count scales linearly with the circuit width. Moreover, the number of subcircuits used remains constant across problem sizes. These subcircuits perform three operations: computing the Hamming distance, summing the distances, and decoding the distances12.

Retaining the gate accounting represented by the three QKNN subcircuits, we conservatively assign at most 3ω3\omega operations the MCU cost bound and count a further ω\omega native rotations. This also bounds CX operations, since aMCUW≥2(6W+1)a_{\mathrm{MCU}}W \ge2(6W+1). Including the alignment factor, the QKNN stage admits a brickwork implementation satisfying

DQKNN≤2(3ωaMCUW+ω).(85)D_{\mathrm{QKNN}} \le2(3\omega a_{\mathrm{MCU}}W+\omega). \tag*{(85)}

For rr amplification rounds, the corresponding bound is

Damp≤2r(6ω+2aMCUW).(86)D_{\mathrm{amp}} \le2r\left(6\omega+2a_{\mathrm{MCU}}W\right). \tag*{(86)}

where r=O(Lg)r=\mathcal{O}\left(\sqrt{\frac{L}{g}}\right).

The total pre-alignment cost is the sum of these two stages before their alignment factors are applied. Applying the factor 2 once to that sum gives

D(B)≤2(3ωaMCUW+ω+r(6ω+2aMCUW))=6aMCUω2+(6aMCU+2)ω+((12+4aMCU)ω+4aMCU)r,(87)\begin{aligned} D(B) &\le2\left(3\omega a_{\mathrm{MCU}}W+\omega+r\left(6\omega+2a_{\mathrm{MCU}}W\right)\right)\\ &=6a_{\mathrm{MCU}}\omega^2+\left(6a_{\mathrm{MCU}}+2\right)\omega\\ &\quad+\left(\left(12+4a_{\mathrm{MCU}}\right)\omega+4a_{\mathrm{MCU}}\right)r, \tag*{(87)} \end{aligned}

where W=ω+1W=\omega+1.

Since aMCUa_{\mathrm{MCU}} is independent of the problem size and g≥1g \ge1, this gives

D(B)=O(ω2+ωLg)=O(ω2+ωL).(88)D(\mathcal{B}) = \mathcal{O}\left(\omega^2 + \omega\sqrt{\frac{L}{g}}\right) = \mathcal{O}\left(\omega^2 + \omega\sqrt{L}\right). \tag*{(88)}

For constant feature width, ω=O(log⁡L)\omega= \mathcal{O}(\log L), and therefore

D(B)=O((log⁡L)2+Llog⁡L).(89)D(\mathcal{B}) = \mathcal{O}\left((\log L)^2 + \sqrt{L}\log L\right). \tag*{(89)}

Consequently, the inference-only depth satisfies

D(B)=O(Llog⁡L).(90)D(\mathcal{B}) = \mathcal{O}(\sqrt{L}\log L). \tag*{(90)}

To determine whether the complexity in Eq. (90) is sublinear, we analyze the asymptotic behavior of the ratio between Eq. (90) and the linear term LL as L→∞L \to\infty:

lim⁡L→∞Llog⁡LL=lim⁡L→∞log⁡LL=L’Hoˆpitallim⁡L→∞1L12L=lim⁡L→∞2L=0.(91)\lim_{L\to\infty} \frac{\sqrt{L}\log L}{L} = \lim_{L\to\infty} \frac{\log L}{\sqrt{L}} \overset{\text{L’Hôpital}}{=} \lim_{L\to\infty} \frac{\frac{1}{L}}{\frac{1}{2\sqrt{L}}} = \lim_{L\to\infty} \frac{2}{\sqrt{L}} = 0. \tag*{(91)}

This establishes that the depth of the brickwork graph for this algorithm is asymptotically sublinear in LL. In particular, the circuit depth grows strictly slower than the cost of iteratively searching through the database by classical comparison of entries. Hence, this sub-algorithm constitutes a meaningful addition to the flexibility and applicability of the quantum recommendation system introduced in [50]. Results of our numerical experiments are shown in Figure F14.

Scaling behavior of brickwork graph depths for quantum recommendation system circuits

Figure F14. Scaling behavior of brickwork graph depths obtained after transpiling the quantum recommendation system circuit, excluding the database encoding stage. Each point represents the resulting brickwork graph depth for a given input size, illustrating how transpilation cost grows with system scale, corroborating O(Llog⁡L)O(\sqrt{L}\log L). Notably, the number of Grover amplification rounds depends on the structure of the data; when there are more matches (i.e. clusters of low Hamming distance), fewer rounds are required, since r=O(L/g)r = O(\sqrt{L/g}).

Blind Quantum Generative Transformers

Blind quantum machine learning is motivated by the imperative to ensure that emerging computational paradigms align with societal value hierarchies, particularly the growing emphasis on privacy. This motivation extends naturally to the design of privacy-preserving, or “blind”, large language models (LLMs). Given the societal impact of classical LLMs, it is of significant theoretical interest to investigate quantum analogues that could, in principle, offer both computational advantage and privacy guarantees. Although the direct simulation of large-scale quantum LLMs is presently infeasible due to the prohibitive number of qubits required, it remains instructive to analyze their asymptotic resource requirements. In particular, using the brickwork depth bounds for blind algorithms presented in this paper can provide insight into the practical feasibility of privacy-preserving quantum generative models in NISQ regimes [49]. This section will only establish bounds analytically using Theorem 4.

To verify that the theorem applies, we analyze one foreign gate13, namely RBS(θ)RBS(\theta). According to [49], RBS(θ)RBS(\theta) can be decomposed efficiently into four H, two RyR_y, and two CZ gates—all covered in Theorem 4. Therefore, the theorem applies.

In [49], three quantum transformer architectures are introduced: the Orthogonal Patch-wise Transformer, the Quantum Orthogonal Transformer, and the Compound Transformer. Each is designed to implement the self-attention mechanism with logarithmic or polylogarithmic circuit depth. The central innovations are efficient quantum matrix-data loaders and trainable orthogonal layers, both of which contribute to reductions in runtime complexity and the number of trainable parameters relative to the classical Vision Transformer (ViT). For more background information, refer to [49].

While all three architectures share similar design principles, they differ in their degree of quantum integration. The Orthogonal Patch-wise and Quantum Orthogonal Transformers operate on block-diagonal subspaces, corresponding to partially quantum realizations of the attention mechanism. In contrast, the Compound Transformer merges all attention operations into a single coherent quantum process acting jointly on the patch and feature registers. As a result, it provides the most expressive and fully quantum variant among the proposed designs.

Let nn denote the number of input patches and dd the feature dimension per patch. Following the constructions in [49], we summarize the resource requirements of blind quantum transformer architectures using gate count as the measure of computational complexity.

Circuit width.

The quantum circuit implementing a Compound Transformer layer acts on a joint register representing patch indices and patch features. Under unary amplitude encoding, nn input patches and dd features per patch require nn and dd qubits, respectively, giving

ω(n,d)=O(n+d).(92)\omega(n,d) = O(n+d). \tag*{(92)}

Complexity.

[49] characterizes the quantum architectures by their circuit depths and the number of distinct circuits required per attention layer, which together determine runtime under the chosen execution model. The Compound Transformer requires only one distinct circuit per attention layer, with circuit depth

T=O(log⁡n+nlog⁡d+log⁡(n+d)).(93)T = O\left(\log n + n\log d + \log(n+d)\right). \tag*{(93)}

The Compound Transformer acts on the full (n+d)(n+d)-qubit register and subsumes the other two architectures as special cases: the Orthogonal Patch-wise and Quantum Orthogonal Transformers correspond to block-diagonal restrictions of this fully entangled layer. Consequently, the Compound Transformer provides a natural asymptotic upper bound for the complexity of all proposed quantum transformer variants.

Blind complexity.

Theorem 4 bounds the brickwork depth by the circuit width times the gate count. Since [49] reports circuit depths, we use G≤ωTG \leq\omega T (at most ω\omega gates per layer), which gives

D(B)=O(ωG)=O(ω2T)=O((n+d)2(log⁡n+nlog⁡d+log⁡(n+d))).(94)D(\mathcal{B}) = O(\omega G) = O(\omega^{2}T) = O\left((n+d)^{2}\left(\log n + n\log d + \log(n+d)\right)\right). \tag*{(94)}

This is an asymptotic upper bound on the brickwork depth of the Compound Transformer of [49], loose by up to a factor ω\omega when layers contain fewer than ω\omega gates, and it bounds the entire family of blind quantum transformer designs adapted from [49].

References

  1. [1]Grover, L.K.: Quantum mechanics helps in searching for a needle in a haystack. Phys. Rev. Lett. 79(2), 325–328 (1997) https://doi.org/10.1103/physrevlett.79.325
  2. [2]Harrow, A.W., Hassidim, A., Lloyd, S.: Quantum algorithm for linear systems of equations. Phys. Rev. Lett. 103(15), 150502 (2009) https://doi.org/10.1103/PhysRevLett.103.150502
  3. [3]Mantri, A., Pérez-Delgado, C.A., Fitzsimons, J.F.: Optimal blind quantum computation. Phys. Rev. Lett. 111(23) (2013) https://doi.org/10.1103/physrevlett.111.230502
  4. [4]Bermejo-Vega, J., Hangleiter, D., Schwarz, M., Raussendorf, R., Eisert, J.: Architectures for quantum simulation showing a quantum speedup. Phys. Rev. X 8(2) (2018) https://doi.org/10.1103/physrevx.8.021010
  5. [5]Seddon, J.R., Regula, B., Pashayan, H., Ouyang, Y., Campbell, E.T.: Quantifying quantum speedups: Improved classical simulation from tighter magic monotones. PRX Quantum 2(1) (2021) https://doi.org/10.1103/prxquantum.2.010345
  6. [6]Liu, Y., Arunachalam, S., Temme, K.: A rigorous and robust quantum speed-up in supervised machine learning. Nat. Phys. 17(9), 1013–1017 (2021) https://doi.org/10.1038/s41567-021-01287-z
  7. [7]Pokharel, B., Lidar, D.A.: Demonstration of algorithmic quantum speedup. Phys. Rev. Lett. 130(21) (2023) https://doi.org/10.1103/physrevlett.130.210602
  8. [8]Jordan, S.P., Shutty, N., Wootters, M., Zalcmann, A., Schmidhuber, A., King, R., Isakov, S.V., Khattar, T., Babbush, R.: Optimization by decoded quantum interferometry. Nature 646(8086), 831–836 (2025) https://doi.org/10.1038/s41586-025-09527-5
  9. [9]Bene Watts, A., Gosset, D., Liu, Y., Soleimanifar, M.: Quantum advantage from measurement-induced entanglement in random shallow circuits. PRX Quantum 6(1) (2025) https://doi.org/10.1103/prxquantum.6.010356
  10. [10]Fellous-Asiani, M., Chai, J.H., Thonnart, Y., Ng, H.K.K., Whitney, R.S., Auffèves, A.: Optimizing resource efficiencies for scalable full-stack quantum computers. PRX Quantum 4(4) (2023) https://doi.org/10.1103/prxquantum.4.040319
  11. [11]Meier, F., Yamasaki, H.: Energy-consumption advantage of quantum computation. PRX Energy 4(2) (2025) https://doi.org/10.1103/prxenergy.4.023008
  12. [12]Hou, W., Yao, W., Zhao, X., Rehan, K., Li, Y., Li, Y., Lutz, E., Lin, Y., Du, J.: Combining energy efficiency and quantum advantage in cyclic machines. Nat. Commun. 16(1) (2025) https://doi.org/10.1038/s41467-025-60179-5
  13. [13]Abderrahim, W., Amin, O., Shihada, B.: Green quantum computing in the sky. npj Wireless Technology 1(1) (2025) https://doi.org/10.1038/s44459-025-00005-y
  14. [14]Biamonte, J., Wittek, P., Pancotti, N., Rebentrost, P., Wiebe, N., Lloyd, S.: Quantum machine learning. Nature 549(7671), 195–202 (2017) https://doi.org/10.1038/nature23474
  15. [15]Gil-Fuster, E., Eisert, J., Bravo-Prieto, C.: Understanding quantum machine learning also requires rethinking generalization. Nature Communications 15(1) (2024) https://doi.org/10.1038/s41467-024-45882-z
  16. [16]Cho, G., Kim, D.: Machine learning on quantum experimental data toward solving quantum many-body problems. Nature Communications 15(1) (2024) https://doi.org/10.1038/s41467-024-51932-3
  17. [17]Li, W., Ma, Y., Deng, D.-L.: Pitfalls and prospects of quantum machine learning. Nature Computational Science 5(12), 1095–1097 (2025) https://doi.org/10.1038/s43588-025-00914-6
  18. [18]Tang, E.: A quantum-inspired classical algorithm for recommendation systems. In: Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing. STOC 2019, pp. 217–228. Association for Computing Machinery, New York, NY, USA (2019). https://doi.org/10.1145/3313276.3316310 . https://doi.org/10.1145/3313276.3316310
  19. [19]Tang, E.: Quantum machine learning without any quantum. Phd thesis, University of Washington (2023). Framework for dequantisation via quantum-inspired classical algorithms. https://ewintang.com/assets/tang-thesis.pdf
  20. [20]Huang, H.-Y., Broughton, M., Mohseni, M., Babbush, R., Boixo, S., Neven, H., McClean, J.R.: Power of data in quantum machine learning. Nature Communications 12(1) (2021) https://doi.org/10.1038/s41467-021-22539-9
  21. [21]Huang, H.-Y., Broughton, M., Mohseni, M., Babbush, R., Boixo, S., Neven, H., McClean, J.R.: Quantum advantage in learning from experiments. Science 376(6598), 1182–1186 (2022) https://doi.org/10.1126/science.abn7293
  22. [22]Broadbent, A., Fitzsimons, J., Kashefi, E.: Universal blind quantum computation. In: 2009 50th Annual IEEE Symposium on Foundations of Computer Science, pp. 517–526 (2009). https://doi.org/10.1109/FOCS.2009.36
  23. [23]Morimae, T., Fujii, K.: Blind topological measurement-based quantum computation. Nature Communications 3(1) (2012) https://doi.org/10.1038/ncomms2043
  24. [24]Mantri, A., Demarie, T.F., Menicucci, N.C., Fitzsimons, J.F.: Flow ambiguity: A path towards classically driven blind quantum computation. Phys. Rev. X 7(3) (2017) https://doi.org/10.1103/physrevx.7.031004
  25. [25]Fitzsimons, J.F.: Private quantum computation: an introduction to blind quantum computing and related protocols. npj Quantum Inf. 3(1) (2017) https://doi.org/10.1038/s41534-017-0025-3
  26. [26]Drmota, P., Nadlinger, D.P., Main, D., Nichol, B.C., Ainley, E.M., Leichtle, D., Mantri, A., Kashefi, E., Srinivas, R., Arenada, G., Ballance, C.J., Lucas, D.M.: Verifiable blind quantum computing with trapped ions and single photons. Phys. Rev. Lett. 132(15) (2024) https://doi.org/10.1103/physrevlett.132.150604
  27. [27]Polacchi, B., Leichtle, D., Limongi, L., Carvacho, G., Milani, G., Spagnolo, N., Kaplan, M., Sciarrino, F., Kashefi, E.: Multi-client distributed blind quantum computation with the qline architecture. Nature Communications 14(1) (2023) https://doi.org/10.1038/s41467-023-43617-0
  28. [28]Polacchi, B., Leichtle, D., Carvacho, G., Milani, G., Spagnolo, N., Kaplan, M., Kashefi, E., Sciarrino, F.: Experimental verifiable multiclient blind quantum computing on a qline architecture. Physical Review Letters 134(20) (2025) https://doi.org/10.1103/physrevlett.134.200603
  29. [29]Wootters, W.K., Zurek, W.H.: A single quantum cannot be cloned. Nature 299(5886), 802–803 (1982) https://doi.org/10.1038/299802a0
  30. [30]Dam, J., Avis, G., Propp, Tz.B., Silva, F., Slater, J.A., Northup, T.E., Wehner, S.: Hardware requirements for trapped-ion-based verifiable blind quantum computing with a measurement-only client. Quantum Sci. Technol. 9(4), 045031 (2024) https://doi.org/10.1088/2058-9565/ad6eb2
  31. [31]Dam, J., Hellebek, E.R., Propp, Tz.B., Gonzales-Ureta, J.R., Sørensen, A.S., Wehner, S.D.C.: Single-click protocols for remote state preparation using weak coherent pulses. arXiv (2025) https://doi.org/10.48550/ARXIV.2508.14857
  32. [32]Propp, T.B., Davies, B., Grimbergen, J., Hellebek, H., Gonzales-Ureta, J.R., Dam, J., Slater, J.A., Wehner, S.: Quantum Strategies to Overcome Classical Multiplexing Limits (2025). https://doi.org/10.48550/arXiv.2510.06099
  33. [33]Propp, Tz.B., Tissor, A. B. Sørensen, Wehner, S.: Remotely Preparing Many Qubits with a Single Photon. arXiv (2026). https://doi.org/10.48550/arXiv.2604.03495 . https://arxiv.org/abs/2604.03495v1
  34. [34]Kitaev, A.Y., Shen, A.H., Vyalyi, M.N.: Classical and Quantum Computation. Graduate Studies in Mathematics, vol. 47. American Mathematical Society, Providence, RI (2002)
  35. [35]Dawson, C.M., Nielsen, M.A.: The Solovay-Kitaev algorithm. Quantum Information & Computation 6(1), 81–95 (2006) arXiv:quant-ph/0505030DOI
  36. [36]Wehner, S., Elkouss, D., Hanson, R.: Quantum internet: A vision for the road ahead. Science 362(6412) (2018) https://doi.org/10.1126/science.aam9288
  37. [37]Danos, V., Kashefi, E., Panangaden, P.: The measurement calculus. J. ACM 54(2), 8 (2007) https://doi.org/10.1145/1219092.1219096
  38. [38]Sunami, S., Fukushima, M.: Graphix: optimizing and simulating measurement-based quantum computation on local-Clifford decorated graph (2022). https://arxiv.org/abs/2212.11975
  39. [39]Evans, A., Omonije, S., Soulé, R., Rand, R.: Mcbeth: A measurement-based quantum programming language. In: 2023 IEEE/ACM 4th International Workshop on Quantum Software Engineering (Q-SE), pp. 1–8 (2023). https://doi.org/10.1109/Q-SE59154.2023.00007
  40. [40]Joshi, M., Mishra, M.K., Karthikeyan, S.: Blind Transpiler: An open-source library for universally blind and homomorphic quantum computations. arXiv (2026). https://doi.org/10.48550/ARXIV.2607.17131 . https://arxiv.org/abs/2607.17131
  41. [41]Abraham, H., et al.: Qiskit: An open-source framework for quantum computing. Zenodo (2019) https://doi.org/10.5281/zenodo.2562111
  42. [42]Danos, V., Kashefi, E., Panangaden, P.: Parsimonious and robust realizations of unitary maps in the one-way model. Phys. Rev. A 72, 064301 (2005) https://doi.org/10.1103/PhysRevA.72.064301
  43. [43]Nielsen, M.A., Chuang, I.L.: Quantum Computation and Quantum Information: 10th Anniversary Edition. Cambridge University Press, Cambridge (2010)
  44. [44]Fitzsimons, J.F., Kashefi, E.: Unconditionally verifiable blind quantum computation. Phys. Rev. A 96, 012303 (2017) https://doi.org/10.1103/PhysRevA.96.012303
  45. [45]Ma, S., Zhu, C., Liu, X., Li, H., Li, S.: Universal blind quantum computation with improved brickwork states. Physical Review A 109(1) (2024) https://doi.org/10.1103/physreva.109.012606
  46. [46]Rosa, E.C.R., Duzzioni, E.I., Santiago, R.: Optimizing Gate Decomposition for High-Level Quantum Programming. Quantum 9, 1659 (2025) https://doi.org/10.22331/q-2025-03-12-1659
  47. [47]Zindorf, B., Bose, S.: Efficient Implementation of Multi-Controlled Quantum Gates. Version 3 (2025). https://arxiv.org/abs/2404.02279v3
  48. [48]Uldemolins, M., Fukushima, M., Graham, E., Nair, P., Sasaki, D., Shiratani, S., Watanabe, Y., Martinez, T., Garnier, M., Sunami, S.: Graphix. Zenodo (2026). https://doi.org/10.5281/zenodo.18503266 . https://doi.org/10.5281/zenodo.18503266
  49. [49]Cherrat, E.A., Kerenidis, I., Mathur, N., Landman, J., Strahm, M., Li, Y.Y.: Quantum transfers. Quantum 8, 1265 (2024) https://doi.org/10.22331/q-2024-02-22-1265
  50. [50]Sawerwain, M., Wróblewski, M.: Recommendation systems with the quantum k−nn and grover algorithms for data processing. International Journal of Applied Mathematics and Computer Science 29(1), 139–150 (2019) https://doi.org/10.2478/amcs-2019-0011
  51. [51]Wiśniewska, J., Sawerwain, M.: Recognizing the pattern of binary hermitian matrices by quantum knn and svm methods. Vietnam Journal of Computer Science 5(3), 197–204 (2018) https://doi.org/10.1007/s40595-018-0115-y
  52. [52]Acharya, Rajeev, et al.: Quantum error correction below the surface code threshold. Nature 638(8052), 920–926 (2025) https://doi.org/10.1038/s41586-024-08449-y
  53. [53]Cai, J., Fleur, R., Tissot, B., Löffler, W., Propp, T.B.: High-Fidelity Remote Graph State Preparation for Blind Quantum Computation. arXiv (2026). https://arxiv.org/abs/2610.06247
  54. [54]Pyte: Homomorphic Encryption: Universality at a Cost. Accessed: 2025-02-27 (2023). https://www.pyte.ai/blog/homomorphic-encryption-universality-at-a-cost
  55. [55]Yuan, J., Liu, W., Shi, J., et al.: Approximate homomorphic encryption based privacy-preserving machine learning: a survey. Artificial Intelligence Review 58, 82 (2025) https://doi.org/10.1007/s10462-024-11076-8
  56. [56]Huang, Y., Evans, D., Katz, J., Malka, L.: Faster secure two-party computation using garbled circuits. In: Proceedings of the 20th USENIX Conference on Security. SEC’11, p. 35. USENIX Association, USA (2011)DOI
  57. [57]Jaques, S., Battew, A.G.: ORAM: A Survey and Critique. Quantum 9, 1922 (2025) https://doi.org/10.22331/q-2025-12-02-1922
  58. [58]Lee, Y., Chung, D.: Partial blind quantum computation: a framework for selective circuit protection. Quantum Information Processing 24(8) (2025) https://doi.org/10.1007/s11128-025-04865-9
  59. [59]Poshtvan, A., Lapiha, O., Doosti, M., Leichtle, D., Music, L., Kashef, E.: Selectively Blind Quantum Computation (2025). https://arxiv.org/abs/2504.176
  60. [60]Li, C., Li, B., Amer, O., Shaydulin, R., Chakrabarti, S., Wang, G., Xu, H., Tang, H., Schoch, I., Kumar, N., Lim, C., Li, J., Cappellaro, P., Pistoia, M.: Blind quantum machine learning with quantum bipartite correlator. Physical Review Letters 133(12) (2024) https://doi.org/10.1103/physrevlett.133.120602
  61. [61]Pasini, M., Propp, T.B., Dam, J., Lasa, G.M., Wanick, A., Riedmatten, H., Amaral, G.C.d.: Partially-Blind Single-Qubit Classification over a Prototype Hybrid Quantum Network. arXiv (2026). https://doi.org/10.48550/ARXIV.2607.01998 . https://arxiv.org/abs/2607.01998
  62. [62]Chen, C., Zhou, J., Wu, B., Fang, W., Wang, L., Qi, Y., Zheng, X.: Practical privacy preserving poi recommendation. ACM Trans. Intell. Syst. Technol. 11(5) (2020) https://doi.org/10.1145/3394138
  63. [63]Zhao, C., Zhao, S., Zhao, M., Chen, Z., Gao, C.-Z., Li, H., Tan, Y.-a.: Secure multi-party computation: Theory, practice and applications. Information Sciences 476, 357–372 (2019) https://doi.org/10.1016/j.ins.2018.10.024
  64. [64]Gentry, C., Halevi, S., Smart, N.P.: Fully Homomorphic Encryption with Polylog Overhead. Cryptology ePrint Archive, Paper 2011/566 (2011). https://eprint.iacr.org/2011/566DOI
  65. [65]Barenghi, A., Pelosi, G.: In: Jajodia, S., Samarati, P., Yung, M. (eds.) Oblivious RAM (ORAM), pp. 1–4. Springer, Berlin, Heidelberg (2019). https://doi.org/10.1007/978-3-642-27739-9_1546-1
  66. [66]Vazquez, A.C., Hiptmair, R., Woerner, S.: Enhancing the quantum linear systems algorithm using richardson extrapolation. ACM Transactions on Quantum Computing 3(1) (2022) https://doi.org/10.1145/3490631
  67. [67]Golub, G.H.: Eigenvalues of tridiagonal Toeplitz matrices. Lecture notes for CME 302: Numerical Linear Algebra Lecture 14, Stanford University, Department of Computer Science, Stanford, CA, November 2005. Version 1.0; notes originally due to James Lambers; minor editing by Lek-Heng Lim. Available at https://www.stat.uchicago.edu/~lekheng/courses/302/notes14.pdf. Accessed 2025-09-02
  68. [68]Li, J., Guo, J., Shiu, W.C.: Bounds on normalized laplacian eigenvalues of graphs. Journal of Inequalities and Applications 2014(1), 316 (2014) https://doi.org/10.1186/1029-242X-2014-316
  69. [69]Chung, F.R.K.: Spectral Graph Theory. Regional Conference Series in Mathematics, vol. 92. Amer. Math. Soc, Providence (1997)
  70. [70]LI, C.-K., ROBERTS, R., YIN, X.: Decomposition of unitary matrices and quantum gates. International Journal of Quantum Information 11(01), 1350015 (2013) https://doi.org/10.1142/S0219749913500159 https://doi.org/10.1142/S0219749913500159

Paper details

vlnc:W_ewcspqu6
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 5

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents