A method for efficient implementation of unitary operations in Clifford algebras as quantum circuits
Patent Information
- Application Number
- JP2023566645
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-04-29
- Filing Date
- 2021-10-05
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-10-05
AI Technical Summary
Classical computational deterministic sampling is computationally expensive due to the complexity of calculating determinants, especially for large dimensions, and existing methods are inefficient for practical applications.
A logarithmic depth construction of quantum circuits called Clifford loaders is developed, optimized for the number of qubits, depth, and types of gates, which efficiently represent classical data as quantum states using Clifford algebra, enabling applications in quantum linear algebra and machine learning.
The Clifford loader circuits provide a quantum algorithm with a circuit depth of O(dlogN) for deterministic sampling, outperforming classical methods significantly, especially for large dimensions, and are applicable in quantum machine learning and topological data analysis.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure is in the field of quantum algorithms and quantum linear algebra. In particular, it provides a logarithmic depth construction of quantum circuits called Clifford Loader. The present disclosure is also in the field of quantum machine learning. In particular, it provides an application of Clifford Loader circuits to quantum machine learning. [Background technology]
[0002] Deterministic sampling on a classical computer scales the determinism of a single d-dimensional matrix in O(d 3 ) to compute a single determinant. In theory, it is computationally expensive to compute a single determinant in O(d 2.37 ), but these can only outperform standard methods for very large d due to their large constant factor overhead. Furthermore, most classical determinant sampling algorithms need to compute several determinants, which leads to even higher computational demands. Summary of the Invention
[0003] This disclosure presents a log-depth construction of quantum circuits, called Clifford loaders, which perform certain unitary operations in the Clifford algebra and have applications in quantum linear algebra and quantum machine learning. The constructed circuits are optimized with respect to the number of qubits, the quantum circuit depth, and the types of gates in the circuit.
[0004] Quantum machine learning and linear algebra algorithms may rely on the ability to represent classical data as quantum states in order to use quantum procedures for linear algebra tasks. This disclosure provides a procedure to efficiently represent a subspace spanned by a k-vector as a quantum state using a Clifford loader. Disclosed embodiments have applications to quantum machine learning, e.g., for tasks of determinantal sampling and topological data analysis, and to quantum linear algebra, e.g., for convexity and solving low-dimensional linear systems.
[0005] Some embodiments relate to quantum circuits for implementation by a quantum computer, the quantum computer comprising at least N qubits, q n The quantum circuit includes first and second branch circuits and a gadget circuit. The first branch circuit generates a quantum bit q following the implementation of the first branch circuit. 2 The value of q is the quantum bit 2 -q N / 2 The N / 2 quantum bits q 1 -q N / 2 The second branch circuitry is arranged to execute simultaneously with the first branch circuitry and includes a quantum gate applied to N / 2 qubits q (N / 2+1) -q N The gadget circuit is arranged to execute after the first and second branch circuits. The gadget circuit applies a quantum gate to the qubit q 1 ,q 2 ,q (N / 2+1) Here, one of the quantum gates in the gadget circuit is the BS(θ) gate. The BS(θ) gate is a single parameterized two-qubit quantum gate. The qubit q 2 If the value of is 0, the gadget circuit connects the BS(θ) gate to the qubit q 1 and q (N / 2+1) Apply to the quantum bit q 2 If the value of is 1, the gadget circuit instead transfers the conjugate of the BS(θ) gate to the qubit q 1 and q (N / 2+1) Applies to.
[0006] In some embodiments, the first branch circuit includes a third branch circuit, a fourth branch circuit, and a second gadget circuit. The third branch circuit is configured to generate a quantum bit q following execution of the third branch circuit. 2 The value of q 2 -q N / 4 The N / 4 quantum bits q 1 -q N / 4 The fourth branch circuit is configured to be executed simultaneously with respect to the third branch circuit, and includes a quantum gate applied to N / 4 qubits q(N / 4+1) -q N / 2 The second gadget circuit is placed after the third and fourth branch circuits. The second gadget circuit is placed after the qubit q 1 , q 2 , and q (N / 4+1) where one of the quantum gates of the second gadget circuit is a second BS(θ) gate. 2 If the value of is 0, the second BS(θ) gate 1 and q (N / 4+1) applied to the qubit q 2 If the value of is 1, the conjugate of the second BS(θ) gate is the qubit q 1 and q (N / 4+1) applies to.
[0007] In some embodiments, the quantum circuit further comprises a qubit q after the gadget circuit. 1 In some embodiments, the quantum circuit further includes a second gadget circuit after the X gate. The second gadget circuit applies qubit q 1 , q 2 , and q (N / 2+1) where one of the quantum gates of the second gadget circuit is a second BS(θ) gate. 2 If the value of is 0, then the qubit q 1 and q (N / 2+1) The conjugate BS(θ) gate is applied to qubit q 2 If the value of is 1, then the qubit q 1 and q (N / 2+1) A BS(θ) gate is applied to the N / 2 qubit q. In some embodiments, the quantum circuit further includes a third branch circuit after the second gadget circuit. The third branch circuit 1 -q N / 2where the quantum gates in the third branch circuit correspond to the quantum gates in the first branch circuit arranged in reverse order except for the quantum gates in the third branch circuit, and the BS(θ) gates are coupled. In some embodiments, the quantum circuit further includes a fourth branch circuit configured to run simultaneously with the third branch circuit. The fourth branch circuit applies a quantum gate to N / 2 qubits q (N / 2+1) -q N Here, the quantum gates in the second branch circuit, excluding the quantum gates in the fourth branch circuit, are arranged in reverse order, and the BS(θ) gates are combined.
[0008] In some embodiments, the quantum circuit may include a second BS(θ) gate connected to qubit q 1 and q 2 and apply the third BS(θ) gate to the qubit q 3 and q 4 and the first CZ gate is applied to the qubit q 1 and q 2 a second layer applying a CZ gate to the qubit q, where the CZ gate is a controlled Z gate; and a fourth BS(θ) gate to the qubit q. 1 and q 3 and a second CZ gate to the qubit q 1 and q 2 and apply the first CX gate to qubit q 3 and q 4 a fourth layer applying a second CX gate to a qubit q, the CX gate being a controlled X gate; 2 and q 3 and a fifth layer applied to the
[0009] In some embodiments, the gadget branch circuit connects the first CZ gate to qubit q 1 and q 2 a first layer applying a BS(θ) gate to a qubit q 1 and q (N / 2+1)and a second CZ gate applied to the qubit q 1 and q 2 and a third layer applied to the
[0010] Some embodiments relate to a method of implementing a quantum circuit on a quantum computer. Note that the following circuit includes a nested subcircuit. The quantum circuit has at least N qubits, q n Quantum circuits include N=2 K and N qubits q, where K ≥ 2 n and K recursive circuit levels K=1 to K. Each circuit level k is (N / 2 k ) level k circuits, each of which has a qubit q n 2 k The two quantum gates for each level k circuit are k Each level-1 circuit includes a first qubit and a second qubit for its level-K circuit. n a BS gate applied to two of the level-1 and level-2 circuits, one of the two qubits being a first qubit of the level-1 circuit and the other of the two qubits being the second qubit of the level-1 circuit. Each level k circuit, for K≧2, includes one of the level (k-1) circuits as a first branch circuit and the other of the level (k-1) circuits as a second branch circuit, and a gadget circuit including a BS gate. If the value of the second qubit of the first branch circuit is 0, the BS gate is applied to the first qubit of the first branch circuit and the first qubit of the second branch circuit. If the value of the second qubit of the first branch circuit is 1, the conjugate of the BS gate is applied to the first qubit of the first branch circuit and the first qubit of the second branch circuit.
[0011] Some embodiments relate to quantum circuits for implementation by a quantum computer, the quantum computer comprising at least N qubits, q nThe circuit includes a set of N-1 layers and an additional layer. The set of N-1 layers is used to generate N qubits, q n sequentially apply N-1 BS gates to each qubit. Each BS gate is a single parameterized 2-qubit gate. Each layer applies a BS gate to two qubits, and each subsequent layer applies a BS gate to one of the layer's two qubits and a new qubit. An additional layer follows the set of N-1 layers and applies an X gate to one of the qubits.
[0012] In some embodiments, the new qubit in each subsequent layer is a qubit to which the previous layer has not applied a BS gate.
[0013] In some embodiments, an X gate is applied to the new qubit in the N-1th layer.
[0014] In some embodiments, the quantum circuit further includes a second set of N-1 layers after the additional layers, where the second set of N-1 layers applies N-1 BS gates to the N qubits, with each layer applying a BS gate to two qubits and each subsequent layer applying a BS gate to one of the layer's two qubits and the new qubit. In some embodiments, the BS gates are conjugate gates corresponding to the BS gates in the second N-1 layers of the N-1 set.
[0015] Other aspects include components, devices, systems, improvements, methods, processes, applications, computer readable storage media, and other technology related to any of the above. [Brief description of the drawings]
[0016] The disclosed embodiments designated as Clifford Loader have other advantages and features more readily apparent from the following detailed description and claims, when taken in conjunction with the accompanying illustrative drawings, in which:
[0017] Each vector x = (x1 ,x 2 ,...,x N The Clifford loader is parameterized by a single vector of dimension N such that for every x, there exists a corresponding Clifford loader which we designate as C(x).
[0018] [Figure 1] FIG. 1 illustrates a quantum circuit used to implement a Clifford Loader for a given vector in 8 dimensions using a single parameterized two qubit gate (called “BS”) and two qubit controlled X and controlled Z gates, according to a first embodiment. [Diagram 2] FIG. 2 shows a quantum circuit implementing a Clifford loader for a given 8-dimensional vector, BS gate, according to a second embodiment. [Figure 3A] 3A and 3B show quantum circuits used to implement a Clifford Loader for a given vector of 16 dimensions using a single parameterized two qubit gate (called "BS") and two qubit controlled X and controlled Z gates in accordance with a first embodiment. [Figure 3B] 3A and 3B show quantum circuits used to implement a Clifford Loader for a given vector of 16 dimensions using a single parameterized two qubit gate (called "BS") and two qubit controlled X and controlled Z gates in accordance with a first embodiment.
[0019] The figures show various embodiments for illustrative purposes only. Those skilled in the art will readily recognize from the following description that alternative embodiments of the structures and methods shown herein can be employed without departing from the principles described herein. For example, modifying certain of the BS gates or using a different / less optimized method to perform parity calculations using the control of the Z gates. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] The figures and the following description relate to preferred embodiments for purposes of illustration only. It should be noted from the following description that alternative embodiments of the structures and methods disclosed herein are readily recognizable as viable alternatives that may be employed without departing from the principles of what is disclosed.
[0021] [Part 1: Clifford Rhoda] A classical vector is an N-dimensional coordinate (x 1 , x 2 , ..., x N ), where x i is real and the Euclidean norm of a vector is 1. For clarity of presentation of this particular embodiment, we assume that N is a power of 2, but our method can be extended to the general case.
[0022] Classical vector x = (x 1 ,x 2 , ..., x N ), we describe a single operator in the Clifford algebra, and a Clifford loader corresponds to the implementation of this single operator.
[0023] The Pauli matrices X and Z correspond to the single qubit bit-flip and phase-flip operators, which are two-dimensional anti-commuting matrices. i = Z i-1 XI N-i Here, the string represents the tensor product of N Pauli operators, with the X operator at position i. The unary operator implemented by the Clifford loader on a vector x acts on N qubits and is given by
number
[0024] The operator C(x) is unitary for all vectors x with Euclidean norm 1 that squares the identity. NClifford algebra generator P for i Since it is a linear combination of x, it belongs to the Clifford algebra. As a matrix, C(x) has dimension 2 N x2 N , there is no a priori reason to expect that they can be implemented as quantum circuits using a polynomial (in the input size N) of 2-qubit gates. The disclosure provides such implementations for these circuits, and furthermore, the circuit depth for our implementation is logarithmic in N making these circuits extremely efficient.
[0025] We use one type of parameterized two-qubit gate, which we will call BS(θ), and the following explanation has a standard basis.
number
[0026] We also use controlled-Z and controlled-X gates, which have the following descriptions in the canonical basis:
number
number
[0027] We introduce two matrix identities that can be verified by direct computation on the four-dimensional matrix given above. These identities describe the effect of conjugating the strings XI and ZZ with the gate BS(θ) and are used later to establish the correctness of our construction.
number
number
[0028] Building a Clifford Loader circuit requires a gadget (the term used in circuit complexity theory for branch circuits that perform a particular function) that operates on three qubits (e.g., for convenience, 1, 2, and 3) as follows: if qubit 2 is 0 (e.g., according to the standard), it applies operation BS(θ) to qubits 1 and 3, and if qubit 2 is 1 (e.g., according to the standard), it applies operation BS(θ) instead. * This gadget is G 123 For example, a CZ gate controls qubit 2, and BS(θ) gates act on qubits 1 and 3. 21 B.S. 13 (θ)CZ 21 The gadget can be implemented using a sequence of numbers. The operation of the gadget as described above can be verified by computing the product of three matrices. In another example, the gadget circuit is implemented by treating the BS(θ) gate as a sequence of three rotations rather than a single gate.
[0029] In addition to the gadgets, the Clifford loader contains a series of angles that are used as input to the BS gate. This sequence of angles is calculated from the vector x. The sequence of angles for two embodiments are described below. Note that the sequence of angles for the first embodiment is identical to that described in U.S. Patent Application No. 16 / 986,553, which is incorporated by reference in its entirety. The sequence of angles for the second embodiment is unique to this disclosure.
[0030] The angle sequence of the first embodiment is identical to that described in U.S. patent application Ser. No. 16 / 986,553, but is briefly described here for completeness. First, the auxiliary sequence of intermediate field squared amplitudes of vector x (r 1 , r 2 , ..., r N ) is defined. The last N / 2 values (r N / 2 , r N / 2+1 , ..., r N-1 ) is the index
number
number
number
number
number
number
[0031] The angle sequence in the second embodiment is defined as follows: The first angle is:
number
number
[0032] Similar ways of defining the numerical value of the angle are possible and would be classified as the same methods herein for both embodiments, for example, the sign of the angle could be inverted or a multiple of pi could be added to the angle.
[0033] Any vector x = (x 1 , x 2 , ..., x N ), we can now define two quantum circuits to implement the Clifford loader for
number
[0034] A first embodiment for constructing a Clifford loader is now described. This embodiment is illustrated for an 8-dimensional vector in FIG. 1, and for a 16-dimensional vector in FIG. 3A and FIG. 3B (FIG. 3B shows the C(x) circuit level). The Clifford loader circuit of the first embodiment is constructed by dividing a quantum circuit C(x) on the left and its neighbors (C(x)) on the right. * ), where C(x) and C(x) * each have logarithmic depth, i.e. C(x) = C(x)(X N-1 )C(x) * A recursive explanation of C(x) is given below using gadgets. It is also explicitly shown that the total circuit depth is logarithmic in N. C(x) * For x, the gate is inverted and conjugated to C(x) (note that CX and CZ are self-conjugate).
[0035] Two different quantum circuits S 1 and S. 2 We have introduced some notation that is used to construct S. In these descriptions, we use the notation (S||S). 1 and S 2 are performed in parallel on separate sets of qubits (S 1 , S 2 ) denotes the ordered configuration of circuits on the same set of qubits. Note that a circuit is an ordered collection of one or more gates. For example, a circuit may contain only a single gate. A branch circuit may refer to a circuit that is part of a larger circuit. We have also included sub-circuits that make up a Clifford loader with CX gates. Let C'(x) be defined as the sequence of CX gates after which qubit 2 can select the parity of qubits from 2 to N.
number
[0036] Here, we present an example of a recursive configuration of the circuit C(x) in Figure 1. As described above, the Clifford loader is * with an X gate between them. Assume that the dimension of the vector x (i.e., N) is a power of 2. This assumption can be made without loss of generality, since we can pad the vector x with some O to make its dimension a power of 2. Two-dimensional unit vector
number
number
number
[0037] The circuit depth for C(x) can be found from the recursive relationship. Let d(N) be the circuit depth as a function of dimension, then let d(2) = 1, and from the recursion we have d(N) = d'(N / 2) + 3 and d'(N) = d'(N / 2) + 4. Gadget G ijk has depth 3, and CX(N / 2+2, N / 2+1) is the gadget G ijk Note that this can be done in parallel with the third layer of the recursion. Thus, the explicit solution to these recursions is d(N) = 4(log2N - 1) for any power of 2 greater than 2.
[0038] We unfold the recursion to give an explicit description of C(x) for 4-dimensional and 8-dimensional vectors x. The 4-dimensional C(x) circuit is 4*(2-1)=4 deep. It uses the angles (θ1, θ2, θ3) for vector x computed by the first embodiment (above) as input to the BS gate. We give a gate-level description of the four layers in a circuit C(x). Layer 1: (BS 12 (θ 2 )||BS 34 (θ 3 ) Layer 2: CZ 21 Layer 3: BS 13 (θ 1 ) Layer 4: CZ 21 The 8-dimensional C(x) circuit will have a depth of 4*(3-1)=8 as described above. The angles (θ1, θ2, ..., θ7) for vector x are calculated according to the first embodiment (above) and are inputs to the BS gates in C(x). We give a gate-level description of all 8 layers of C(x) shown in Figure 1. Layer 1: (BS 12 (θ 4 )||BS 34 (θ 5 )||BS 56 (θ 6 )||BS78 (θ 7 )) Layer 2: (CZ 21 ||CZ 65 ) Layer 3: ((BS 13 (θ 2 ))||BS 57 (θ 3 )) Layer 4: (CZ 21 ||CZ 65 ||CX 43 ||CX 78 ) Layer 5: (CZ 32 ||CZ 76 ) Layer 6: CZ 21 Layer 7: BS 15 (θ1) Layer 8: CZ 21 In layers 2-4 and 6-8, Gadget G ijk Note that we implement the ,parallel ,parity calculations in layer 4. In particular, the parity calculations are represented by ,CX,gates, and the CZ gates are represented in gadget G,. ijk Note that when traversing C(x) from bottom to top and left to right in Figure 1, the calculated corner sequences are used in reverse order.
[0039] A second embodiment of the Clifford loader uses the angle sequence described with reference to Equations 10 and 11, where (θ 1 , θ 2 , …, θ n-1 ) is the angle sequence, then the Clifford loader according to the second embodiment can be realized as follows:
number
[0040] [Part 2: Application of Clifford Rhoda] Here we show how the Clifford Loader can be used for quantum machine learning applications related to deterministic sampling. In particular, we show how the Clifford Loader can be used to solve the fundamental problem of sampling according to a deterministic distribution, and its representative application to feature selection.
[0041] Deterministic sampling on a classical computer scales the determinism of a single d-dimensional matrix in O(d 3 ) to compute a single determinant. In theory, it takes O(d 2.37 Although there are complex theoretical constructions that can achieve d, these can only outperform standard methods for very large d due to their large constant factor overhead. Furthermore, most classical determinant sampling algorithms need to compute several determinants, which leads to even higher computational demands. In contrast, the quantum algorithm described in this disclosure has a complexity of O(dlogN).
[0042] The input to a deterministic sampling problem is the matrix
number
number
number
[0043] The output of the determinant sampler is a set S containing d 'almost orthogonal' vectors, since the determinant is maximal when the vectors are orthogonal, and small if any of the vectors is a linear combination of the others. If a row vector is det(X S ) = 0. If there is a linear dependence, S does not appear in the output of the sampler. The output of the determinant sampler is a diverse and representative set of vectors. This can be useful in machine learning applications where the goal is to sample a representative set of features.
[0044] As an example use case, consider a large dataset of users and capabilities associated with the users. The goal here is to select a set of users with representative and diverse capabilities. Deterministic sampling selects a diverse and representative set of users of the dataset. It is a technique to obtain a concise summary of a large dataset that holds all the different sets of users present therein.
[0045] The output of the determinant sampler can also be used as input to low-rank approximations by row selection, or to clustering algorithms, which have been shown to improve on standard methods.
[0046] In the following, we will explain how to perform deterministic sampling using a combination of Clifford loaders. From Part 1, we will use the Clifford loader
number
[0047] The determinantal sampling algorithm using the Clifford loader is as follows: 1 , a 2 , ..., a d ) into a matrix
number
number
number
[0048] The above procedure uses N qubits, has a circuit depth O(dlogN) using the first embodiment of Part 1, and applies sequential Clifford loader circuits in succession. The procedure succeeds with probability 1 if the columns of matrix A are orthogonal. More generally, the success probability is det(A T A).
[0049] If the procedure described above with reference to Equation 16 is successful, then the output S is a sample that follows a deterministic distribution, i.e., the procedure is exact and solves the deterministic sampling problem exactly in time O(dlogN).
[0050] The success probability of the determinant sampler can be improved by multiplying the matrix A by a random code matrix or a Hadamard matrix and then running the determinant sampler for A' = AH. Using state-of-the-art procedures for multiplication by Hadamard matrices, such preprocessing runs in time linear in the number of non-zero entries of A.
[0051] If A is an orthogonal matrix, then the quantum determinant sampling algorithm with running time O(dlogN) 3 ) provides speedup over the best known classical algorithms.
[0052] More generally, the sequence of Clifford-Roder operations
number
[0053] The Clifford loader is also useful in quantum topology data analysis, where
number
[0054] The second part is described with reference to the first embodiment of the Clifford loader, but the second embodiment of the Clifford loader may be used instead, in which case the running time is O(dN).
[0055] [Other considerations] Quantum processing devices (also called quantum computers) exploit the laws of quantum mechanics to perform calculations. Quantum processing devices typically use so-called quantum bits, or qubits. While classical bits always have a value of 0 or 1, qubits are quantum mechanical systems that can store a value of 0, 1, or a superposition of both.
number
number
[0056] A quantum circuit is an ordered collection of one or more gates. A branch circuit may refer to a circuit that is part of a larger circuit. A gate represents a single operation performed on one or more qubits. Quantum computers can use a universal set of 1- and 2-qubit gates. Universal means that any quantum circuit can be written as a combination of these gates. Quantum gates can be described using a single matrix. The depth of a quantum circuit is the minimum number of steps required to execute the circuit on a quantum computer. A layer of a quantum circuit is sometimes referred to as a step of the circuit.
[0057] Instructions for executing the quantum circuit on one or more quantum computers can be stored on a non-transitory computer-readable storage medium. The term "computer-readable storage medium" should be interpreted as a single medium or multiple media, centralized or distributed databases, or associated caches and servers that can store instructions. The term "computer-readable medium" is also intended to include such media that can store instructions for execution by a quantum computer and cause the quantum computer to perform any one or more of the methodologies disclosed herein. The term "computer-readable medium" includes, but is not limited to, data repositories in the form of solid-state memory, optical media, and magnetic media.
[0058] The above-described approach may be suitable for a cloud quantum computing system where quantum computing is provided as a shared service to separate users. An example is described in patent application Ser. No. 15 / 446,973, entitled "Quantum Computing as a Service," which is incorporated herein by reference.
[0059] Some portions of the above description describe embodiments in terms of algorithmic processes or operations. These algorithmic descriptions and representations are commonly used by those skilled in the computer arts to effectively convey the substance of their work to others skilled in the art. These operations, while described functionally, computationally, or logically, will be understood to be implemented by computer programs with instructions for execution by a processor or equivalent electrical circuitry, microcode, or the like. Moreover, without loss of generality, it has proven convenient at times to refer to these arrangements of functional operations as modules.
[0060] Any reference to "one embodiment" or "embodiment" as used herein means that a particular element, feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. The appearances of the phrase "in one embodiment" in various places in the specification do not necessarily all refer to the same embodiment. Similarly, the use of "one" or "1" before an element or constituent element is done merely for convenience. This description should be understood to mean that one or more of the element or constituent element are present, unless it is clear that something else is intended.
[0061] When values are described as "approximate" or "substantially" (or derivatives thereof), said values should be construed as being accurate to + / - 10%, unless a different meaning is clear from the context. For example, "approximately 10" should be understood to mean "in the range of 9 to 11."
[0062] As used herein, the terms "comprise," "include," "includes," "has," "having," "having," or any other variation are intended to cover non-exclusive inclusions. For example, a process, method, article, or apparatus that includes a list of elements is not necessarily limited to those elements and may include other elements not expressly listed or inherent in such process, method, article, or apparatus. Furthermore, unless expressly stated to the contrary, "or" refers to an inclusive OR and does not imply an exclusive OR. For example, conditions A or B are satisfied by any one of A being true (or present) and B being false (or absent), A being false (or absent) and B being true (or present), and both A and B being true (or present).
[0063] Various other modifications, changes and variations apparent to those skilled in the art can be made in the arrangement, operation and details of the methods and apparatus disclosed herein without departing from the spirit and scope thereof, as defined in the appended claims. Accordingly, the scope of the present invention should be determined by the appended claims and their legal equivalents.
[0064] Alternative embodiments are implemented in computer hardware, firmware, software, and / or combinations thereof. Implementations may be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor, where the method steps are performed by the programmable processor executing a program of instructions to perform functions by operating on input data and generating output. The embodiments may be advantageously implemented in one or more computer programs executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. Each computer program may be implemented in a high-level procedural or object-oriented programming language, or may be implemented in assembly or machine language, if desired, and in either case the language may be a compiled or interpreted language. Suitable processors include, for example, both general purpose and special purpose microprocessors. Typically, the processor receives instructions and data from a read-only memory and / or a random access memory. Typically, a computer will include one or more mass storage devices for storing data files. Such devices include magnetic disks, such as internal hard disks and removable disks, magneto-optical disks, and optical disks. Suitable storage devices for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including, by way of example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices, magnetic disks, such as internal hard disks and removable disks, magneto-optical disks, and CD-ROM disks. Any of the above may be supplemented by, or incorporated in, ASICs (application-specific integrated circuits) and other forms of hardware.
Claims
1. A non-transitory computer-readable storage medium comprising stored instructions for executing a quantum circuit with a quantum computer, the quantum computer having at least N qubits, q n wherein n is an integer value from 1 to N, and the stored instructions, when executed by the quantum computer, cause the quantum computer to N / 2 quantum bits q 1 -q N / 2 and executing a first branch circuit including a quantum gate applied to qubit q 2 The value of the quantum bit q 2 -q N / 2 and showing the parity of executing a second branch circuit simultaneously with the first branch circuit, the second branch circuit generating N / 2 qubits q (N / 2+1) -q N and executing a gadget circuit after the first branch circuit and the second branch circuit, the gadget circuit 1 ,q 2 and q (N / 2+1) one of the quantum gates of the gadget circuit is a BS(θ) gate, the BS(θ) gate being a single parameterized two-qubit quantum gate; qubit q 2 If the value of is 0, the BS(θ) gate 1 and q (N / 2+1) applies to, qubit q 2 If the value of is 1, then the conjugate of the BS(θ) gate is the qubit q 1 and q (N / 2+1) and A non-transitory computer-readable storage medium for causing a computer to perform operations including:
2. 2. The non-transitory computer-readable storage medium of claim 1, wherein executing the first branch of the circuitry comprises: N / 4 quantum bits q 1 -q N / 4 and executing a third branch circuit including a quantum gate applied to qubit q 2 The value of the quantum bit q 2 -q N / 4 and showing the parity of Simultaneously with the third branch circuit, N / 4 quantum bits q (N / 4+1) -q N / 2 and executing a fourth branch circuit including a quantum gate applied to executing a second gadget circuit after the third branch circuit and the fourth branch circuit, the second gadget circuit 1 ,q 2 and q (N / 4+1) one of the quantum gates of the second gadget circuit is a second BS(θ) gate; qubit q 2 If the value of is 0, the second BS(θ) gate 1 and q (N / 4+1) applies to, qubit q 2 If the value of is 1, then the conjugate of the second BS(θ) gate is the qubit q 1 and q (N / 4+1) and A non-transitory computer readable storage medium comprising:
3. 2. The non-transitory computer-readable storage medium of claim 1, wherein the operation further comprises: 1 4. A non-transitory computer readable storage medium comprising:
4. 4. The non-transitory computer-readable storage medium of claim 3, wherein the operations further comprise: implementing a second gadget circuit after the X gate, the second gadget circuit 1 ,q 2 and q (N / 2+1) one of the quantum gates of the second gadget circuit is a second BS(θ) gate; qubit q 2 If the value of is zero, then the conjugate of the BS(θ) gate is the qubit q 1 and q (N / 2+1) applies to, qubit q 2 If the value of is 1, the BS(θ) gate 1 and q (N / 2+1) and A non-transitory computer readable storage medium comprising:
5. 5. The non-transitory computer-readable storage medium of claim 4, wherein the operations further comprise: executing a third branch circuit after the second gadget circuit, the third branch circuit 1 -q N / 2 the quantum gates of the third branch circuit correspond to the quantum gates of the first branch circuit except that the quantum gates of the third branch circuit are arranged in reverse order and the BS(θ) gates of the third branch circuit are conjugated; 1. A non-transitory computer readable storage medium comprising:
6. 6. The non-transitory computer-readable storage medium of claim 5, wherein the operations further comprise: executing a fourth circuit branch simultaneously with the third circuit branch, the fourth circuit branch generating N / 2 qubits q (N / 2+1) -q N the quantum gates of the fourth subcircuit correspond to the quantum gates of the second subcircuit, except that the quantum gates of the fourth subcircuit are arranged in reverse order and the BS(θ) gates of the fourth subcircuit are conjugated; 1. A non-transitory computer readable storage medium comprising:
7. 2. The non-transitory computer-readable storage medium of claim 1, wherein executing the first branch of the circuitry comprises: The second BS(θ) gate is applied to qubit q 1 and q 2 and apply the third BS(θ) gate to the qubit q 3 and q 4 and performing a first layer applying The first controlled Z gate (CZ gate) is used to transfer the qubit q 1 and q 2 and performing a second layer applying The fourth BS(θ) gate is applied to the qubit q 1 and q 3 and performing a third layer applying The second CZ gate is applied to the qubit q 1 and q 2 to apply the first controlled X gate (CX gate) to the qubit q 3 and q 4 performing a fourth layer applying The second CX gate is applied to qubit q 2 and q 3 performing a fifth layer applying A non-transitory computer readable storage medium comprising:
8. 2. The non-transitory computer-readable storage medium of claim 1, wherein executing the gadget circuitry comprises: The first controlled Z gate (CZ gate) is used to transfer the qubit q 1 and q 2 and performing a first layer applying The BS(θ) gate is used as the quantum bit q 1 and q (N / 2+1) and performing a second layer applying The second CZ gate is applied to the qubit q 1 and q 2 and performing a third layer applying A non-transitory computer readable storage medium comprising:
9. 2. The non-transitory computer-readable storage medium of claim 1, wherein the conjugate of the BS(θ) gate is BS(-θ).
10. 2. The non-transitory computer-readable storage medium of claim 1, wherein the BS(θ) gate comprises: BS(θ) = [[1, 0, 0, 0], [0, cos(θ), sin(θ), 0], [0, -sin(θ), cos(θ), 0], [0, 0, 0, 1]] 16. A non-transitory computer readable storage medium having the form:
11. 1. A method of implementing a quantum circuit on a quantum computer, the quantum computer comprising: n wherein n is an integer value from 1 to N, and the method comprises: The quantum computer generates N / 2 quantum bits q 1 -q N / 2 and executing a first branch circuit including a quantum gate applied to qubit q 2 The value of the quantum bit q 2 -q N / 2 and showing the parity of executing a second branch circuit simultaneously with the first branch circuit, the second branch circuit having N / 2 qubits q (N / 2+1) -q N and executing, by the quantum computer, a gadget circuit after the first branch circuit and the second branch circuit, the gadget circuit 1 ,q 2 , and q (N / 2+1) one of the quantum gates of the gadget circuit is a BS(θ) gate, the BS(θ) gate being a single parameterized two-qubit quantum gate; qubit q 2 If the value of is 0, the BS(θ) gate 1 and q (N / 2+1) where the BS(θ) gate is a single parameterized two-qubit gate, qubit q 2 If the value of is 1, then the conjugate of the BS(θ) gate is the qubit q 1 and q (N / 2+1) and The method includes:
12. 12. The method of claim 11, wherein executing the first branch circuit comprises: N / 4 quantum bits q 1 -q N / 4 and executing a third branch circuit including a quantum gate applied to qubit q 2 The value of the quantum bit q 2 -q N / 4 and showing the parity of Simultaneously with the third branch circuit, N / 4 quantum bits q (N / 4+1) -q N / 2 and executing a fourth branch circuit including a quantum gate applied to executing a second gadget circuit after the third branch circuit and the fourth branch circuit, the second gadget circuit 1 ,q 2 and q (N / 4+1) one of the quantum gates of the second gadget circuit is a second BS(θ) gate; qubit q 2 If the value of is 0, the second BS(θ) gate 1 and q (N / 4+1) applies to, qubit q 2 If the value of is 1, then the conjugate of the second BS(θ) gate is the qubit q 1 and q (N / 4+1) and A method comprising:
13. 12. The method of claim 11, further comprising: 1 4. The method of claim 3, further comprising: performing an X-gate applied to
14. 14. The method of claim 13, implementing a second gadget circuit after the X gate, the second gadget circuit 1 ,q 2 , and q (N / 2+1) one of the quantum gates of the second gadget circuit is a second BS(θ) gate; qubit q 2 If the value of is zero, then the conjugate of the BS(θ) gate is the qubit q 1 and q (N / 2+1) applies to, qubit q 2 If the value of is 1, the BS(θ) gate 1 and q (N / 2+1) and The method further comprises:
15. 15. The method of claim 14, executing a third branch circuit after the second gadget circuit, the third branch circuit 1 -q N / 2 the quantum gates of the third branch circuit correspond to the quantum gates of the first branch circuit except that the quantum gates of the third branch circuit are arranged in reverse order and the BS(θ) gates of the third branch circuit are conjugated; The method further comprises:
16. 16. The method of claim 15, executing a fourth circuit branch simultaneously with the third circuit branch, the fourth circuit branch generating N / 2 qubits q (N / 2+1) -q N the quantum gates of the fourth subcircuit correspond to the quantum gates of the second subcircuit, except that the quantum gates of the fourth subcircuit are arranged in reverse order and the BS(θ) gates of the fourth subcircuit are conjugated; The method further comprises:
17. 12. The method of claim 11, wherein executing the first branch circuit comprises: The second BS(θ) gate is applied to qubit q 1 and q 2 and apply the third BS(θ) gate to the qubit q 3 and q 4 and performing a first layer applying The first controlled Z gate (CZ gate) is used to transfer the qubit q 1 and q 2 and performing a second layer applying The fourth BS(θ) gate is applied to the qubit q 1 and q 3 and performing a third layer applying The second CZ gate is applied to the qubit q 1 and q 2 to apply the first controlled X gate (CX gate) to the qubit q 3 and q 4 performing a fourth layer applying The second CX gate is applied to qubit q 2 and q 3 performing a fifth layer applying The method includes:
18. 12. The method of claim 11, wherein executing the gadget circuitry comprises: The first controlled Z gate (CZ gate) is used to transfer the qubit q 1 and q 2 and performing a first layer applying The BS(θ) gate is used as the quantum bit q 1 and q (N / 2+1) and performing a second layer applying The second CZ gate is applied to the qubit q 1 and q 2 and performing a third layer applying The method includes:
19. The method of claim 11 , wherein the conjugate of the BS(θ) gate is BS(−θ).
20. 1. A quantum circuit for execution by a quantum computer, the quantum circuit comprising: N=2 K and K≧2, n being an integer value between 1 and N, n and It includes K recursive circuit levels K=1 through K, Each circuit level k is (N / 2 k ) level k circuits, each of which has a qubit q n 2 k and for each level k circuit, k The qubits include, for the level-K circuit, a first qubit and a second qubit; Each level-1 circuit has a qubit, q n the BS(θ) gate is a single parameterized two-qubit quantum gate, one of the two qubits being a first qubit of the level-1 circuit and the other of the two qubits being the second qubit of the level-1 circuit; For each level k circuit, for k ≥ 2, one of the level (k-1) circuits as a first branch circuit, and the other of the level (k-1) circuits as a second branch circuit; and a gadget circuit including a BS(θ) gate; if the value of the second quantum bit in the first branch circuit is 0, the BS(θ) gate is applied to the first quantum bit in the first branch circuit and to the first quantum bit in the second branch circuit; When the value of the second quantum bit of the first branch circuit is 1, a conjugate of the BS(θ) gate is applied to the first quantum bit of the first branch circuit and the first quantum bit of the second branch circuit. quantum circuit.
21. A quantum circuit implemented by a quantum computer, the quantum computer including at least N qubits, qn, where n is an integer value from 1 to N, the quantum circuit comprising: a first branch circuit including a quantum gate applied to N / 2 qubits q 1 -q N / 2 , such that following execution of said first branch circuit, the value of qubit q 2 indicates the parity of qubits q 2 -q N / 2 ; a second branch circuit configured to execute simultaneously with the first branch circuit, the second branch circuit including a quantum gate applied to N / 2 qubits, q(N / 2+1)-qN; a gadget circuit configured to be executed after the first branch circuit and the second branch circuit, the gadget circuit including quantum gates applied to quantum bits q1, q2, and q(N / 2+1), one of the quantum gates of the gadget circuit being a BS(θ) gate, the BS(θ) gate being a single parameterized two-qubit quantum gate; if the value of qubit q2 is 0, then the BS(θ) gate is applied to qubits q1 and q(N / 2+1); a gadget circuit, where if the value of qubit q 2 is 1, then the conjugate of the BS(θ) gate is applied to qubits q 1 and q (N / 2+1); Quantum circuits, including:
22. A method comprising: executing a quantum circuit on a quantum computer, the quantum computer including at least N quantum bits qn, where N=2K and K≧2, and n is an integer value from 1 to N; and the quantum circuit comprising: Contains K recursive circuit levels K=1 to K, each circuit level k includes (N / 2 k ) level k circuits, each level k circuit including one or more quantum gates applied to 2 k of qubits qn, the 2 k qubits for each level k circuit including, for that level K circuit, a first qubit and a second qubit; each level-1 circuit includes a BS(θ) gate applied to two of the qubits qn, the BS(θ) gate being a single parameterized two-qubit quantum gate, one of the two qubits being a first qubit of the level-1 circuit and the other of the two qubits being the second qubit of the level-1 circuit; For each level k circuit, for k ≥ 2, one of the level (k-1) circuits as a first branch circuit, and the other of the level (k-1) circuits as a second branch circuit; and a gadget circuit including a BS(θ) gate; if the value of the second quantum bit in the first branch circuit is 0, the BS(θ) gate is applied to the first quantum bit in the first branch circuit and to the first quantum bit in the second branch circuit; when a value of the second quantum bit in the first branch circuit is 1, a conjugate of the BS(θ) gate is applied to the first quantum bit in the first branch circuit and to the first quantum bit in the second branch circuit.
23. A non-transitory computer-readable storage medium containing stored instructions that, when executed by a quantum computer, cause the quantum computer to: performing operations including executing a quantum circuit by the quantum computer, the quantum computer including at least N qubits qn, where N=2K and K≧2, n being an integer value from 1 to N; the quantum circuit comprising: Contains K recursive circuit levels K=1 to K, each circuit level k includes (N / 2 k ) level k circuits, each level k circuit including one or more quantum gates applied to 2 k of qubits qn, the 2 k qubits for each level k circuit including, for that level K circuit, a first qubit and a second qubit; each level-1 circuit includes a BS(θ) gate applied to two of the qubits qn, the BS(θ) gate being a single parameterized two-qubit quantum gate, one of the two qubits being a first qubit of the level-1 circuit and the other of the two qubits being the second qubit of the level-1 circuit; For each level k circuit, for k ≥ 2, one of the level (k-1) circuits as a first branch circuit, and the other of the level (k-1) circuits as a second branch circuit; and a gadget circuit including a BS(θ) gate; if the value of the second quantum bit in the first branch circuit is 0, the BS(θ) gate is applied to the first quantum bit in the first branch circuit and to the first quantum bit in the second branch circuit; a conjugate of the BS(θ) gate is applied to the first quantum bit in the first branch circuitry and to the first quantum bit in the second branch circuitry when the value of the second quantum bit in the first branch circuitry is 1.
