System and method for separating a quantum state into multiple subspaces
A modular measurement-based method with quantum entanglement and bitwise iterations addresses inefficiencies in projecting n-qubit states to k-Hamming weight subspaces, achieving efficient and resource-saving quantum state projections.
Patent Information
- Application Number
- GB2024001344
- Authority / Receiving Office
- GB · GB
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-02-01
- Publication Date
- 2025-08-13
AI Technical Summary
Existing methods for projecting an n-qubit state to the k-Hamming weight subspace in quantum computing are inefficient and require extensive resource usage, particularly in terms of qubits and circuit depth.
A modular measurement-based approach using quantum entanglement and bitwise iterations with a variable number of auxiliary qubits to perform projections, allowing for shorter and shallower quantum circuits.
The approach enables efficient projection of quantum states to k-Hamming weight subspaces with reduced resource requirements, improving computational efficiency and noise resistance in near-term quantum computing applications.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
States on n-qubit quantum devices are elements of a 2” dimensional Hilbert space. In many applications of such devices, it is important to prepare and maintain (provide) states which are restricted to subspaces of this Hilbert space. One such family of subspaces is that of the fc-Hamming weight computational basis states (see https: / / en.wikipedia.org / wiki / Hamming_weightforadditional information on Hamming weights). This subspace is particularly important when the states of the n-qubit quantum device are used to represent the behaviour of n discrete physical, logical or geometric objects, for example interacting systems of particles, biomarkers or network nodes. In these cases, the fc-Hamming weight subspace can be used to represent the interactions between k out of n of the objects. For most of these applications, the objects themselves are distinguishable only by their interactions with other objects. For this reason, an important problem in such applications is how to restrict or project an n-qubit state to the fc-Hamming weight subspace, both at the beginning of a computation (in state preparation) and throughout the computation (mid-circuit). These projections allow us to filter the quantum states on the device to focus on ones having a certain Hamming weight or set of Hamming weights. One problem addressed here is how to perform this projection via quantum entanglement, for example using an auxiliary register, followed by measurement. Although known solutions are available for this problem, there is a desire to improve such solutions, for example to improve computational efficiency and / or to provide additional functionality when working with k-Hamming weights. The following papers provide examples of research relating to the technical area described herein (the first two providing an existing solution to the problem of how to perform the above projection). lonicioiu, R., Popescu, A. E., Munro, W. J., and Spiller, T. P. Generalized parity measurements. Phys. Rev. A 78 (Nov 2008), 052326. This paper discloses generalised parity measurements for state preparation Ubaru, S., Akhalwaya, I. Y., Squillante, M. S., Clarkson, K. L., and Horesh, L. Quantum topological data analysis with linear depth and exponential speedup. arXiv:2108.02811 (2021). This paper discloses mid-circuit projections applied to constructing Laplacians. Cruz, D., Fournier, R., Gremion, F., Jeannerot, A., Komagata, K., Tosic, T., Thiesbrummel, J., Chan, C.L., Macris, N., Dupertuis, M.-A. and Javerzac-Galy, C. Efficient Quantum Algorithms for GHZ and W States, and Implementation on the IBM Quantum Computer. Adv. Quantum Technol., 2: 1900015. https: / / doi.org / 10.1002 / qute.201900015 (2019). This paper proposes efficient deterministic algorithms with logarithmic step complexities for the generation of entangled GHZn and Wn states useful for quantum networks. Ismail Yunus Akhalwaya, Shashanka Ubaru, Kenneth L. Clarkson, Mark S. Squillante, Vishnu Jejjala, Yang-Hui He, Kugendran Naidoo, Vasileios Kalantzis, and Lior Horesh. Towards Quantum Advantage on Noisy Quantum Computers. https: / / arxiv.org / abs / 2209.09371 (2022). This paper relates to noisy intermediate-scale quantum topological data analysis (NISQ-TDA) and presents an implemented end-to-end quantum machine learning algorithm needing only a short circuit-depth. Bartschi, A., Eidenbenz, S. (2019). Deterministic Preparation of Dicke States. In: Gqsieniec, L., Jansson, J., Levcopoulos, C. (eds) Fundamentals of Computation Theory. FCT 2019. Lecture Notes in Computer Science, vol 11651. Springer, Cham. https: / / doi.org / 10.1007 / 978-3-030-25027-0_9. A. Bartschi and S. Eidenbenz, "Short-Depth Circuits for Dicke State Preparation," 2022 IEEE International Conference on Quantum Computing and Engineering (QCE), Broomfield, CO, USA, 2022, pp. 87-96, doi: 10.1109 / QCE53715.2022.00027. These two citations above both provide efficient ways of preparing the k-Dicke state on n qubits using a single register. The k-Dicke state is a specific quantum state in the k-Hamming weight space; in particular, the k-Dicke state is the uniform superposition over all computational basis states having Hamming weight k. Summary The invention is defined in the appended claims. A quantum computer system and a method for using such a quantum computer system are disclosed. The quantum computer system comprises a first register and a second register which are used to separate a quantum state into multiple subspaces of a 2" dimensional Hilbert space. The method comprises defining a quantum state comprising 2” elements on the first register, the first register comprising n qubits; defining a quantum state on the second register, the second register comprising one or more qubits; and receiving a value k, where k is a binary integer such that 0 =< k =< n. The method further comprises performing a bit-wise iteration process comprising: (i) performing a quantum entanglement between the first and second registers to separate the quantum state on the first register into distinct subspaces of the Hilbert space which are indexed by the entangled values on the second register, and (ii) measuring an outcome on the second register to find a match with a portion of k, wherein said portion of k increases incrementally with the iteration process until the match is with all of k. The bit-wise iteration process is used to separate the quantum state on the first register into distinct subspaces of the Hilbert space, wherein elements of the distinct subspaces have different Hamming weights and exactly one of the subspaces contains only elements of Hamming weight k. Also disclosed is a method for using a quantum computer system including a quantum circuit comprising a first register and a second register to provide a quantum state representing a subspace of a 2" dimensional Hilbert space, the quantum state having a k Hamming weight. The method comprises defining a quantum state comprising 2" elements on the first register of the quantum circuit, the first register comprising n qubits; defining a quantum state on the second register of the quantum circuit, the second register comprising one or more qubits; and receiving a value k, where k is a binary integer such that 0 =< k =< n. The method further comprises performing a bit-wise iteration, starting at / = 1 corresponding to a least significant bit of k, wherein each iteration comprises: (a) performing a quantum entanglement between the quantum state of the first register and the quantum state of the second register, wherein performing the quantum entanglement includes making a projection of the n qubit state to a subspace U which contains the k Hamming weight subspace; (b) deriving a bit from the quantum entanglement by making a measurement of the second register to realise the projection; (c) determining whether or not the derived bit is equal to the i th bit of k; d) if the derived bit is not equal to the i th bit of k, terminating the method as failing; and (e) if the derived bit is equal to the i th bit of k, incrementing i by one and performing the next iteration, wherein the subspace U converges to the k Hamming weight over the course of the iterations. The method further comprises terminating the bitwise iteration as a success if the derived bit for i = [log (n+1)] is equal to the most significant bit of k, indicative of the system determining a quantum state having a Hamming weight of k. Also provided is a quantum computing system configured to perform the above method. Features of the above methods and systems can be combined in any suitable manner according to the circumstances of a given implementation. Brief Description of the Figures Various examples and implementations of the disclosure will now be described in detail by way of example only with reference to the following figures: Figure 1 provides an example of a quantum circuit diagram giving an overview of the components for?™-1'”1, a single-bit Hamming weight projection. Figure 2A provides an example of a quantum circuit diagram for performing a single bit projection P™-1'”1, where 0 = for a single auxiliary qubit. Figure 2B provides another example of a quantum circuit diagram for performing a single bit projection where e =^. Figure 2B represents a parallel version where all the rotations may be done in depth 2 using an auxiliary register having n / 2 qubits. Figure 2B therefore shows how the circuit may be modified to reduce circuit depth when a larger number of auxiliary qubits are available. Figure 3 provides an example of a quantum circuit diagram for Pk, the full Hamming weight k projection. In particular, Figure 3 shows an overview of how to construct the quantum circuit from components which perform single bit projections. Figure 4 provides an example of a quantum circuit diagram showing an overview of the components for constructing a single bit controlled Hamming weight projection. If b^... are the first / -1 bits of the Hamming weight of qlt q2, ...,qn, then the measurement will return the Ith bit of the Hamming weight. Figure 5 provides an example of a quantum circuit diagram showing an adapted version of the quantum circuit of Figure 4 which, under certain assumptions, returns 0 from a final measurement if and only if the mth bit of the Hamming weight is km. Figure 6 provides an example of a quantum circuit diagram for projecting onto the subspace of states | qt... qm) for which the mth bit of the Hamming weight qj agrees with the m,h bit of k. Figure 7 provides an example of a quantum circuit diagram for projecting onto the subspace of states for which the Ith through mth bits of the Hamming weight agree with those of k. The quantum circuit projects onto the space spanned by states |... qm) where all bits between the Ith bit and the mth bit of 2 qt are the same as those of k. Figures 8A and 8B depict a flowchart which provides an example of a method for obtaining a quantum state having a specified Hamming weight as disclosed herein. The operations shown in Figure 8B repesent details (sub-operations) of one of the operations shown in Figure 8A. Figures 9A-9D are examples of variations on the approach shown in Figures 8A and 8B. In particular, Figure 9A illustrates a variation in which a match is achieved for a subset of the bits of the Hamming weight (rather than for the full Hamming weight). Figures 9B-9D illustrate variations in which Hamming weight bits are not measured in every iteration but may be used instead to control a separate operation. Figure 10 is a schematic diagram showing an example of a quantum computing system for implementing a method for separating a quantum state into multiple subspaces such as disclosed herein, for example to obtain a subspace comprising elements having a specified Hamming weight k. Detailed Description 1. Technical specification of the quantum circuits As disclosed herein, a quantum computer is used to perform projections from a full Hilbert Space on n qubits, (and various different subspaces of this), to the space spanned by computational basis states having Hamming weight k, Wk (and various states made by combining such states). A modular measurement-based procedure is adopted which performs the projections by breaking up the full projection Pk.Mn -* Wk into a series of smaller projections. To this end, the following definitions are adopted: • For any whole number m such that 0 <m <[logn], W™ represents the subspace of Hn spanned by computational basis states whose Hamming weight, k' is congruent to k modulo 2m, i.e. the first m bits of k' match those of k. That is BF = © wk,. k'=k(mod2m) (the © symbol is the symbol for direct product, which is like the union operator for vector spaces). • For m = 0, we adopt the convention that = Mn. • For any whole number m such that 0 <m <[logn], write for the direct sum of spaces W™ for k' = 0,1, ,k - 1. That is k-1 ™<k = © kr = l This defines the space spanned by all states for which the first m bits of their Hamming weight agree with one of 0, 1,2, ...., k-1. • For any whole number m such that 0 <m' <m <[logn], write P™',m for the projection from the space TP™Z to the space TP™. That is, |Y \ (\xi-xn) ifS xi = / c(mod2™) >-0 otherwise. • When m' = 0, write this projection as P™ for the projection from the space W™' to the space TP™, and for any whole number m when m >[logn] we have Pk = P™. • For any k <n, we write P<k for the projection from the full n-qubit Hilbert space Mn to the subspace W<k. We now consider how to construct the quantum circuits for implementing the projections on an n-qubit register using a variable number of qubits from an auxiliary register. We first describe in detail the projection Pk which projects from the full n-qubit Hilbert space to the space spanned by computational basis states whose Hamming weight has the same first bit as k and show how to adapt this projection to perform the relative projections p^1^. We then describe how to assemble the relative projections to form Pk. Here, the ‘relative projections’ correspond to the projections which handle a single bit. They are ‘relative’ in the sense that they perform a certain projection relative to the assumption on the input that the Hamming weights agree with k for the first m-1 bits. Finally, we describe how to add controlled operations to perform the projections P<k. 2. Single bit projection A method is described for performing a single bit projection Pk and this can then act as a model for the other, more complicated, projections. The steps of the method or procedure may be implemented as follows on a main (first) register in combination with an auxiliary (second) register, for example, based on the quantum circuit diagram of Figure 1, which provides an overview of the components fora single-bit Hamming weight projection. 1. Prepare a Greenberger-Horne-Zeilinger (GHZ) state on the auxiliary register. That is a state \GHZa} = ^(|0 ... 0) + |1... 1)). This construction is known (see Cruz et al as cited above) and may be performed in log depth by applying a Hadamard followed by a “fanout” circuit (see Akhalwaya et al as cited above). 2. For each qubit in the main register, a controlled z-rotation gate is applied to the auxiliary register controlled by that qubit. The angle for this rotation may be 6 = and the rotation may be applied to any qubit of the auxiliary register. To minimise gate depth, we cycle through the auxiliary qubits in turn as these controlled rotations are applied. 3. Next, a z-rotation of -k0 is applied to any of the auxiliary qubits. 4. The inverse of the GHZ state preparation circuit is then applied to the auxiliary register. 5. Lastly, the first qubit in the computational basis is measured, and the projection succeeds if the outcome of the measurement is |0). To extend the above approach to the projection p™-1-m we do exactly the same process with 0=^. In particular, Figure 2A shows a quantum circuit for performing a single bit projection where 0 = for a single auxiliary qubit (the top line in Figure 2A). Figure 2B shows an example of a parallel version where all the rotations are performed in depth 2 using n / 2 auxiliary qubits (=4 auxiliary qubits in the particular configuration of Figure 2B). Accordingly, Figures 2A and 2B illustrate how the quantum circuit may be modified to utilise a reduced circuit depth when additional auxiliary qubits are available - such a lower circuit depth allows a smaller quantum circuit to be used which is then more resistant to noise. 3. Bit-wise Hamming weight projection The above relatively simple projections can be assembled to perform (obtain) the full projection Pk. Mathematically, the projection can be written as a product of successive projections, p — pl,2 pO,l — 'k 'k > where m = [lognj. The projection Pk may therefore be performed by successively applying the single bit projections p™-1'"1 for m = 1,... Jlognj. This overall (full) projection succeeds if and only if each of the constituent projections succeeds. This gives the advantage of being able to detect failure of the projection at multiple points in the running of the circuit, thereby leading to a shorter circuit on average. 4. Controlled operations and projecting on arbitrary bits The quantum circuits in the previous two sections perform Hamming weight projections one bit at a time, starting from the lowest bit. In particular, when performing the projection P™’m+1 with a quantum circuit such as described in Figures 2A and 2B, the output of a successful projection is in the space spanned by all computational basis states whose Hamming weights agree with k on the m + 1th bit. To achieve this, the input state must be in the space spanned by all computational basis states whose Hamming weights agree with k on every bit up to the mth bit. Figure 3 provides an example quantum circuit diagram for Pk, the full Hamming weight k projection. This diagram provides an overview of how to construct the quantum circuit from components which perform single bit projections. There are important applications however where we only care about projecting onto the space spanned by states whose Hamming weight agrees with k on the Zth bit alone (without any assumption on the other bits). To this end, we refer to Figure 4 which provides an example of a quantum circuit diagram showing an overview of the components for constructing a single bit controlled Hamming weight projection. If are the first Z-1 bits of the Hamming weight of qvq2, - , qn then the measurement will return the Ith bit of the Hamming weight. Thus in Figure 3, the output is a collection of substates which have (share) a predetermined Hamming weight, whereas in Figure 4, the output is the value of a particular bit in the Hamming weight. Without measurement, this circuit based on Figure 4 is called CP1. If a measurement is performed, this forces the circuit to collapse into one of the two cases which the circuit has separated corresponding to the two possible values of the Ith bit of the Hamming weight; removing the measurement allows us to keep both cases in superposition along with the extra qubit of information which can be used in later computations. The quantum circuit from Figure 4 performs the projection in the main (data or “q”) register onto the space spanned by computational basis states whose Hamming weights agree with the Zth bit of k (as long as the input state is in the space spanned by states \bt ,.. / ?;_1)|0)|g1 ...qn) where blt ...,b^ are the first I - 1 bits of the Hamming weight X ¢,). Note that the controlled phase operations between the "b” register and the auxiliary register may be placed on any qubit of the auxiliary register (the b register, which is also referred to herein as the control register) may be implemented separately from or in combination with the main and / or auxiliary registers). In particular, in some implementations, there may not be I - 1 qubits available in the auxiliary register. However, if there are enough qubits available from the auxiliary register, then the phase gates may be spread out to save depth (and so improve noise resistance). If we remove the measurement from this circuit of Figure 4, it can be seen that after applying this circuit (with 0 = ^) to a state |b)|0)|q) as described above, the first qubit of the auxiliary register will store the Zth bit of the Hamming weight of q and the other qubits of the auxiliary register will be in the state |0). We refer to this circuit as CP1, where C denotes the control from the b register. Note that CP1 has no control register and prepares the first bit of the Hamming weight of the main register - we will call this P1 to indicate the lack of a control register. Figure 5 provides a quantum circuit diagram showing an adapted version of the CP1 circuit which, under certain assumptions, returns 0 from the final measurement if and only if the mth bit of the Hamming weight is km. This circuit is called CP^n. Adapting this construction, the quantum circuit CP^n is formed by setting 9=^ and adding a single Z gate of angle d-----1- 2m-1 / cm)0 before the GHZ^ block, where kt is the ith bit of k. When applied to a computational basis state |b)|0)|q> where blt...,b^ki, ■■■km_1 are the first m - 1 bits of the Hamming weight 2 qit the measurement at the end will yield 0 if and only if the mth bit of the Hamming weight is km, the mth bit of k. A simple adaptation to this circuit (removing the km component of the final Z rotation) results in a measurement which returns the mth bit of the Hamming Weight 2 qt. This variant is used in later examples. We write CP^ for the circuit CP^’1. Figure 6 provides a quantum circuit diagram for projecting onto the subspace of states for which the mth bit of the Hamming weight is the same as that of k. In other words, we can use this modified circuit to construct a projection onto the space spanned by computational basis states whose Hamming weights agree with k on the mth bit. The circuit projects onto the space spanned by states ... qn), assuming that the mth bit of £ qt is the same as that of k. The first m - 1 subcircuits prepare a register containing the first m - 1 bits of the Hamming weight and the final subcircuit and measurement use these to perform the appropriate projection. An extension to the configuration in Figure 6 is shown in Figure 7. Here we combine the bitwise construction in Figure 3 and the conditional construction in Figure 6. This allows us to perform a projection onto Hamming weights where multiple bits (but not all bits) agree with the bits of k. In particular, Figure 7 provides a quantum circuit diagram for projecting onto the subspace of states for which the Ith through mth bits of the Hamming weight agree with those of k. The circuit projects onto the space spanned by states \qt... qn) where all bits between the / th and the mth bit of 2 qt are the same as those of k. For example, if we set k = 0 and m = [Iog2 (n + 1)], this construction performs the projection onto the space spanned by states with Hamming weight strictly less than The block at the end ensures that the auxiliary qubits storing the bits of the first I - 1 bits of the Hamming weight are “uncomputed” to zero. In particular, at the end of the computation, we want to return the auxiliary register to all O’s. Doing this without affecting the state on the data register is called “uncomputing” the auxiliary qubits. This is a standard term in quantum algorithms and is usually performed (as here) by applying the inverse of the series of entangling operations which computed the auxiliary qubits in the first place. It will be appreciated that the present approach may use some known components (e.g. GHZ preparation circuits) but these may be included in a particular method or system to provide bitwise Hamming weight checks as described herein. Accordingly, the present approach supports the determination of Hamming weights in a quantum computing environment and helps to improve / supplement existing implementations. For example, the approach described herein may be performed with smaller and shallower quantum circuits (compared with existing solutions), which is important for near-term applications of quantum computing. The approach described herein generally involves (inter alia) three parts. The first part is the use of a reduced (short)-depth circuit in conjunction with a variable number of auxilliary qubits for performing a single bit projection. This part is implemented with a quantum circuit that performs a projection from the whole Hilbert space on n-qubits to the space spanned by those states whose Hamming weights are either even or odd. In particular, each “computational basis state” has a Hamming weight which is either even or odd. In general, a state may be a superposition of basis states with even or odd Hamming weight. The projections are used to separate this superposition according to information about the Hamming weight of each constituent state. As depicted in Figures 2A and 2B, this bit check may be performed with a short depth using controlled phase gates and GHZ preparation circuits. The depth of this circuit is logarithmic in m, the number of qubits in the second (auxiliary) register, with an additional depth contribution of n / m from the controlled phase gates, thereby giving an overall depth of logn when m is linear in n. The second part of the present approach is a scheme for organising the circuits in Figures 2A and 2B, which perform one bit of the bitwise projections, to determine the full Hamming weight k projection from the full Hilbert space to the space spanned by states of Hamming weight k. As depicted in Figure 3, this is performed in a bitwise manner using logn copies of the single bit projection. The overall depth of this circuit is thus log2n and its modular structure allows for a very efficient use of classical data from the measurements. In particular, a measurement of 1 at any step indicates failure of the projection and thus the circuit can be stopped at this point and repeated if necessary. There are two common different ways to use a projection P in a quantum algorithm. The first is to prepare a desired quantum state P\q> which then gets used in a later quantum computation. Here, repeating until we succeed is involved. The second is when we would like to know what fraction of the input state |g> satisfies the conditions for the projections to succeed. Mathematically this means computing the inner product <q\P\q>. This can be estimated by running the circuit for the projection with input \q> and counting the successes and failures. In this case, the failures are “useful” and we stop when we have enough samples rather than when we achieve a certain outcome (so repetition is not always necessary). In the third part of the present approach, the single bit projection quantum circuit is controlled to perform further projections based on the Hamming weight of an n-qubit state. Figures 6 and 7 show how to perform this adaptation by using the single bit projection modules (without measurements) to prepare additional auxiliary qubits which store some bits of the Hamming Weight. Figures 8A and 8B are flowcharts of a method for providing an example of a quantum state having a specified Hamming weight as disclosed herein - see in particular the above sections: 1. Technical specification of the quantum circuits; 2. Single bit projection; and 3. Bit-wise Hamming weight projection. The operations shown in Figure 8B repesent details (sub-operations) of one of the operations shown in Figure 8A. In the Input operation 810, the main (first / data) register is prepared into an initial state |> that supports various operations being performed on the qubits. In addition, the qubits of the auxiliary (second) register are cleaned (set to zero). The initial value of m is set to 0. Operations 820, 830, 840, 850, 855A and 855B then provide an iteration loop. At the start of the loop, in the Assume operation 820, the state | 0 >is assumed to be an element of W™ which represents the subspace of spanned by computational basis states whose Hamming weight, k', is assumed to be congruent to k modulo 2m, i.e. the first m bits of k’ are assumed to match those of k. The rationale for this assumption is apparent from sections 2. Single bit projection and 3. Bit-wise Hamming weight projection as set out above. In the Separate operation 830, the state | 0 >is separated into a first set of states which do agree with the (m + 1 )th bit of k and a second set of states which do not agree with the (m + 1 )th bit of k. More detail about this separation is provided by Figure 8B as described further below. A measurement is now performed in operation 840 on the first qubit of the auxiliary register; this has the effect of collapsing the system to the first or second set of states. If the measurement selects the set of states which correspond to the (m + 1 )th bit of k, then the method proceeds to operation 850. However, if the measurement selects the set of states which do not correspond to the (m + 1)th bit of k, this represents a failure to find elements of Hamming weight k. In this case the processing continues to operation 849 which indicates a restart of the computation is required to progress. Although such a restart increases the time taken to find elements of Hamming weight k, the bitwise nature of the iteration in Figure 8A allows failed (partial) rejections to be detected relatively quickly. The overall result is the approach of Figure 8A may be more efficient than architectures in which the full set of computations are performed before a failure is detected. A test is made at operation 850 to compare m+1 with [Iog2 (n+1)], the latter representing the number of bits in n. For the initial iterations, m <[Iog2 n], so the output from operation 850 is progressed to operation 855A. In operation 855A, m is incremented and the set of states is now limited to the first or second state from operation 830 according to the measurement 840. It will be appreciated that incrementing m for each iteration allows matching with a greater (increasing) portion of k for each iteration, i.e. matching to a larger number of bits within k. Given this incrementing of m (and assuming a computation restart of operation 849 is avoided), the comparison of operation 850 will eventually produce a match, i.e. m = [logz (n+1)], whereby the analysis for the full bit-length of k is completed. Accordingly, an output is provided at Output operation 855B corresponding to the full projection Pk-.Hn -* Wk broken down into a series of smaller projections, where Wk represents the subspace of spanned by computational basis states having a Hamming weight of k. The operations shown in Figure 8B repesent details (five sub-operations) of the Separate step 850 as shown in Figure 8A. The (sub) operations are shown in the sequence of boxes in the top half of the diagram, and the elliptic shapes below the boxes represent the stored state information on the main and auxiliary registers after the corresponding (sub) operations have been performed. (The reference numerals beneath the elliptical shapes apply to both the boxes above and the elliptical shapes below). The first operation is Input 2, which follows on from the Assume box 820 in Figure 8A. The Input 2 operation 831 may be considered as corresponding to a combination of the Input operation 810 and the Assume box 820 shown in Figure 8A. The Input 2 operation operation 831 is applied during the iterations of Figure 8A (whereas Input 810 is only involved in setting up the iterations). In the Input 2 operation, the state | <t> >on the main (data) register is an element of W™ which represents the subspace of spanned by computational basis states whose Hamming weight, k', is assumed to be congruent to k modulo 2m, i.e. the first m bits of k' are assumed to match those of k. The next operation 832 in Figure 8B is Entangle and produces a quantum entanglement between the auxiliary and main registers. Producing this quantum entanglement involves the preparation of a Greenberger-Horne-Zeilinger (GHZ) state on the auxiliary register. Such a GHZ state may be obtained in log depth by applying a Hadamard followed by a “fan-out” circuit. Operation 833, Count, is performed in relation to both the main and auxiliary registers. This operation involves loading the first m+1 bits of the Hamming weight in the data (main) register into the phase of the GHZ state on the auxiliary register, see also the elliptical shape contents 833. In operation Adjust 834, the states in the auxiliary register are rotated by -kn / 2m', the motivation of this rotation is to arrange the qubits in the auxiliary register to have possible phases of 0 and it, which supports ready access to the state information held in the auxiliary register. In the final operation of Figure 8B, Disentangle 835, a fan-in circuit, is used to reverse the GHZ state preparation to turn the phases into measurable binary output. As indicated above, the operations of Figure 8B correspond to the Separate operation 830 of Figure 8A. Accordingly, following the (sub)operation of Distentangle 835, we return from Figure 8B to the Measure operation 840 of Figure 8A, which performs a measurement to collapse the first auxiliary qubit as discussed above. Figures 9A-9D are examples of different variations on the approach shown in Figures 8A and 8B. In particular, Figure 9A illustrates a variation in which a match is achieved for a subset of the bits of the Hamming weight (rather than for the full Hamming weight). Figures 9B-9D illustrate variations in which Hamming weight bits are not measured in every iteration but may be used instead for controlling a separate operation. Figure 9A is a flowchart providing a subset of the k bits of the full Hamming weight; for example, the subset (portion) may comprise bits in the range It will be appreciated that many aspects of the processing shown in Figure 9A match processing in Figure 8A as indicated by corresponding reference numerals (810, 910; 820, 920, etc). For conciseness, the discussion of Figure 9A will therefore focus on those aspects of the processing that is different compared with Figure 8A. The Input section in Input 810 sets the value of m to 0 corresponding to the initial (least significant) bit of k. With this start, the process of Figure 8A results in a determination of all the bits of k. In contrast, in Figure 9A, Input operation 910 sets the value of m to represent the start of the bit range of interest to the user (with respect to the full length of Hamming weight k). Processing in Figure 9A then proceeds via the Assume 920 box, the Separate box 930, and the Measure box 940 - these operations generally correspond to the operations with the same name in Figure 8A and so will not be discussed further. (The same applies with respect to the additional processing of Figure 8B, given that this additional processing represents part of the Separate box as discussed above). The processing of Figure 9A at operation 950 then diverges again from that of Figure 8A at operation 850. In particular, in Figure 8A the testing determines whether the last bit of the k-Hamming weight has been reached. In contrast, in Figure 9A the testing 950 determines whether the highest bit of interest (m’) has been reached (rather than the last bit of k). If the last bit to be tested (according to the appropriate test of 850 or 950) has not been reached, the processing increments m at operation 855A, 955A fand progresses to the next iteration. Operation 955A is generally the same as operation 855A, hence the description above with respect to operation 855A can also be generally applied to operation 955A. However, if the test 850 / 950 indicates that the last bit to be tested has been reached, the processing exits via the Output box of 855B, 955B respectively. Note that whereas the Output 855B spans the full bit range of the k Hamming weight, the projection of the Output 955B is limited to the portion of k corresponding to the specified bit range from m to m’. This processing of Figure 9A demonstrates that the processing may be started and stopped at bit indexes other than 0 and [log n], thereby giving partial Hamming weight projections according to user specifications. Figures 9B-9D relate to a system such as depicted in Figure 4 and Figure 5. In such a system, there is no measurement (observation) for every Hamming weight bit which is produced; instead at least some of the bits may be re-used as a ‘controlled separate operation’. Figure 4 provides an example of a quantum circuit diagram showing an overview of the components for constructing a single bit controlled Hamming weight projection. If b^,...,6(1are the first / -1 bits of the Hamming weight of q1,q2, -, qn, then the measurement will return the Ith bit of the Hamming weight. Without measurement, this quantum circuit is called CP1. The quantum circuit from Figure 4 performs the projection in the main “q” register for the space spanned by computational basis states whose Hamming weights agree with the / th bit of k (as long as the input state is in the space spanned by states ... bi_1>|0>|<71 ...qn) where blt ...,bi^1 are the first I - 1 bits of the Hamming weighty qt). Figure 9B commences with an Input operation 931 which involves preparation of the state | ¢) >on the main (data) register (analogous to Inbox operation 810 of Figure 8A). The Input operation 931 further includes cleaning (zeroing) the auxiliary bits on the auxiliary register (again analogous to Inbox operation 810 of Figure 8A). The Input operation 931 further includes cleaning (zeroing) the control register. The control register may be implemented by any suitable / available element in the quantum computing system. The Input operation 931 further sets m to 0. In the Assume operation 942, a computational basis state |b>10)|q) is assumed in which blt ....b^^ki, ...km correspond to the first m bits of the Hamming weight X qt. In the C-Separate box 943 (for controlled separation), a computation is made of the (m+1),h bit of the Hamming weight. Box 944 then performs a test 944 to determine whether m <I -1. Further information about the C-Separate box (operation) is provided below in Figure 9D. If the test of box 944 is posiive, we proceed to the Rearrange box 947, whereupon the computed qubit is moved to the control register. The value of m is now incremented, and we return to the Assume box 942 for the next iteration. On the other hand, if the test 944 is negative, processing flows through to the Measure Box 945, which measures the (m+1)th bit of the Hamming weight as determined at operation 943. If this measured value disagrees with / Qwi, corresponding to option 949, then the computation must be restarted (analogous to the outcome 849 in Figure 8A). However, if the (m+1)th bit of the Hamming weight agrees with k^-i, processing is directed to Test 946, which determines if m = u-1. If the deterination is negative, the value of m is now incremented, and we return to the Assume box 942 for the next iteration. Alternatively, if the determination is positive, we progress to the Output box 948, where the state | >may be output subject to agreement between the Hamming weight and k between the / th and uth bits. It can be seen that there are various parallels between the processing of Figure 9B compared with the processing of Figure 8A. Thus Figure 8A has a sequence of Input, Assume, Separate, Measure, and then loop or Output. Figure 9B also has a sequence of Input, Assume, Separate, Measure and then loop or Output. However, in Figure 9B the Separate box is for a controlled Separate and there is an additional iteration path involving Test 944 and the Rearrange box 947. Figure 90 provides an illustrative example of 3 rounds (iterations) of C-Separate 943 and Rearrange 947 such as shown in Figure 9B. It can be seen that for each iteration, the projection of the state | ¢) >becomes increasingly specific but also complex with more terms. Figure 9D is a more detailed representation of the C-Separate box 943 from Figure 9B (in a similar manner to Figure 8B representing a more detailed view of the Separate box from Figure 8A). In particular, Figure 9D depicts the process for performing the projection onto the subspace of states whose Hamming weights agree with k on each of the bits between the 7 th and uth (inclusive). As shown in Figure 9D, the C-Separate box 943 from Figure 9B comprises an Input 2 box 981 (distinct from the Input box 931 in Figure 9B), an Entangle operation 982, a Count operation 983, an Adjust operation 984 and a Disentangle operation 985. Accordingly, the sequence of operations in Figure 9D generally matches the Input 2, Entangle, Count, Adjust and Disentangle operations shown in Figure 8B. The Input 2 box 981 in Figure 9D includes cleaning (zeroing) the qubits on the auxiliary register, as for the Input 2 box 831 in Figure 8B. However, Input 2 box 981 in Figure 9D also has entangled data (main) and control registers (which is not the case in Figure 8B). The Entangle operation 982 in Figure 9D matches the Entangle operation 832 in Figure 8B as described above. Likewise, the Count operation 983 in Figure 9D matches the Count operation 833 in Figure 8B as described above, with both of these operations 833 and 983 involving the main (data) and auxiliary registers. In particular, Count operation 983 involves, for both data and auxiliary registers, loading the first m + 1 of the Hamming weight in the data register into the phase of the GHZ state on the auxiliary register. The auxiliary and control registers are rotated at Adjust operation 984 so that the possible phases are 0 and tt, which is generally the same as the Adjust operation 834 in Figure 8B. In more detail, for each state in the data register of Figure 9D, the corresponding phase on the auxiliary register is rotated using controlled rotations from the control register, which ensure the possible phases are 0 and tt as mentioned above. Lastly, the Disentangle operation 985 in Figure 9D has some overlap with the Disentangle operation 835 in Figure 8B. In particular, both of these operations are performed on the auxiliary register and utilise a fan-in circuit to reverse the GHZ state preparation and turn phases into measurable binary output. In the particular case of the Disentangle operation 985 of Figure 9D, the phases are turned into a single bit representing the (m+ 7)th bit of the values on the data register. Figure 10 is a schematic diagram showing a potential implementation of a quantum computing system such as for implementing a method for preparing or maintaining a quantum state having a specified Hamming weight as disclosed herein. The computing system of Figure 10 comprises two components, a classical computing system 210 and a quantum computer system 250. The classical computing system 210 may comprise a known form of digital computer(s) including one or more processors for executing program instructions and memory for storing the program instructions and data. Note that in some cases, the quantum computer system 250 may be provided by an emulation of a quantum computing system running on (provided by) a classical computer system. Such emulation may be used, for example, when developing a program for use on a quantum computing system, to allow testing of the program in a noise-free environment. The classical computing system 210 is shown as including two facilities a compiler 220 and a control facility 225. These two facilities are shown for convenience as located on a single classical computing system 210, but they could be provided on two separate classical computing systems if so desired. The compiler 220 is responsible for taking as input program (software) instructions and implementing the instructions on the quantum computer. The control facility 225 provides a facility for a user to control the operation of programs on the quantum computing system 250. For example, the control facility 225 may allow a user to specify settings for the program which are then applied during execution of the program. The control facility 225 may also be used to manage various interoperations between the classical computing system 210 and the quantum computing system 250, for example, transferring a compiled quantum circuit (program) to the quantum computing system 250 for execution. The quantum computing system 250 includes a quantum circuit 260, which is configured to interact directly with the hardware of the quantum computing system, for example to create and manipulate qubits 255. The quantum computing system 250 further includes various gates 256 for performing operations on the qubits 255. The quantum circuit 260 can be considered as somewhat analogous to a compiled program (low-level code) which has been adapted to run on the specific hardware implementation of the quantum computer, such as reflecting the number and connectivity of the qubits and gates 255 available on the quantum computer. The quantum computing system 250 of Figure 10 further includes first (main) and second (auxiliary) registers 281,282 for storing qubits between performing operations with gates 256. Although the first and second registers 281,282 are shown separately in Figure 9, they may be implemented (for example) using a single register having a first portion corresponding to the first register 281 and a second portion corresponding to the second register 282. More generally, it will be appreciated that the configuration and architecture shown in Figure 9 is provided by way of illustration and not by way of limitation and hence the approach described herein may be implemented on many different types of quantum computing systems or platforms. The approach described herein for determining Hamming weights introduces a sequential bitwise projection whose components are simpler quantum circuits than those used, for example, in existing implementations in this field. Further, the overall size of the whole sequence is less than for such existing implementations. Compared with such existing implementations, the approach described herein also allows the use of a (much) simpler circuit when a weaker projection is desired (compared with a projection from the full Hilbert space to the desired k-Hamming weight space). By way of example, we may know that an input state (on 16 qubits say) is a superposition of states of Hamming weight 1, 2, 3, 4, 5 or 6 for example and we want to project onto the part of this state with Hamming weight 4. In general, a state on 16 qubits can have Hamming weight from 0 to 16 and the number 16 has 5 bits in binary. However, in the situation above, and adopting the approach described herein, the possible Hamming weights only go up to 6 (which has 3 bits). The bitwise projection would then only need to run its loop 3 times (rather than 5 times) to achieve the correct projections. In the nonbitwise Hamming weight projections, such a saving is not possible in the same way. Accordingly, compared to existing implementations for generalised parity measurements, the approach described herein helps to remove the reliance on qubits (which are physically hard to produce and manipulate). In addition, the approach described herein removes reliance on performing a quantum Fourier transform. Such a quantum Fourier transform may be used for performing topological data analysis (TDA) on a noisy intermediate-scale quantum (NISQ) device, but scales unfavourably in terms of size and noise-robustness scales at large values of k. More generally, the approach described herein helps to reduce circuit sizes for certain existing computations, such as computing a k-dimensional Laplacian. The approach described herein presents (inter alia) two significant developments in determining Hamming weight projections. The first is that the projection is done without preparing a new register containing the entire Hamming weight, which is typically performed using existing techniques, see (i) the generalised parity measurements of lonicioiu et al. and (ii) the direct computation of Akhalwaya et al. (both as cited above). This difference is significant because these previous methods require an auxiliary register which grows with the number of qubits in the main register, whereas the approach described herein may use only 1 or 2 qubits in the auxiliary register. The present approach also has the flexibility to use additional auxiliary qubits (or indeed qudits) if such resources are available. As presented herein, every additional auxiliary qubit shortens the circuits by a constant factor. The second development is the adaptable use of different rounds in the bitwise construction. In previous work such as mentioned above, the projections onto Hamming weight states are done in a single shot, usually consisting of a measurement with n outcomes. In contrast, the approach disclosed herein uses a sequence of logn measurements each having 2 outcomes. This distinction has (at least) two important advantages over the one-shot approach based on a single measurement with n outcomes. Firstly, the sequence of measurements allows us to detect most projection failures without running the entire circuit. For problems such as probabilistic quantum state preparation, this means that we can detect and restart failed preparations much earlier, thereby leading to an overall quicker preparation of states. Secondly, in the present approach, certain rounds of measurement may be omitted. In effect, this allows a measurement to be made which is targeted at only certain bits of the Hamming weight. This adaptability helps to save resources in situations where the full Hamming weight projection is not required. For example, in a situation in which the states on a quantum computer are used to represent superpositions over arrangements of a fixed number of particles, a quantum circuit may be applied which simulates some rounds of adding and removing particles in this system. If we then want to project to those states which have a particular number of states remaining it will frequently be the case that we know the states after this process will have a number of particles in some small range. By applying a few rounds of the bitwise projection, the Hamming weights of the output states can be distinguished without using the full Hamming weight projection. Other advantages of the approach described herein are that the bitwise Hamming weight projection retains the flexibility that full computation has of making a projection onto a union of Hamming weight subspaces. In addition, quantum circuits such as those used for the Laplacian contain guarantees that the mid-circuit states don’t stray too far from the desired subspace and so involve only the simpler projections which can be achieved by the bitwise formulation. In conclusion, various implementations and examples have been disclosed herein. It will be appreciated that these implementations and examples are not intended to be exhaustive, and the skilled person will be aware of many potential variations and modifications of these implementations and examples that fall within the scope of the present disclosure. It will also be understood that features of particular implementations and examples can typically be incorporated into other implementations and examples (unless the context clearly indicates to the contrary). In summary, the various implementations and examples herein are disclosed by way of illustration rather than limitation, and the scope of the present invention is defined in the appended claims.
Claims
1. A method for using a quantum computer system comprising a first register and a second register to separate a quantum state into multiple subspaces of a 2" dimensional Hilbert space, the method comprising:defining a quantum state comprising 2" elements on the first register, the first register comprising n qubits;defining a quantum state on the second register, the second register comprising one or more qubits;receiving a value k, where k is a binary integer such that 0 =< k =< n;performing a bit-wise iteration process comprising: (i) performing a quantum entanglement between the first and second registers to separate the quantum state on the first register into distinct subspaces of the Hilbert space which are indexed by the entangled values on the second register, and (ii) measuring an outcome on the second register to find a match with a portion of k, wherein said portion of k increases incrementally with the iteration process until the match is with all of k,whereby the bit-wise iteration is used to separate the quantum state on the first register into distinct subspaces of the Hilbert space, wherein elements of the distinct subspaces have different Hamming weights and exactly one of the subspaces contains only elements of Hamming weight k.
2. The method of claim 1, further comprising using the quantum computer system to perform projections from the 2n dimensional Hilbert Space on n qubits, Hn, to the space spanned by computational basis states having Hamming weight k, Wk.
3. The method of claim 2, further comprising utilising a modular measurement-based procedure to perform the projections by breaking up the full projection Pk:Mn -> into a series of smaller projections.
4. The method of claim 3, wherein the full projection Pk. -> Wk is determined by generating (i) an initial projection P^ which projects from Hn to the space spanned by computational basis states whose Hamming weight has the same first bit as k, (ii) a sequence of relative projections p™-1’"1 for the mth bit of k for m = 2 to n, which projects from Hn to the space spanned by computational basis states whose Hamming weight has the same mth bit as k, given that the Hamming weights agree with k for the first m-1 bits.
5. The method of claim 4, further comprising assembling the initial projection Pk and the sequence of relative projections to form the full projection, Pk.
6. The method of claim 4 or 5, further comprising, for the initial projection, the steps of: a Step 1 of preparing on the second register a Greenberger-Horne-Zeilinger (GHZ) state, namely \GHZa) = ^(|0 ...0) + |1... 1»;a Step 2 of applying, for each qubit in the first register, a controlled z-rotation gate providing a fixed angle 9 to the second register controlled by that qubit;a Step 3 of applying a z-rotation of -k9 to any of the qubits of the second register;a Step 4 of applying the inverse of the GHZ state preparation circuit to the second register;a Step 5 of measuring the first qubit in the computational basis, wherein the projection succeeds if the outcome of the measurement is |0).
7. The method of claim 6, further comprising at least one of:applying at Step 1 a Hadamard followed by a “fan-out” circuit which may be performed in log depth;applying at Step 2 a rotation of 9 = | to any qubit of the second register; and / or cycling at Step 2 through the auxiliary qubits in turn as the controlled rotations are applied to minimise gate depth.
8. The method of any of claims 4 to 7, wherein the output of a successful relative projection performed on an input state is in the space spanned by all computational basis states whose Hamming weights agree with kon the m+1th bit, wherein the input state must be in the space spanned by all computational basis states whose Hamming weights agree with k on every bit up to the m th bit.
9. The method of any of claims 6 to 8, wherein generating the relative projections jnc|uc|es applying the same process as for the initial projection but with 9 = for Step 2.TT10. The method of claim 9, further comprising the use of a parallel version for 9 = — in which all rotations are performed in depth [nlf\ with any whole number t of bits in the second register, where (1 <t <ri).
11. The method of claim 10, wherein the parallel version is implemented for 9 = with all rotations being performed in depth 2 using n / 2 auxiliary qubits.
12. The method of any of claims 3 to 11, wherein the full projection is implemented as a product of successive projections by successively applying the single bit projections:Pfc = P™-1'm for m = 1,..., [logn]_ pm-l,m _ pl,2 . pQ.l where m = pQg^wherein the full projection Pk succeeds if and only if each of the constituent projections succeeds.
13. The method of claim 12, wherein the method is configured to detect failure of the projection at multiple points in the running of the quantum circuit leading to a shorter circuit on average.
14. The method of claim 13, further comprising responding to a detected failure of the projection by resetting the quantum computing system to restart the method from the beginning.
15. The method of any preceding claim, wherein intermediate information generated while performing the bit-wise iteration process is stored in the phase of the second register and not in the bits of the second register.
16. The method of any preceding claim, wherein the method is configured to project onto the space spanned by states whose Hamming weight agrees with k on the I th bit alone without any assumption on the other bits.
17. The method of any preceding claim, wherein the method is adopted to:(i) prepare a desired quantum state for use in a later quantum computation, whereby repetition is performed until the desired quantum state has been successfully achieved;and / or(ii) determine what fraction of an input state satisfies conditions for projections to succeed by repeated running of a circuit for the projections and counting the successes and failures until enough samples have been achieved to allow the fraction to be determined.
18. The method of any preceding claim, wherein a single bit projection quantum circuit is controlled to perform further projections based on the Hamming weight of an n-qubit state, such as by using single bit projection modules without measurement to prepare additional auxiliary qubits which store some bits of the Hamming weight.
19. The method of any preceding claim, wherein the second register comprises 1 or 2 qubits.
20. The method of any preceding claim, further comprising omitting one or more rounds of measurement during the iterative process, thereby allowing a measurement to be made which is targeted at only certain bits of the Hamming weight.
21. The method of any preceding claim, the method including:defining a quantum state comprising 2" elements on the first register of the quantum circuit, the first register comprising n qubits;defining a quantum state on the second register of the quantum circuit, the second register comprising one or more qubits;receiving a value k, where k is a binary integer such that 0 =< k =< n;performing a bit-wise iteration, starting at / =1 corresponding to a least significant bit of k, wherein each iteration comprises:(a) performing a quantum entanglement between the quantum state of the first register and the quantum state of the second register, wherein performing the quantum entanglement includes making a projection of the n qubit state to a subspace U which contains the k Hamming weight subspace;(b) deriving a bit from the quantum entanglement by making a measurement of the second register to realise the projection;(c) determining whether or not the derived bit is equal to the i th bit of k;(d) if the derived bit is not equal to the i th bit of k, terminating the method as failing; and(e) if the derived bit is equal to the i th bit of k, incrementing i by one and performing the next iteration, wherein the subspace U converges to the k Hamming weight over the course of the iterations;and terminating the bit-wise iteration as a success if the derived bit for i = [log (n+1)] is equal to the most significant bit of k, indicative of the system determining a quantum state having a Hamming weight of k.
22. A method of using a quantum computer system having a first register providing n qubits and a second register, the method performing a projection from a 2n dimensional Hilbert Space on n qubits by:a step of preparing on the second register a Greenberger-Horne-Zeilinger (GHZ) state, namely \GHZa) = ^(|0 ...0) + |1... 1»;a step of applying, for each qubit in the first register, a controlled z-rotation gate to the second register controlled by that qubit;a step of applying a rotation of 0 = -ke to any of the qubits of the second register;a step of applying the inverse of the GHZ state preparation circuit to the second register; anda step of measuring the first qubit in the computational basis, wherein the projection succeeds if the outcome of the measurement is |0).
23. A quantum computing system configured to perform the method of any preceding claim.
Citation Information
Cited By
A method and apparatus for performing a projection of a quantum state onto a subspace
WO2025229351A1
A method and apparatus for performing a projection of a quantum state onto a subspace
WO2025229352A1