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 , where is the circuit width and 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 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 . Inter-brick CZ gates are interwoven to combine individual bricks into larger brickwork graphs [3]. In translating an -qubit quantum circuit into a measurement pattern, we prove that, for all circuits, UBQC requires at most a brickwork graph of depth , where 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 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 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.

Figure 1. Graphical representation of the composed single-qubit gates implementing a sequence of single-qubit gates (, , and ) 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.

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
where denotes the set of quantum circuits and the set of computational brickwork graphs4. The transpiler maps any circuit to a brickwork graph that implements , 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 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
where CX denotes the controlled-NOT gate.
Notably, decomposing arbitrary single-qubit rotations into and reduces the required qubit count by two relative to alternative constructions [42].
Since is universal [43], any quantum circuit admits a decomposition into elements of (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 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 .
Single-Qubit Gates
A single-row brick – four horizontally entangled qubits in the brickwork graph – implements an arbitrary unitary via appropriate choices of measurement angles and adaptive feedforward corrections [42]. Since is closed under composition, any finite sequence of single-qubit gates can be compiled into a single 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 and implemented, the remaining gate from the generator set 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.

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 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 . 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 . (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 , CZ connections are made alternating based on both row and column (also starting from ), and we here define them as connecting downward i.e. from . For even, CZs downward are made for . For odd, CZs downward are made for , exempting the column (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 . 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 -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 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 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 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 controls on a linear chain of qubits using one clean ancilla. The construction permits arbitrary positions of the controls, target, and ancilla, and requires at most
nearest-neighbour CX gates, T gates, H gates, and eleven single-qubit rotations.
Since , the total elementary gate count is , 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 , giving . Single-qubit gates and adjacent CX gates admit constant-cost brickwork implementations. Consequently, this construction yields an brickwork-depth bound for each multi-controlled 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 . This restriction to our gate-set 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 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.

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 . 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 is the first step of transpilation. Having specified our generator set , 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).
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.
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.
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 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 of a brickwork graph 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
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 , 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
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 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 gates. In particular, the nearest-neighbor routing overhead of a non-adjacent gate is .
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 intermediate qubits lie between them, then at most swaps are needed to bring them together and at most swaps are needed to restore the original ordering. Since each swap decomposes into three gates, the swap routing contributes at most nearest-neighbor gates. Once the qubits are adjacent, one additional nearest-neighbor implements the desired interaction. Thus the total number of nearest-neighbor gates is at most . The complete proof is given in Appendix § 8.§ 2.
Lemma 3 (Nearest-neighbour MCU brickwork bound) An arbitrary multi-controlled single-target gate acting within an -qubit register admits a brickwork implementation of depth using one additional clean ancilla, which is restored after the gate.
Proof. Write for the number of controls and for the implemented width, including the ancilla. For , Theorem 6 of [47] provides an implementation containing elementary gates on a linear nearest-neighbour architecture, including the cost of arbitrary qubit placement.
The remaining cases involve a bounded number of active qubits. These can be brought into a contiguous region using adjacent SWAP gates, followed by a constant-size decomposition and restoration of the original placement. Their elementary gate count is also .
Each elementary gate has a constant-cost translation into the brickwork gate family. In particular, and 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 . □
Theorem 4 (Brickwork Depth Upper Bound) Let be a quantum circuit containing original gates acting on logical qubits, with each multi-controlled single-target gate counted once. Reserve one additional clean ancilla and write for the implemented width. Let
denote the numbers of occurrences of native single-qubit rotations, adjacent gates, non-adjacent gates, and multi-controlled single-target gates, respectively, in . These categories are taken to be disjoint, so that
Using the nearest-neighbour MCU construction of Lemma 3, there is a constant , independent of , , and the number of controls, such that the following upper bounds hold for the brick-column cost before global alignment:
Consequently, admits a brickwork implementation of width whose depth satisfies
Proof. We first specify the MCU contribution. Let denote the number of brick columns used to implement one MCU with controls on rows, before global alignment. For an MCU with controls, Theorem 6 of Ref. [47] gives a nearest-neighbour implementation with one clean ancilla using at most CX gates, T gates, 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
where .
For , 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 . Routing each two-qubit interaction and restoring the original placement costs at most . Since the number of these interactions is bounded, the total pre-alignment cost is at most , for some constant independent of and the choice of .
Combining this with the bound for , we obtain
Defining
therefore gives the uniform bound
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 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
Since the count of each gate type is bounded by the total number of original gates, we have
Substituting these bounds yields
Therefore, with ,
Hence, the depth of the constructed brickwork graph scales at most linearly in both the original width and the original gate count .
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 and width .
Now follows a corollary useful for exact gate bounds in experimental settings.
Corollary 5 (Conservative Brickwork Depth Bound) Let be a quantum circuit acting on logical qubits and containing exactly gates, each belonging to one of the classes considered in Theorem 4. With one additional clean ancilla, admits a brickwork implementation of width whose depth satisfies
where is the constant defined in the proof of Theorem 4.
Proof. Apply the proof of Theorem 4. Since and , the pre-alignment brick-column cost of every allowed gate is bounded by :
The circuit contains exactly original gates. Summing their costs and applying the alignment factor 2 from Theorem 1 therefore yields
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 qubit wires) unitary gates which do not belong to the gate classes considered in Theorem 4 and are assumed non-native7 in terms of . 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
This gives a universal brickwork depth bound with only polylogarithmic dependence on the inverse approximation accuracy.
We also note that our generator set
can implement, with constant overhead, the finite approximately universal gate-set
Indeed,
and
while CX is already contained in . Hence every gate in has a constant-size implementation over . Therefore, for the purpose of applying the Solovay–Kitaev theorem, arbitrary -local non-native unitary gates may first be approximated over , and the resulting gates may then be translated into with constant overhead.
Theorem 6 (Universal Brickwork Depth Bound under Solovay–Kitaev Approximation) Let be a quantum circuit of gate complexity acting on logical qubits. Suppose that is expressed over an arbitrary finite approximately universal gate-set, and that every non-native gate has locality at most .8 Let 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 using the Solovay–Kitaev algorithm, and that the resulting gates are then translated with constant overhead into our generator set . Then the resulting brickwork graph has depth
where is the Solovay–Kitaev exponent depending on the particular construction used e.g. for the standard Solovay–Kitaev construction .
Proof. Let the target total approximation error be . Since the input circuit contains gates, it suffices to approximate each non-native gate to accuracy
Then the accumulated error is bounded by
By the Solovay–Kitaev theorem, each non-native gate can be approximated over the finite approximately universal gate-set using at most
gates, where is the Solovay–Kitaev exponent. Since , the constants hidden in this bound are independent of , , and .
Let be the circuit obtained after replacing every non-native gate by its Solovay–Kitaev approximation. The cumulative error satisfies
Therefore, after this preliminary gate-set translation, the gate complexity of the approximating circuit is asymptotically bounded above by
Each gate in is then translated with constant overhead into our brickwork-native gate family
Hence the same asymptotic bound holds for the circuit expressed in terms of .
We now apply Theorem 4 to the translated circuit . Since 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
Substituting the bound on , we obtain
Hence the brickwork depth grows linearly in the circuit width , linearly in the original gate complexity , and only polylogarithmically in the inverse approximation accuracy.
Since the finite set is approximately universal and is implementable with constant overhead over
any constant-locality unitary gate can be approximated over the brickwork-native family with Solovay–Kitaev overhead
after allocating local error . Consequently, the brickwork depth remains
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 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 qubits, corresponding to an -dimensional input state, the gate complexity (i.e. the number of gates) is . Since the circuit width is , Theorem 4 implies
Thus, for the exact QFT, the brickwork graph depth grows polylogarithmically with the input size . 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.

Figure 5. Scaling of brickwork depth for transpiled blinded QFT and HHL circuits as functions of the problem size . (a) QFT circuits, with growth of the depth consistent with a scaling upper bounded by , with 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 . 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:
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.
Identify the circuit width (number of qubits) and gate complexity .
Apply Theorem 4 to obtain the bound on the resource overhead.
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.
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, is the transform dimension; for HHL, is the matrix dimension, its condition number, the maximum number of nonzero entries per row, and the target approximation error. For QRS, 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, is the number of input patches and 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 when data loading is included (Figure 6b) and when inference is performed on a pre-encoded quantum database (Figure 6a). Here, denotes the number of entries in the database. Notably, this inference complexity is sublinear in the database size and scales more favorably than that of classical recommendation systems under comparable blindness constraints (Appendix F.§ 2.2).

Figure 6. Scaling of brickwork depth 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 times yields recommendations; we relax this assumption in Figure F13. Here, the horizontal axis is the size of the database, , with the number of qubits used to represent the database. We plot in red the database size for reference. We also include our analytic upper bound (dashed line). (a) Blind inference from a pre-trained model, with growth consistent with . (b) Blind inference including the cost of blindly training the model with growth consistent with . 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 patches, each represented by a -dimensional feature vector, and an attention mechanism learns correlations between these patches. The resulting patch–feature matrix is encoded using an -qubit patch register and a -qubit feature register, giving a total circuit width of 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 , since a circuit of depth on qubits contains at most gates and Theorem 4 charges one factor of 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
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 in the computational basis. Starting from , 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 -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 -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 -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 , retaining only those runs where . For the feature vector , this occurs with probability
where is the size of the database, the number of feature bits, and the Hamming distance between the user feature vector and the th database entry ; the two entries have and . Conditioned on , the database register is measured in the matching entry with probability (Figure D10b). The probabilistic nature of 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 and the Graphix state-vector output distributions are presented in Appendix § 11, Figure D11 and Figure D10, respectively.

Figure D10. Output counts for four feature-vector recommendations based on the same database encodings, 00 and 01. (a) Feature vector . (b) Feature vector . (c) Feature vector . (d) Feature vector .

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 . (b) Feature vector . (c) Feature vector . (d) Feature vector .
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 at fixed feature width. As shown in the two QRS rows of Table 1, the resulting blind depth bounds are including database encoding and 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 -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 ( in this work).
More specifically, we obtained brickwork-depth scalings of for the quantum Fourier transform, for HHL, for a quantum recommendation system, and for quantum transformers. Here, denotes the dimension of the register’s state space, the condition number, the sparsity, the target precision, the number of entries in the database, is the number of image patches, and is the size of the feature vector associated with each patch, so the image is represented as an 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, , which applies to circuits composed of single-qubit rotations, adjacent and non-adjacent CX gates, and multi-controlled single-target 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 , the dimension of the 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 never increases the depth beyond .
Proof by Structural Induction Base Case (): 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 , the resulting brickwork depth is at most . See cases 1 and 2 of Figure A1 for an illustration.

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 consisting of brick, the depth after alignment satisfies
Inductive Step (): Now consider extending the brickwork graph by one more brick, forming the (unaligned) graph . Since the alignment algorithm processes bricks sequentially from left to right, at the point of the th brick either it is aligned (so depth ) or it is not aligned, necessitating a shift by a single brick column (so depth ). 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 satisfies:
By the principle of mathematical induction, this establishes that shifting bricks for alignment purposes given an input matrix with depth yields a depth of at most . □
Non-adjacent CX Cost bound
Proof of Lemma 2. Consider a quantum circuit mapped to a one-dimensional nearest-neighbor architecture, and let 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
nearest-neighbor CX gates. In particular, the nearest-neighbor routing overhead of a non-adjacent CX gate is .
Proof Let the logical CX act on two qubits that are not adjacent in the one-dimensional layout, and suppose that at most 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 intermediate qubits, this requires at most SWAP operations. After the local interaction has been applied, restoring the original qubit ordering requires at most another SWAP operations. Hence the routing stage uses at most
SWAP gates in total.
Now each adjacent SWAP admits the standard three-CX decomposition
so the swaps contribute
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
Therefore the non-adjacent CX overhead is linear in , i.e. . □
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 is the unordered pair of matrix entries encoding a single adjacent CX gate; its set of rows is with . Its original column in the unshifted (that is, before alignment) instruction matrix is defined
, and we write for the top row.
Definition 3 (Row-isolated CX-matrix). A CX-matrix is row-isolated if no two bricks of share both a row and a column. Equivalently, if bricks share a row and then .
Definition 4 (Column extent and depth). The original instruction matrix has columns, indexed from to . 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
The full depth 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 only at columns congruent to (mod 2). Define the parity-aligned base column
The algorithm.
Bricks are processed in order of , with ties broken by prioritizing the top brick, so that when a brick is placed, the bricks already placed on a row are exactly those lying to its left along . Let denote the nearest such left neighbour on row , if one exists, and set
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
with the convention that the empty maximum is , and selects the smallest admissible column
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 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), reads only and for ; no other brick enters, and depends only on . 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
on every shared row 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 , brick lies strictly to the right of , so . If a rotation must occupy a column strictly between them, which forces . Taking the maximum over the rows of gives (A9). □
Lemma 9 (Column bound) Every CX brick satisfies
Proof. We proceed by induction over the processing order. Write . For any left neighbour ,
because requires an original column strictly between the two bricks. By the induction hypothesis,
Taking the maximum over both rows gives whenever a predecessor exists. For , no predecessor exists and . For , we also have . Equation A10 rounds the resulting lower bound to the required parity, adding at most one column. Thus . □
Rotation insertion.
For the full-depth bound, we use the following insertion rule. Consider a single-qubit cell originally in column , and let and be its nearest preceding and following CX bricks on the same row, when present. If occupies original column , place the cell at . Otherwise, if occupies original column , place it at . In all remaining cases, place it at if exists, or at column 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 .
Proof. Suppose first that both neighbouring CX bricks and exist. Since a single-qubit cell lies between them, , and Lemma 8 gives
Both possible destinations, and , therefore lie strictly between the two aligned bricks and contain no CX endpoint on that row.
If only exists, the destination is either or . Both are nonnegative and precede , since . If only exists, the destination is , after the final CX on that row. If neither exists, the destination is .
Within an original gap, all cells are placed immediately after , or at column when is absent, except possibly the last cell, which may be placed immediately before . Their destinations are therefore non-decreasing in original execution order. Composing cells in that order preserves the operation on the row.
Finally, whenever exists,
Whenever exists,
The remaining destination, , satisfies the same bound because . □
Theorem 11 (Global depth bound) Let be a row-isolated instruction matrix with columns. Under the placement and rotation-insertion rules specified above, the aligned matrix satisfies
Proof. Lemma 9 places every CX brick in a column at most . Lemma 10 places every single-qubit cell in a column at most . The full column extent is therefore at most . □
Remark 1 (Tightness) The bound is attained for every . Take 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 , and the separation and parity constraints of (A10) place each subsequent brick two columns later. The final occupied column is , giving while ; the factor of two in Theorem 11 is therefore unavoidable.
Theorem 12 (Optimality under locality) For any feasible placement satisfying Definition 5,
for every brick . Consequently, the algorithm minimizes the extent and, under the fixed rotation-insertion rule of Lemma 10, the full depth.
Proof We proceed by induction over the processing order. Suppose for all previously processed bricks. For each left neighbor , feasibility gives
Thus . Feasibility also requires and the same parity as . Hence is admissible in Equation (35), whose least admissible value is .
The insertion destination of each single-qubit cell is fixed by its original neighbours and is either , , or . Each is a non-decreasing function of the relevant 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 preserves the order of operations on every row, introduces no collisions, respects the brickwork parity constraint, and preserves the circuit operation up to global phase.
Proof Lemma 8 separates consecutive 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 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 is feasible if for every brick :
and ;
on each shared row with an existing left neighbour, ;
earlier placements are not changed when is placed.
It is earliest-feasible if is the least integer satisfying (1)–(2) for each 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 , the column place from (A9)–(A10) is the least meeting (1)–(2).
Proof Condition (2) is exactly by Lemma 8, and (1) is with (mod 2). Equation (A10) returns the least such . □
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 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
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 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.

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.

Figure C5. Example quantum circuit defined in Qiskit.

Figure C6. Decomposed quantum circuit used for the instruction-matrix construction.
| Qubit –Brickwork Column | Group 0 | Group 1 | Group 2 | Group 3 |
| Qubit 0 | rz, rx | cx1c | rz, rx | – |
| Qubit 1 | rx | cx1t | rz, rx, rz | – |
| Qubit 2 | cx0t | – | – | – |
| Qubit 3 | cx0c | rx | cx2c | rz |
| Qubit 4 | rz | – | 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.

Figure C7. Brickwork graph generated by the transpiler from the decomposed circuit.
| Qubit -Brickwork Column | Group 0 | Group 1 | Group 2 | Group 3 | Group 4 |
| Qubit 0 | rz, rx | – | cx1c | rz, rx | – |
| Qubit 1 | rx | – | cx1t | rz, rx, rz | – |
| Qubit 2 | cx0t | – | – | – | – |
| Qubit 3 | cx0c | rx | – | cx2c | rz |
| Qubit 4 | rz | – | – | 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 , 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 ; if the initial decomposition is sub-optimal, so will be our transpilation.
Let be a directed acyclic graph where each node represents a gate with unit execution time, and each edge represents the precedence constraint that gate must finish before gate 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 they are merged into a single brick that implements the combined single-qubit rotation to reduce the final brickwork depth of the algorithm they are embedded within.
Definitions
For each , define its level (or longest-path distance)
| Qubit -Brickwork Column | Group 0 | Group 1 | Group 2 | Group 3 |
| Qubit 0 | – | – | cx1c | – |
| Qubit 1 | – | – | cx1t | – |
| Qubit 2 | cx0t | – | – | – |
| Qubit 3 | cx0c | – | – | 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 through the dependency graph starting at its leftmost column and ending at column , and is the number of nodes in .
The critical path length is
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 executes, at each timestep , all gates whose predecessors have completed by time .
Key properties
Lemma 15 (Feasibility of Levels) Any feasible schedule must execute gate no earlier than time .
Proof By definition of , there exists a path of length ending at . Since gates on a path must be executed sequentially, cannot be scheduled before time .
Lemma 16 (Greedy Completes Levels On Time) For all , after timestep the Greedy schedule has executed exactly the set
Proof by induction. Base case (): iff has no predecessors, so Greedy executes precisely those gates at time 1.
Induction step: Assume the claim holds for timestep . Consider timestep . Any gate with has all predecessors satisfying , hence by induction they are completed by time . Thus Greedy executes all such at time . Conversely, if , then some predecessor requires steps, so cannot yet be executed. Hence the claim holds.
Theorem 17 (Optimality of Greedy) The Greedy schedule completes all gates in exactly timesteps, which is optimal.
Proof We establish optimality using a “greedy stays-ahead” argument. By Lemma 16, after timestep all gates with are completed, which means all are done since for all . Thus Greedy finishes in 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 steps. Therefore Greedy stays ahead and uses the minimum possible timesteps to schedule the graph.
For circuits with different gate-sets than our set 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 denote the set of schedules that (i) respect precedence in the dependency graph and (ii) conform to the brickwork topology (e.g., parity/lattice placement constraints). Let denote the earliest feasible timestep for brick under these two constraints given the already scheduled predecessors.
For now we assume that the alignment procedure places each brick at time , 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 .
Proof. Let be any schedule. If it places some brick earlier than the aligned schedule, then it places before , contradicting Lemma 8. Hence no schedule in finishes earlier.
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 , let denote its original column and let denote its top row. The brickwork pattern admits a CX brick with top row only in columns with matching parity. The parity-aligned base column is therefore
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 touched by a brick , let denote the most recently placed brick on row , if it exists. If no such brick exists, row imposes no lower bound beyond the parity-compatible base column. If exists, then 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 in a column strictly between and , then an additional free column must be reserved so that the rotation can later be inserted without colliding with a CX brick. Equivalently, define
The rotation-aware row-wise constraint is
Taking the maximum of these constraints over the rows of gives the rotation-aware placement floor. The selected placement column is the smallest column that is at least both this floor and , and whose parity matches .
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 is placed, earlier placements are not revised. The placement of is constrained only by the most recently placed brick on each row touched by , 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 for the original column of the brick and for its top row. Bricks are processed in non-decreasing , with stable tie-breaking. The statements below summarize the formal results proved in Appendix § 8.§ 3.
Locality of shifts.
When placing a brick , the selected column depends only on the already placed left-neighbour bricks that share a row with . Bricks on disjoint rows are independent, and no placement is ever revised. Intuition. The placement floor for is computed row-wise based on the nearest already placed brick on each row touched by , together with whether a single-qubit rotation brick must be inserted between the two bricks on that row.
Earliest-feasible placement.
For each brick , 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 , (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 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 on a row , with ,
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 and . The aligned gap is not bounded above by : the placement of 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 at column , on rows at columns –, and on rows at column , the last brick is placed at column , so on row the gap grows from 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 is inherited.
Column bound.
Every CX brick satisfies
and every reinserted single-qubit brick is placed at a column at most (Lemmas 9 and 10). Intuition. By induction over the processing order: each left neighbor has , so the floor is at most ; parity rounding adds at most one column.
Global depth bound.
If is row-isolated and , then the aligned matrix satisfies
and for every row , . 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:
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 is defined as
where
with and denoting the dependency terms on prior measurement outcomes:
Here is the unencrypted adaptive measurement angle, is Alice’s random preparation angle drawn from , and is Alice’s random bit. The dependency corrections and 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 must be evaluated adaptively at measurement time after the relevant prior outcomes are known; the randomization terms and 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 or their explicit numerical values. An example is provided in Figure C8.

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

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 and denote the costs of specified unblinded quantum and classical algorithms, respectively, for a problem of size . For a fixed resource measure, define the privacy overhead factors and through
where and 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
Second, the complete private quantum implementation has strictly better asymptotic scaling when
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 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 denote the gate count over the gate families covered by our brickwork-depth bound, and let denote the logical circuit width. § 3.1 establishes
This bounds brickwork depth. It does not identify as the actual multiplicative overhead in every resource measure.
For a full -row brickwork graph, each brick column expands into four measured graph columns, with one final output column appended. The resource-state size is therefore
There are measured qubits, and the bounded graph degree gives an 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 . Total quantum work instead scales as . 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 and
For the full brickwork graph, this implies
The corresponding logical quantum work is therefore asymptotically sublinear in , subject to the stated inference accounting.
A classical baseline that explicitly scores all candidates has linear dependence on for fixed per-candidate cost. For example, exhaustive dense factorization-machine scoring takes operations for rank and feature dimension . 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 and classical work , then
for some constant and sufficiently large . 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:
Here, is the dimension of the system matrix, its condition number, the maximum number of nonzero entries per row, and the target error in the prepared quantum solution state. Our interest here is how the blind HHL brickwork depth scales with matrix dimension 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 ), and sparse Hermitian matrices with controlled spectral properties.
Tridiagonal Toeplitz matrix
Let be the tridiagonal Toeplitz matrix
In the benchmark case we set and , i.e. . From [67], the eigenvalues of a tridiagonal Toeplitz matrix where the diagonal is and the off diagonal is , are
With , one has and as , so
i.e., the condition number remains constant across system sizes.
Let . The circuit width decomposes as
where the ancilla term is implementation dependent: Qiskit’s TridiagonalToeplitz Hamiltonian simulation uses ancillae, while an explicitly given matrix uses none. In either case as and is fixed. For Figure 5b we therefore keep the phase register at five qubits for every , in line with Eq. (70), using Qiskit’s HHL with exact reciprocal, and ; the resulting width is . For , where the circuit can be simulated, the post-selected output has fidelity at least with the normalized solution . The gate count grows as up to , so the circuit is polylogarithmic in , and Theorem 4 gives , 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 of a graph (with adjacency matrix and degree matrix ). It is symmetric positive semidefinite and its eigenvalues lie in the interval for any simple connected graph; in particular, on connected graphs [68, 69]. To control the condition number for HHL, we add a positive multiple of the identity to the normalized Laplacian:
This shifts every eigenvalue by , making positive definite with eigenvalues in . Its condition number therefore satisfies
For example, choosing gives . Keeping fixed thus bounds the condition number independently of the matrix dimension.
The sparsity of is governed by the graph degree. For graphs of maximum degree , each row has at most nonzero values (neighbors plus the diagonal), so is -sparse with . In the special case (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 system qubits, a constant number of ancillae, and a constant-sized phase register when is bounded and is fixed, the circuit width scales as
Sparse Hermitian matrix
Let be a sparse matrix with density 0.05. We form
which satisfies and is therefore symmetric; for real-valued matrices, symmetry implies Hermitianity (). For numerical stability, we add a diagonal shift while preserving symmetric and Hermitian structure:
with (e.g., chosen so that ). 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 qubits, which grows with . For the Toeplitz matrix, the controlled power then uses Trotter steps, with the base number of steps, and the exact reciprocal acts on all register values, so the circuit carries a factor and, for large , 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 times, so the circuit grows roughly as . 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.

Figure F12. Brickwork depth (green), circuit gate count (orange) and the Theorem 4 reference (dashed) for HHL with Qiskit’s default phase register of qubits, as a function of the matrix dimension : (a) tridiagonal Toeplitz , (b) normalized Laplacian of a random 2-regular graph, (c) and (d) two independently drawn sparse Hermitian matrices (density 0.05) . All circuits use the exact reciprocal and ; 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 , where the sample in (d) happens to synthesize to fewer gates. The brickwork depth stays below the Theorem 4 reference in every panel (constant 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
where is the original circuit width in logical qubits and its gate complexity before decomposition, with each multi-controlled gate counted once. We reserve one additional clean ancilla and write for the implemented width. Throughout this section, denotes the constant defined in Theorem 4. An MCU therefore contributes at most 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 entries requires identifier qubits. With constant feature width and a fixed number of auxiliary qubits, the circuit width therefore satisfies
In the absence of Grover amplification, the gate complexity is dominated by database encoding. Following § 3.3 of [50], the initialization cost satisfies
with the number of database entries11. With constant and , this gives the upper bound , and therefore
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 denote the integer number of amplification rounds. Under the amplification assumptions used here,
where denotes the number of “good” elements subject to amplification.
Retaining the circuit accounting of at most native single-qubit rotations and two MCUs per amplification round, the pre-alignment cost of rounds is bounded by
Applying the alignment factor 2, the amplification stage admits a brickwork implementation satisfying
Since for constant feature width, combining this contribution with the database-encoding and non-amplification costs gives
Since , this yields
and hence
Experimental results supporting this analysis are presented in Figure F13.

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 .
Bounding B-QRS Complexity Without Database Encoding
A not unreasonable scenario is that an organization provides a dataset of size , with feature vectors , already encoded in a Hilbert space spanned by 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 operations the MCU cost bound and count a further native rotations. This also bounds CX operations, since . Including the alignment factor, the QKNN stage admits a brickwork implementation satisfying
For amplification rounds, the corresponding bound is
where .
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
where .
Since is independent of the problem size and , this gives
For constant feature width, , and therefore
Consequently, the inference-only depth satisfies
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 as :
This establishes that the depth of the brickwork graph for this algorithm is asymptotically sublinear in . 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.

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 . 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 .
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 . According to [49], can be decomposed efficiently into four H, two , 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 denote the number of input patches and 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, input patches and features per patch require and qubits, respectively, giving
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
The Compound Transformer acts on the full -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 (at most gates per layer), which gives
This is an asymptotic upper bound on the brickwork depth of the Compound Transformer of [49], loose by up to a factor when layers contain fewer than gates, and it bounds the entire family of blind quantum transformer designs adapted from [49].
References
- [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]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]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]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]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]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]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]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]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]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]Meier, F., Yamasaki, H.: Energy-consumption advantage of quantum computation. PRX Energy 4(2) (2025) https://doi.org/10.1103/prxenergy.4.023008
- [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]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]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]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]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]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]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]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]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]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]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]Morimae, T., Fujii, K.: Blind topological measurement-based quantum computation. Nature Communications 3(1) (2012) https://doi.org/10.1038/ncomms2043
- [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]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]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]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]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]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]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]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]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]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]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]Dawson, C.M., Nielsen, M.A.: The Solovay-Kitaev algorithm. Quantum Information & Computation 6(1), 81–95 (2006) arXiv:quant-ph/0505030DOI
- [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]Danos, V., Kashefi, E., Panangaden, P.: The measurement calculus. J. ACM 54(2), 8 (2007) https://doi.org/10.1145/1219092.1219096
- [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]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]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]Abraham, H., et al.: Qiskit: An open-source framework for quantum computing. Zenodo (2019) https://doi.org/10.5281/zenodo.2562111
- [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]Nielsen, M.A., Chuang, I.L.: Quantum Computation and Quantum Information: 10th Anniversary Edition. Cambridge University Press, Cambridge (2010)
- [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]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]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]Zindorf, B., Bose, S.: Efficient Implementation of Multi-Controlled Quantum Gates. Version 3 (2025). https://arxiv.org/abs/2404.02279v3
- [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]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]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]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]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]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]Pyte: Homomorphic Encryption: Universality at a Cost. Accessed: 2025-02-27 (2023). https://www.pyte.ai/blog/homomorphic-encryption-universality-at-a-cost
- [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]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]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]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]Poshtvan, A., Lapiha, O., Doosti, M., Leichtle, D., Music, L., Kashef, E.: Selectively Blind Quantum Computation (2025). https://arxiv.org/abs/2504.176
- [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]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]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]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]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]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]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]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]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]Chung, F.R.K.: Spectral Graph Theory. Regional Conference Series in Mathematics, vol. 92. Amer. Math. Soc, Providence (1997)
- [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


