EP4320561A1 - Methods for efficient implementation of unitary operators in the clifford algebra as quantum circuits - Google Patents

Methods for efficient implementation of unitary operators in the clifford algebra as quantum circuits

Info

Publication number
EP4320561A1
EP4320561A1 EP21939575.3A EP21939575A EP4320561A1 EP 4320561 A1 EP4320561 A1 EP 4320561A1 EP 21939575 A EP21939575 A EP 21939575A EP 4320561 A1 EP4320561 A1 EP 4320561A1
Authority
EP
European Patent Office
Prior art keywords
gate
circuit
qubits
quantum
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
EP21939575.3A
Other languages
German (de)
French (fr)
Inventor
Anupam Prakash
Iordanis KERENIDIS
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
QC Ware Corp
Original Assignee
QC Ware Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US17/244,362 external-priority patent/US11816538B2/en
Priority claimed from US17/244,840 external-priority patent/US11922272B2/en
Application filed by QC Ware Corp filed Critical QC Ware Corp
Publication of EP4320561A1 publication Critical patent/EP4320561A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • G06N10/20Models of quantum computing, e.g. quantum circuits or universal quantum computers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • G06N10/40Physical realisations or architectures of quantum processors or components for manipulating qubits, e.g. qubit coupling or qubit control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • G06N10/60Quantum algorithms, e.g. based on quantum optimisation, quantum Fourier or Hadamard transforms
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B82NANOTECHNOLOGY
    • B82YSPECIFIC USES OR APPLICATIONS OF NANOSTRUCTURES; MEASUREMENT OR ANALYSIS OF NANOSTRUCTURES; MANUFACTURE OR TREATMENT OF NANOSTRUCTURES
    • B82Y10/00Nanotechnology for information processing, storage or transmission, e.g. quantum computing or single electron logic
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning

Definitions

  • This disclosure is in the field of quantum algorithms and quantum linear alge- bra. In particular, it provides a logarithmic depth construction for quantum circuits that are referred to as Clifford loaders. This disclosure is also in the field of quantum machine learn- ing. In particular it provides applications to quantum machine learning of the Clifford loader circuits.
  • Quantum machine learning and linear algebra algorithms may depend on the ability to represent classical data as quantum states in order to use quantum procedures for linear algebra tasks.
  • the disclosure gives procedures to efficiently represent subspaces spanned by k-vectors as quantum states using Clifford loaders.
  • the embodiments of the dis- closure have applications to quantum machine learning, for example, for the tasks of determi- nant sampling and topological data analysis and to quantum linear algebra, for example, for projection and solution of low dimensional linear systems.
  • Some embodiments relate to a quantum circuit for execution by a quantum com- puter, the quantum computer including at least N qubits q n .
  • the quantum circuit includes first and second sub-circuits and a gadget circuit.
  • the first sub-circuit includes quantum gates that are applied to N/2 qubits q 1 -q N/2 , where, subsequent to execution of the first sub-circuit, a value of qubit q2 represents a parity of qubits q 2 -q N/2 .
  • the second sub-circuit is arranged to be executed concurrently with the first sub-circuit and includes quantum gates that are applied to N/2 qubits q (N/2+1) -q N .
  • the gadget circuit is arranged to be executed after the first and second sub-circuits.
  • the gadget circuit includes quantum gates that are applied to qubits q 1 , q 2 , and q (N/2+1) , where one of the quantum gates of the gadget circuit is a BS( ⁇ ) gate.
  • the BS( ⁇ ) gate is a single parameterized 2-qubit quantum gate. If the value of qubit q 2 is 0, then the gadget circuit applies the BS( ⁇ ) gate to qubits q 1 and q (N/2+1) . If the value of qubit q 2 is 1, then the gadget circuit instead applies a conjugate of the BS( ⁇ ) gate to qubits q 1 and q (N/2+1) .
  • the first sub-circuit includes a third sub-circuit, a fourth sub-circuit, and a second gadget circuit.
  • the third sub-circuit includes quantum gates that are applied to N/4 qubits q 1 -q N/4 , wherein, subsequent to execution of the third sub-circuit, the value of qubit q 2 represents a parity of qubits q 2 -q N/4 .
  • the fourth sub-circuit arranged to be executed concurrently to the third sub-circuit and comprises quantum gates that are applied to N/4 qubits q (N/4+1) -q N/2 .
  • the second gadget circuit is after the third and fourth sub-circuits.
  • the second gadget circuit comprises quantum gates that are applied to qubits 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. If the value of qubit q 2 is 0, the second BS( ⁇ ) gate is applied to qubits q 1 and q (N/4+1) , and if the value of qubit q 2 is 1, a conjugate of the second BS( ⁇ ) gate is applied to qubits q 1 and q (N/4+1) . [0007]
  • the quantum circuit further includes an X gate applied to qubit q1 after the gadget circuit.
  • the quantum circuit further includes a second gadget circuit after the X gate.
  • the second gadget circuit comprises quantum gates that are applied to qubits 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. If the value of qubit q 2 is 0, a conjugate of the BS( ⁇ ) gate is applied to qubits q 1 and q (N/2+1) , and if the value of qubit q 2 is 1, the BS( ⁇ ) gate is ap- plied to qubits q 1 and q (N/2+1) .
  • the quantum circuit further includes a third sub-circuit after the second gadget circuit.
  • the third sub-circuit comprises quantum gates that are applied to N/2 qubits q 1 -q N/2 , where the quantum gates of the third sub-circuit match the quantum gates of the first sub-circuit except the quantum gates of the third sub-cir- cuit are arranged in reverse order and the BS( ⁇ ) gates are conjugated.
  • the quantum circuit further includes a fourth sub-circuit arranged to be executed concurrently to the third sub-circuit.
  • the fourth sub-circuit comprises quantum gates that are applied to N/2 qubits q(N/2+1)-qN, where the quantum gates of the fourth sub-circuit match the quantum gates of the second sub-circuit except the quantum gates of the fourth sub-circuit are arranged in reverse order and the BS( ⁇ ) gates are conjugated.
  • the quantum circuit further includes a first layer that ap- plies a second BS( ⁇ ) gate to qubits q 1 and q 2 and a third BS( ⁇ ) gate to qubits q 3 and q 4 ; a sec- ond layer that applies a first CZ gate to qubits q 1 and q 2 , where the CZ gate is a controlled Z gate; a third layer that applies a fourth BS( ⁇ ) gate to qubits q1 and q3; a fourth layer that ap- plies a second CZ gate to qubits q 1 and q 2 and a first CX gate to qubits q 3 and q 4 , where the CX gate is a controlled X gate; and a fifth layer that applies a second CX gate to qubits q2 and q 3 .
  • the gadget sub-circuit comprises: a first layer that applies a first CZ gate to qubits q 1 and q 2 , where the CZ gate is a controlled Z gate; a second layer that applies the BS( ⁇ ) gate to qubits q 1 and q (N/2+1) ; and a third layer that applies a second CZ gate to qubits q 1 and q 2 .
  • Each circuit level k includes (N/2 k ) level-k circuits, and each level-k circuit includes one or more quantum gates applied to 2 k of the qubits qn.
  • the 2 k qubits for each level-k circuit include a first qubit and a second qubit for that level-k circuit.
  • Each level-1 circuit includes a BS gate applied to two of the qubits q n , where one of the two qubits is the first qubit of the level-1 circuit and the other of the two qubits is 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 sub-circuit, another of the level-(k-1) circuits as a second sub-circuit, and a gadget circuit comprising a BS gate. If the value of the second qubit of the first sub-circuit is 0, the gadget circuit applies the BS gate to the first qubit of the first sub-circuit and the first qubit of the second sub-circuit. If the value of the second qubit of the first sub-circuit is 1, the gadget circuit applies the conjugate of the BS gate to the first qubit of the first sub-circuit and the first qubit of the second sub-circuit.
  • Some embodiments relate to a quantum circuit for execution by a quantum com- puter, the quantum computer including at least N qubits q n .
  • the circuit includes a set of N-1 layers and an additional layer.
  • the set of N-1 layers sequentially apply N-1 BS gates to the N qubits q n .
  • 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 one of the two qubits of the layer and a new qubit.
  • the additional layer is subsequent to the set of N-1 layers and applies an X gate to one of the qubits.
  • the new qubit in each subsequent layer is a qubit that the previous layers have not applied a BS gate to.
  • the X gate is applied to the new qubit of the N-1 th layer.
  • the quantum circuit further includes a second set of N-1 layers after the additional layer. The second set of N-1 layers applying N-1 BS gates to the N qubits, where each layer applies a BS gate to two qubits and each subsequent layer applies a BS gate to one of the two qubits of the layer and a new qubit.
  • the BS gates in the second set of N-1 layers are conjugate gates corresponding to the BS gates in the set of N-1 layers.
  • Fig.1 is a diagram showing a quantum circuit used for implement- ing a Clifford loader for a given vector of dimension 8, using a single parametrized two-qubit gate (referred to as “BS”) and two-qubit controlled X and controlled Z gates, according a first embodiment.
  • Fig.2 is a diagram showing a quantum circuit for implementing the Clifford loader for a given vector of dimension 8, the BS gate, according to a second embodiment.
  • 3A and 3B are diagrams showing a quantum circuit used for implementing a Clifford loader for a given vector of dimension 16, using a single parametrized two-qubit gate (referred to as “BS”) and two-qubit controlled X and controlled Z gates, according to the first embodiment.
  • BS single parametrized two-qubit gate
  • a classical vector is represented by N-dimensional coordinates (x 1 , x 2 , ... , x N ) where xi is a real number and the Euclidean norm of the vector is 1.
  • N is a power of 2
  • our methods can ex- tend to the general case.
  • the Pauli matrices X and Z correspond to single qubit bit flip and phase flip op- erators and these are anti-commuting matrices with dimension 2.
  • P t Z i-1 XI N-i where the string represents a tensor product of N Pauli operators and the X operator is at position i.
  • the unitary operator implemented by the Clifford loader for vector x acts on N qubits and is given as:
  • the operator C(x) is unitary for all vectors x with Euclidean norm 1 as it squares to the identity. It belongs to the Clifford algebra as it is a linear combination of the generators Pi of the Clifford algebra for R N . As a matrix, C(x) has dimensions 2 N x 2 N , so there is no a-priori reason to expect that it can be implemented as a quantum circuit using a polynomial (in the input size N) number of two-qubit gates.
  • the disclosure provides such an implementation for these circuits, moreover the circuit depth for our implementation is loga- rithmic in N making these circuits extremely efficient.
  • This gadget is denoted as G 123 ( ⁇ ) and can be implemented, for example, using a sequence of three gates CZ 21 BS 13 ( ⁇ )CZ 21 where the CZ gates have qubit 2 as control and the BS( ⁇ ) gate acts on qubits 1 and 3.
  • the action of this gadget as described above can be verified by computing the product of the three matrices.
  • the gadget circuit is implemented by treat- ing the BS( ⁇ ) gate not as a single gate but as a sequence of three rotations.
  • the Clifford loader includes a sequence of angles that are used as inputs to the BS gates. This sequence of angles is computed from the vector x.
  • the sequence of angles for the two embodiments are described below. Note that the angle se- quence for the first embodiment is identical to the sequence described in U.S. Patent Applica- tion No. 16/986,553, which is incorporated by reference in its entirety.
  • the angle sequence for the second embodiment is specific to this disclosure.
  • the first N/2 angles (r 1 , r 2 , ... , r N/2-1 ) are defined as
  • the angle sequence for the second embodiment is defined as follows.
  • the first embodiment for constructing the Clifford loader is described here, it is illustrated for an 8-dimensional vector in Figure 1 and for a 16-dimension vector in Figures 3 A and 3B ( Figure 3B indicates levels of the C(x) circuit).
  • Recursive descrip- tions for the C(x) are given below using the gadgets. It is also explicitly shown that the total circuit depth is logarithmic in N.
  • the gates are reversed and conjugated compared to C(x) (note that CX and CZ are self-conjugate).
  • C'(x) is the C(x) followed by a se- quence of CX gates so that qubit 2 contains the parity of qubits from 2 through N at the end of the computation (e.g., see circuit C'(x 1 ) in FIG. 1).
  • arccos(x 1 )
  • the circuit depth for C(x) can be obtained from the recursive relations.
  • the gadget Gijk has depth 3 and CX(N/2+2, N/2+1) can be performed in parallel with the third layer of the gadget Gijk when we implement the circuit using these recursive relations.
  • the angles ( ⁇ 1 , ⁇ 2 , ..., ⁇ 7 ) for the vector x are computed according to the first embodiment (as described above) and are inputs to the BS gates in C(x).
  • FIG. 1 Layer 1: (BS 12 ( ⁇ 4 )
  • layers 2-4 and 6-8 implement the gadget Gijk with some parity computations being carried out in parallel in layer 4.
  • the parity computations are represented by the CX gates, the CZ gates are a part of the gadget Gijk.
  • the computed angle sequence is used in reverse order if we traverse the circuit C(x) from bottom to top and left to right in Figure 1.
  • the second embodiment of the Clifford loader uses the angles sequence de- scribed with reference to Equations 10 and 11. Let ( ⁇ 1 , ⁇ 2 , ... , ⁇ n- 1 ) be the angle sequence, then the Clifford loader according to the second embodiment may be realized as
  • Determinant sampling with classical computers is computationally expensive as the complexity of computing the determinant of a single d dimensional matrix scales as O(d 3 ).
  • O(d 2,37 ) there are complex theoretical constructions which can achieve O(d 2,37 ) for computing a single determinant but these can only outperform the standard method for very large d due to their large constant factor overheads.
  • most classical determinant sampling algorithms need to compute several determinants leading to even higher computa- tional requirements.
  • the quantum algorithm described in this disclosure has com- plexity O(dlogN).
  • the input to the determinant sampling problem is a matrix A ⁇ R Nxd , this is a matrix including n row vectors, each having dimension d.
  • the output is a subset S ⁇ [N] with
  • d such that the probability of selecting S is proportional to the squared volume of the parallelepiped spanned by the vectors in S. More formally, where A S denotes the d x d matrix obtained by selecting the rows of A that belong to S. It is clear that all the probabilities are positive, the sum of the probabilities over all possible S is 1 by the Cauchy Binet identities.
  • the output of the determinant sampler is a set S including of d ‘nearly orthogo- nal’ vectors, as the determinant is maximized when the vectors are orthogonal and is small if any of the vectors is a linear combination of the other vectors.
  • the output of the determinant sampler is a set of diverse and representa- tive vectors. This may be useful for machine learning applications where the goal is to sam- ple a set of representative features.
  • the output of the determinant sampler can also be used for low rank approxima- tion by row selection and as an input to clustering algorithms, which have been found to im- prove upon standard methods.
  • the determinant sampling algorithm using Clifford loaders is the following. Let (a 1 , a 2 , ... , a d ) be the columns of the matrix A ⁇ R Nxd . Apply the quantum circuit, C(a 1 )C(a 2 )C(a 3 ) - C(a d )
  • d, then it outputs S.
  • the above procedure uses N qubits and has circuit depth O(dlogN) using the first embodiment in part 1 to apply sequentially d Clifford loader circuits in succession.
  • the procedure succeeds with probability 1 if the columns of the matrix A are orthogonal. More generally the success probability is det(A T A).
  • the output S is a sample according to the determinant distribution. That is, the procedure is correct and solves exactly the determinant sampling problem in time O(dlogN).
  • the quantum determinant sampling algorithm with running time O(dlogN) provides a speedup over the best known classical al- gorithm with running time O(d 3 ).
  • the Clifford loader may also be useful in quantum topological data analysis where can be used to generate block encodings for Dirac operators of sim- plicial complexes.
  • Quantum processing devices also referred to as quantum computers
  • Quantum processing devices exploit the laws of quantum mechanics in order to perform computations.
  • Quantum processing devices commonly use so-called qubits, or quantum bits. While a classical bit always has a value of either 0 or 1, a qubit is a quantum mechanical system that can have a value of 0, 1, or a super- position a
  • 1.
  • Examples physi- cal implementations of qubits include superconducting qubits, ion traps, and photonics sys- tems (e.g., photons in waveguides).
  • a quantum circuit is an ordered collection of one or more gates.
  • a sub-circuit may refer to a circuit that is a part of a larger circuit.
  • a gate represents a unitary operation performed on one or more qubits.
  • a quantum computer may use a universal set of 1 and 2 qubit gates, by universal it is meant that an arbitrary quantum circuit can be written as a com- bination of these gates.
  • Quantum gates may be described using unitary matrices.
  • the depth of a quantum circuit is the least number of steps needed to execute the circuit on a quantum computer.
  • a layer of a quantum circuit may refer to a step of the circuit.
  • Instructions for executing a quantum circuit on one or more quantum computers may be stored in a non-transitory computer-readable storage medium.
  • the term “computer- readable storage medium” should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, or associated caches and servers) able to store in- structions.
  • the term “computer-readable medium” shall also be taken to include any medium that is capable of storing instructions for execution by the quantum computer and that 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 memories, optical media, and magnetic media.
  • any reference to “one embodiment” or “an embodiment” 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 are not necessarily all referring to the same embodiment.
  • use of “a” or “an” preceding an element or component is done merely for convenience. This description should be understood to mean that one or more of the element or component is present unless it is obvious that it is meant otherwise.
  • Alternative embodiments are implemented in computer hardware, firmware, software, and/or combinations thereof. Implementations can be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor; and method steps can be performed by a programmable processor executing a program of instructions to perform functions by operating on input data and gen- erating output. Embodiments can be implemented advantageously in one or more computer programs that are 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 com- puter program can be implemented in a high-level procedural or object-oriented program- ming language, or in assembly or machine language if desired; and in any case, the language can be a compiled or interpreted language.
  • Suitable processors include, by way of example, both general and special purpose microprocessors.
  • a processor will receive in- structions and data from a read-only memory and/or a random-access memory.
  • 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.
  • Storage devices suitable 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 foregoing can be supplemented by, or incorporated in, ASICs (application-specific integrated circuits) and other forms of hardware.
  • ASICs application-specific integrated circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Logic Circuits (AREA)

Abstract

This disclosure relates to methods of constructing efficient quantum circuits for Clifford loaders and variations of these methods following a similar scheme.

Description

METHODS FOR EFFICIENT IMPLEMENTATION OF UNITARY OPERATORS IN THE CLIFFORD ALGEBRA AS QUANTUM CIRCUITS AND APPLICATIONS TO LINEAR ALGEBRA AND MACHINE LEARNING Inventors: Anupam Prakash Iordanis Kerenidis BACKGROUND Technical Field [0001] This disclosure is in the field of quantum algorithms and quantum linear alge- bra. In particular, it provides a logarithmic depth construction for quantum circuits that are referred to as Clifford loaders. This disclosure is also in the field of quantum machine learn- ing. In particular it provides applications to quantum machine learning of the Clifford loader circuits. Description of Related Art [0002] Determinant sampling with classical computers is computationally expensive as the complexity of computing the determinant of a single d dimensional matrix scales as O(d3). In theory, there are complex theoretical constructions which can achieve O(d237) computing a single determinant but these can only outperform the standard method for very large d due to their large constant factor overheads. Moreover, most classical determinant sampling algorithms need to compute several determinants leading to even higher computa- tional requirements. SUMMARY [0003] This disclosure provides a logarithmic depth construction for quantum circuits that are referred to as Clifford loaders. The circuits implement certain unitary operations in the Clifford algebra and have applications to quantum linear algebra and quantum machine learning. The circuits constructed are optimized in terms of the number of qubits, depth of quantum circuit, and type of gates in the circuit. [0004] Quantum machine learning and linear algebra algorithms may depend on the ability to represent classical data as quantum states in order to use quantum procedures for linear algebra tasks. The disclosure gives procedures to efficiently represent subspaces spanned by k-vectors as quantum states using Clifford loaders. The embodiments of the dis- closure have applications to quantum machine learning, for example, for the tasks of determi- nant sampling and topological data analysis and to quantum linear algebra, for example, for projection and solution of low dimensional linear systems. [0005] Some embodiments relate to a quantum circuit for execution by a quantum com- puter, the quantum computer including at least N qubits qn. The quantum circuit includes first and second sub-circuits and a gadget circuit. The first sub-circuit includes quantum gates that are applied to N/2 qubits q1-qN/2, where, subsequent to execution of the first sub-circuit, a value of qubit q2 represents a parity of qubits q2-qN/2. The second sub-circuit is arranged to be executed concurrently with the first sub-circuit and includes quantum gates that are applied to N/2 qubits q(N/2+1)-qN. The gadget circuit is arranged to be executed after the first and second sub-circuits. The gadget circuit includes quantum gates that are applied to qubits q1, q2, and q(N/2+1), where one of the quantum gates of the gadget circuit is a BS(θ) gate. The BS(θ) gate is a single parameterized 2-qubit quantum gate. If the value of qubit q2 is 0, then the gadget circuit applies the BS(θ) gate to qubits q1 and q(N/2+1). If the value of qubit q2 is 1, then the gadget circuit instead applies a conjugate of the BS(θ) gate to qubits q1 and q(N/2+1). [0006] In some embodiments, the first sub-circuit includes a third sub-circuit, a fourth sub-circuit, and a second gadget circuit. The third sub-circuit includes quantum gates that are applied to N/4 qubits q1-qN/4, wherein, subsequent to execution of the third sub-circuit, the value of qubit q2 represents a parity of qubits q2-qN/4. The fourth sub-circuit arranged to be executed concurrently to the third sub-circuit and comprises quantum gates that are applied to N/4 qubits q(N/4+1)-qN/2. The second gadget circuit is after the third and fourth sub-circuits. The second gadget circuit comprises quantum gates that are applied to qubits q1, q2, and q(N/4+1), where one of the quantum gates of the second gadget circuit is a second BS(θ) gate. If the value of qubit q2 is 0, the second BS(θ) gate is applied to qubits q1 and q(N/4+1), and if the value of qubit q2 is 1, a conjugate of the second BS(θ) gate is applied to qubits q1 and q(N/4+1). [0007] In some embodiments, the quantum circuit further includes an X gate applied to qubit q1 after the gadget circuit. In some embodiments, the quantum circuit further includes a second gadget circuit after the X gate. The second gadget circuit comprises quantum gates that are applied to qubits q1, q2, and q(N/2+1), where one of the quantum gates of the second gadget circuit is a second BS(θ) gate. If the value of qubit q2 is 0, a conjugate of the BS(θ) gate is applied to qubits q1 and q(N/2+1), and if the value of qubit q2 is 1, the BS(θ) gate is ap- plied to qubits q1 and q(N/2+1). In some embodiments, the quantum circuit further includes a third sub-circuit after the second gadget circuit. The third sub-circuit comprises quantum gates that are applied to N/2 qubits q1-qN/2, where the quantum gates of the third sub-circuit match the quantum gates of the first sub-circuit except the quantum gates of the third sub-cir- cuit are arranged in reverse order and the BS(θ) gates are conjugated. In some embodiments, the quantum circuit further includes a fourth sub-circuit arranged to be executed concurrently to the third sub-circuit. The fourth sub-circuit comprises quantum gates that are applied to N/2 qubits q(N/2+1)-qN, where the quantum gates of the fourth sub-circuit match the quantum gates of the second sub-circuit except the quantum gates of the fourth sub-circuit are arranged in reverse order and the BS(θ) gates are conjugated. [0008] In some embodiments, the quantum circuit further includes a first layer that ap- plies a second BS(θ) gate to qubits q1 and q2 and a third BS(θ) gate to qubits q3 and q4; a sec- ond layer that applies a first CZ gate to qubits q1 and q2, where the CZ gate is a controlled Z gate; a third layer that applies a fourth BS(θ) gate to qubits q1 and q3; a fourth layer that ap- plies a second CZ gate to qubits q1 and q2 and a first CX gate to qubits q3 and q4, where the CX gate is a controlled X gate; and a fifth layer that applies a second CX gate to qubits q2 and q3. [0009] In some embodiments, the gadget sub-circuit comprises: a first layer that applies a first CZ gate to qubits q1 and q2, where the CZ gate is a controlled Z gate; a second layer that applies the BS(θ) gate to qubits q1 and q(N/2+1); and a third layer that applies a second CZ gate to qubits q1 and q2. [0010] Some embodiments relate to quantum circuit for execution by a quantum com- puter. Note that the following circuit includes nested sub-circuits. The quantum circuit in- cludes N qubits qn, with N=2K and K≥2, and K recursive circuit levels k=1 to K. Each circuit level k includes (N/2k) level-k circuits, and each level-k circuit includes one or more quantum gates applied to 2k of the qubits qn. The 2k qubits for each level-k circuit include a first qubit and a second qubit for that level-k circuit. Each level-1 circuit includes a BS gate applied to two of the qubits qn, where one of the two qubits is the first qubit of the level-1 circuit and the other of the two qubits is 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 sub-circuit, another of the level-(k-1) circuits as a second sub-circuit, and a gadget circuit comprising a BS gate. If the value of the second qubit of the first sub-circuit is 0, the gadget circuit applies the BS gate to the first qubit of the first sub-circuit and the first qubit of the second sub-circuit. If the value of the second qubit of the first sub-circuit is 1, the gadget circuit applies the conjugate of the BS gate to the first qubit of the first sub-circuit and the first qubit of the second sub-circuit. [0011] Some embodiments relate to a quantum circuit for execution by a quantum com- puter, the quantum computer including at least N qubits qn. The circuit includes a set of N-1 layers and an additional layer. The set of N-1 layers sequentially apply N-1 BS gates to the N qubits qn. 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 one of the two qubits of the layer and a new qubit. The additional layer is subsequent to 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 that the previous layers have not applied a BS gate to. [0013] In some embodiments, the X gate is applied to the new qubit of the N-1th layer. [0014] In some embodiments, the quantum circuit further includes a second set of N-1 layers after the additional layer. The second set of N-1 layers applying N-1 BS gates to the N qubits, where each layer applies a BS gate to two qubits and each subsequent layer applies a BS gate to one of the two qubits of the layer and a new qubit. In some embodiments, the BS gates in the second set of N-1 layers are conjugate gates corresponding to the BS gates in the set of N-1 layers. [0015] Other aspects include components, devices, systems, improvements, methods, processes, applications, computer readable storage mediums, and other technologies related to any of the above. BRIEF DESCRIPTION OF THE DRAWINGS [0016] The embodiments of the disclosure which we designate as a Clifford loader have other advantages and features which will be more readily apparent from the following de- tailed description and the claims, when taken in conjunction with the accompanying example drawings, in which: [0017] A Clifford loader is parametrized by a single vector of dimension N so that for each vector x = (x1, x2,…,xN) with Euclidean norm 1, there is a corresponding Clifford loader that we designate as C(x). Fig.1 is a diagram showing a quantum circuit used for implement- ing a Clifford loader for a given vector of dimension 8, using a single parametrized two-qubit gate (referred to as “BS”) and two-qubit controlled X and controlled Z gates, according a first embodiment. [0018] Fig.2 is a diagram showing a quantum circuit for implementing the Clifford loader for a given vector of dimension 8, the BS gate, according to a second embodiment. [0019] Figs. 3A and 3B are diagrams showing a quantum circuit used for implementing a Clifford loader for a given vector of dimension 16, using a single parametrized two-qubit gate (referred to as “BS”) and two-qubit controlled X and controlled Z gates, according to the first embodiment.
[0020] The figures depict various embodiments for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodi- ments of the structures and methods illustrated herein may be employed without departing from the principles described herein. For example, by changing the specifics of the BS gate or by using a different/less optimized methods for parity computations using controlled Z gates.
DETAILED DESCRIPTION OF CERTAIN EMBODIMENTS
[0021] The figures and the following description relate to preferred embodiments by way of illustration only. It should be noted that from the following discussion, alternative em- bodiments of the structures and methods disclosed herein will be readily recognized as viable alternatives that may be employed without departing from the principles of what is disclosed.
Part 1: Clifford Loaders
[0022] A classical vector is represented by N-dimensional coordinates (x1, x2, ... , xN) where xi is a real number and the Euclidean norm of the vector is 1. For clarity of presenta- tion of this particular aspect, we will assume that N is a power of 2, but our methods can ex- tend to the general case.
[0023] For the classical vector x = (x1, x2, ... , xN), we describe a certain unitary operator in the Clifford algebra, a Clifford loader corresponds to the implementation of this unitary operator.
[0024] The Pauli matrices X and Z correspond to single qubit bit flip and phase flip op- erators and these are anti-commuting matrices with dimension 2. Let Pt = Zi-1XIN-i where the string represents a tensor product of N Pauli operators and the X operator is at position i. The unitary operator implemented by the Clifford loader for vector x acts on N qubits and is given as:
[0025] The operator C(x) is unitary for all vectors x with Euclidean norm 1 as it squares to the identity. It belongs to the Clifford algebra as it is a linear combination of the generators Pi of the Clifford algebra for RN. As a matrix, C(x) has dimensions 2N x 2N, so there is no a-priori reason to expect that it can be implemented as a quantum circuit using a polynomial (in the input size N) number of two-qubit gates. The disclosure provides such an implementation for these circuits, moreover the circuit depth for our implementation is loga- rithmic in N making these circuits extremely efficient.
[0026] We will use one type of parametrized two-qubit gate that we call BS(θ) and has the following description in the standard basis:
Note that one can use other similar gates that are derived by permuting the rows and columns of the above matrix, or by introducing a phase element e^{i*p} instead of the last 1, or by changing the two elements sin(θ) and -sin(θ) to for example i*sin(θ) and i*sin(θ). All these gates are practically equivalent and our method can use any of them. We note that the conju- gate of the BS gate is obtained by reversing the angle, that is BS(θ)* = BS(—θ).
[0027] We will also use controlled Z and controlled X gates which have the following descriptions in the standard basis: where the second qubit is being used as control qubit for both the gates. Note that an applica- tion of the CX gate can be viewed as a parity computation. For example, CX21 |x1, x2 >= Parity refers to whether the sum of two numbers (e.g., x1 and x2) is odd or even.
[0028] We introduce two matrix identities that can be verified by direct computation on the 4-dimensional matrices 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 constructions.
BS(θ)(XI)BS(θ)* = cos(θ)XI + sin(θ)ZX (4)
BS(θ)(ZZ)BS(θ)* = ZZ. (5)
[0029] For the construction of the Clifford loader circuit we need a gadget (a term used for sub-circuits that perform a specific function in circuit complexity theory) that acts on three qubits (in increasing order, say 1,2 and 3 for convenience) as follows: if qubit 2 is 0 (e.g., on the standard basis) it applies the operation BS(θ) to qubits 1 and 3 and if qubit 2 is 1 (e.g., on the standard basis) it applies the operation BS(θ)* instead. This gadget is denoted as G123 (θ) and can be implemented, for example, using a sequence of three gates CZ21BS13(θ)CZ21 where the CZ gates have qubit 2 as control and the BS(θ) gate acts on qubits 1 and 3. The action of this gadget as described above can be verified by computing the product of the three matrices. In another example, the gadget circuit is implemented by treat- ing the BS(θ) gate not as a single gate but as a sequence of three rotations.
[0030] In addition to the gadgets, the Clifford loader includes a sequence of angles that are used as inputs to the BS gates. This sequence of angles is computed from the vector x. The sequence of angles for the two embodiments are described below. Note that the angle se- quence for the first embodiment is identical to the sequence described in U.S. Patent Applica- tion No. 16/986,553, which is incorporated by reference in its entirety. The angle sequence for the second embodiment is specific to this disclosure.
[0031] Although the angle sequence for the first embodiment is identical to the se- quence described in U.S. Patent Application No. 16/986,553, it is briefly described here for completeness. First, we define an auxiliary series (r1, r2, ... , rN) of intermediate squared am- plitudes for the vector x. The last N/2 values (rN/2, rN/2+1, ... , rN-1.) are defined as: for index j ∈ [1, n/2], The first N/2-1 values are then defined as: for index j starting at N/2 going down to 1. The last N/2 angles are defined as:
The first N/2 angles (r1, r2, ... , rN/2-1) are defined as
[0032] The angle sequence for the second embodiment is defined as follows. The first angle is: θ1 = arccos(x1) (10) and the subsequent angles are defined as, for 1 < i < N.
[00331 Similar ways of defining the values of the angles are possible and fall into the same method as ours for both the embodiments. For example, signs for the angles may be flipped or multiples of π may be added to the angles.
[0034] We can now define two different quantum circuits for implementing the Clifford loader for an arbitrary vector x = (x1, x2, ... , xN). The first step of the con- struction is the computation of an angle sequence (as described above). Both of these se- quences can be computed and used as parameters for the Clifford loader circuits. The compu- tational time to determine an angle sequence may be linearly proportional to the dimension of the vector x.
[0035] The first embodiment for constructing the Clifford loader is described here, it is illustrated for an 8-dimensional vector in Figure 1 and for a 16-dimension vector in Figures 3 A and 3B (Figure 3B indicates levels of the C(x) circuit). The Clifford loader circuit ac- cording to the first embodiment includes an X gate on the first qubit sandwiched between quantum circuit C(x) on the left side and its adjoint (C(x)*)on the right side (where C(x) and C(x)* each have logarithmic depth), that is C(x) = C(x)(XIN-1)C(x)*. Recursive descrip- tions for the C(x) are given below using the gadgets. It is also explicitly shown that the total circuit depth is logarithmic in N. For C(x)*, the gates are reversed and conjugated compared to C(x) (note that CX and CZ are self-conjugate).
[0036] We introduce some notation that is used for composing two distinct quantum circuits S1 and S2. In these descriptions we use the notation (S1 | |S2) for quantum circuits and S2 being run in parallel on separate sets of qubits and (S1, S2) to denote the sequential composition of the circuits on the same set of qubits. Note that a circuit is an ordered collec- tion of one or more gates. For example, a circuit can include only a single gate. A sub-circuit may refer to a circuit that is a part of a larger circuit. We also include an auxiliary circuit that composes the Clifford loader with CX gates. Define C'(x) to be the C(x) followed by a se- quence of CX gates so that qubit 2 contains the parity of qubits from 2 through N at the end of the computation (e.g., see circuit C'(x1) in FIG. 1).
[0037] We now give an example recursive construction for the circuits C(x) in FIG. 1. As described above, a Clifford loader can be obtained by applying circuits C(x) and C(x)* with an X gate between them. The dimension of vector x (i.e., N) is assumed to be a power of 2. This assumption may be made without loss of generality as we can pad the vector x with some Os to make it’s dimension a power of 2. For a two dimensional unit vector x ∈ R2, the Clifford loader by definition is the circuit cos(θ)XI + sin(θ)ZX, where θ = arccos(x1) so we have C(x) = C(x') = BS(θ) using the identity in Equation 4. We use this 2-dimensional construction as a base case for our recursive construction, using it to build Clifford loaders for higher dimensional vectors. We next give the recursive definition for C(x) and C'(x) for higher dimensional vectors. Let x1 and x2 be the N/2 dimensional vectors representing the two halves of the vector x, that is x1 = (x1, x2, ... , xN/2) and x2 = (xN/2+1, xN/2+2, ... , xN) then the Clifford loader for vector x is constructed using the recursive relations: where Gijk is the three qubit gadget and CX(i,j) = CXij represents the controlled X gates with the qubit i acting as the control qubit.
[0038] The circuit depth for C(x) can be obtained from the recursive relations. Let d(N) be the circuit depth as a function of dimension, then d(2)=1 and from the recursion we have d(N) = d'(N/2) + 3 and d'(N) = d'(N/2) + 4. Note that the gadget Gijk has depth 3 and CX(N/2+2, N/2+1) can be performed in parallel with the third layer of the gadget Gijk when we implement the circuit using these recursive relations. Thus, the explicit solution for these recurrences is d(N) = 4(log2N — 1) for N power of 2 greater than 2.
[0039] We unroll the recursion and give an explicit description of C (x) for 4- and 8- dimensional vectors x. The 4-dimensional C(x) circuit has depth 4*(2-1) = 4. It uses angles (θ1, θ2, θ3) for the vector x computed according to the first embodiment (as described above) as inputs to the BS gates. We give a gate level description of the 4 layers in the circuit C(x): Layer 1: (BS122) | |BS343)) Layer 2: CZ21 Layer 3: BS131)
Layer 4: CZ21
The 8-dimensional C(x) circuit will have depth 4*(3-1) = 8 as described above. The angles (θ1, θ2, ...,θ7 ) for the vector x are computed according to the first embodiment (as described above) and are inputs to the BS gates in C(x). We give a gate level description of all the 8 layers in the circuit C(x), which is illustrated in FIG. 1 : Layer 1: (BS124)||BS345)||BS566)||BS787)) Layer 2: (CZ21||CZ65) Layer 3: ((BS132) | |BS573))
Layer 4: (CZ21||CZ65||CX43||CX78)
Layer 5: (CZ32||CZ76)
Layer 6: CZ21
Layer 7: BS151)
Layer 8: CZ21
Note that layers 2-4 and 6-8 implement the gadget Gijk with some parity computations being carried out in parallel in layer 4. Specifically, the parity computations are represented by the CX gates, the CZ gates are a part of the gadget Gijk. Note that the computed angle sequence is used in reverse order if we traverse the circuit C(x) from bottom to top and left to right in Figure 1.
[0040] The second embodiment of the Clifford loader uses the angles sequence de- scribed with reference to Equations 10 and 11. Let (θ12, ... , θn- 1) be the angle sequence, then the Clifford loader according to the second embodiment may be realized as
In contrast to the first embodiment, for implementing the Clifford loader C(x) for an n di- mensional vector x, it uses (n-1) BS gates in sequence, it has linear circuit depth. An example circuit Clifford loader circuit according to the second embodiment may be seen in FIG. 2.
Part 2: Applications of Clifford Loaders
[0041] We now show how to use the Clifford loader to applications in quantum ma- chine learning related to determinant sampling. In particular, we show how to use the Clifford loader to solve the fundamental problem of sampling according to determinant distri- butions and its application to representative feature selection.
[0042] Determinant sampling with classical computers is computationally expensive as the complexity of computing the determinant of a single d dimensional matrix scales as O(d3). In theory, there are complex theoretical constructions which can achieve O(d2,37) for computing a single determinant but these can only outperform the standard method for very large d due to their large constant factor overheads. Moreover, most classical determinant sampling algorithms need to compute several determinants leading to even higher computa- tional requirements. In contrast, the quantum algorithm described in this disclosure has com- plexity O(dlogN). [0043] The input to the determinant sampling problem is a matrix A ∈ RNxd, this is a matrix including n row vectors, each having dimension d. The output is a subset S ⊂ [N] with |S| = d such that the probability of selecting S is proportional to the squared volume of the parallelepiped spanned by the vectors in S. More formally, where AS denotes the d x d matrix obtained by selecting the rows of A that belong to S. It is clear that all the probabilities are positive, the sum of the probabilities over all possible S is 1 by the Cauchy Binet identities.
[0044] The output of the determinant sampler is a set S including of d ‘nearly orthogo- nal’ vectors, as the determinant is maximized when the vectors are orthogonal and is small if any of the vectors is a linear combination of the other vectors. The row vectors in the output of the determinant sampler are guaranteed not to have any linear dependence among them, as det(XS)= 0, if there is a linear dependence then and in this case S will not appear in the out- put of the sampler. The output of the determinant sampler is a set of diverse and representa- tive vectors. This may be useful for machine learning applications where the goal is to sam- ple a set of representative features.
[0045] As an example use case, consider a large dataset of users and features associated with the users, where the goal is to select a set of users with representative and diverse fea- tures. Determinant sampling selects a group of users that are diverse and representative of the dataset. It is a technique to obtain a succinct summary of a large dataset that retains all the different groups of users present in it.
[0046] The output of the determinant sampler can also be used for low rank approxima- tion by row selection and as an input to clustering algorithms, which have been found to im- prove upon standard methods.
[0047] The following describes a method to perform determinant sampling using a combination of Clifford loaders. Recall from part 1 that the Clifford loader C(x) = is a unitary operator defined for every N dimensional vector x. Further, with respect to the first embodiment, we provided implementations for the Clifford loader using O(NlogN) two qubit gates and with a circuit depth of O(JogN)
[0048] The determinant sampling algorithm using Clifford loaders is the following. Let (a1, a2, ... , ad) be the columns of the matrix A ∈ RNxd. Apply the quantum circuit, C(a1)C(a2)C(a3) - C(ad) |0N› (16) and measure the resulting state in the standard basis. The result of these operations is a quan- tum superposition over bit strings where the amplitude of a bit string with d ones and (N-d) zeros is the determinant det(As). Measuring in the standard basis therefore samples from the determinant distribution with The quantum algorithm measures in the standard basis to obtain an N-bit output string. Let S be the set of ones in the output string, if |S|=d, then it outputs S.
[0049] The above procedure uses N qubits and has circuit depth O(dlogN) using the first embodiment in part 1 to apply sequentially d Clifford loader circuits in succession. The procedure succeeds with probability 1 if the columns of the matrix A are orthogonal. More generally the success probability is det(ATA).
[0050] If the procedure described above with reference to Eqn. 16 succeeds, the output S is a sample according to the determinant distribution. That is, the procedure is correct and solves exactly the determinant sampling problem in time O(dlogN).
[0051] The success probability for the determinant sampler may be improved by multi- plying the matrix A by a random sign matrix or a Hadamard matrix before and running the determinant sampler for A’ = AH. Using the state-of-the-art procedures for multiplication by a Hadamard matrix, such pre-processing can be carried out in time linear in the number of non-zero entries of A.
[0052] For the case when A is an orthogonal matrix, the quantum determinant sampling algorithm with running time O(dlogN) provides a speedup over the best known classical al- gorithm with running time O(d3).
[0053] More generally, the sequence of Clifford loader operations
C(a1)C(a2)C(a3)... C (ad) |0N) provides a representation of the k-dimensional subspace spanned by the vectors (a1, a2, ... , ad). Again the success probability of getting this represen- tation is higher if the vectors are orthonormal. This makes the Clifford loader useful for find- ing projections onto linear subspaces for low dimensional subspaces.
[0054] The Clifford loader may also be useful in quantum topological data analysis where can be used to generate block encodings for Dirac operators of sim- plicial complexes.
[0055] While part 2 is described with reference to the first embodiment of the Clifford loader, the second embodiment of the Clifford load may alternatively be used. In these cases, the running time will be O(dN). Additional Considerations
[0056] Quantum processing devices (also referred to as quantum computers) exploit the laws of quantum mechanics in order to perform computations. Quantum processing devices commonly use so-called qubits, or quantum bits. While a classical bit always has a value of either 0 or 1, a qubit is a quantum mechanical system that can have a value of 0, 1, or a super- position a|0› + β| 1› of both values, where a, β ∈ C and |a|2 + | β 2| = 1. Examples physi- cal implementations of qubits include superconducting qubits, ion traps, and photonics sys- tems (e.g., photons in waveguides).
[0057] A quantum circuit is an ordered collection of one or more gates. A sub-circuit may refer to a circuit that is a part of a larger circuit. A gate represents a unitary operation performed on one or more qubits. A quantum computer may use a universal set of 1 and 2 qubit gates, by universal it is meant that an arbitrary quantum circuit can be written as a com- bination of these gates. Quantum gates may be described using unitary matrices. The depth of a quantum circuit is the least number of steps needed to execute the circuit on a quantum computer. A layer of a quantum circuit may refer to a step of the circuit.
[0058] Instructions for executing a quantum circuit on one or more quantum computers may be stored in a non-transitory computer-readable storage medium. The term “computer- readable storage medium” should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, or associated caches and servers) able to store in- structions. The term “computer-readable medium” shall also be taken to include any medium that is capable of storing instructions for execution by the quantum computer and that 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 memories, optical media, and magnetic media.
[0059] The approaches described above may be amenable to a cloud quantum compu- ting system, where quantum computing is provided as a shared service to separate users. One example is described in Patent Application Ser. No. 15/446,973, “Quantum Computing as a Service,” which is incorporated herein by reference.
[0060] Some portions of above description describe the embodiments in terms of algo- rithmic processes or operations. These algorithmic descriptions and representations are com- monly used by those skilled in the computing arts to convey the substance of their work ef- fectively to others skilled in the art. These operations, while described functionally, compu- tationally, or logically, are understood to be implemented by computer programs comprising instructions for execution by a processor or equivalent electrical circuits, microcode, or the like. Furthermore, it has also proven convenient at times, to refer to these arrangements of functional operations as modules, without loss of generality.
[0061] As used herein, any reference to “one embodiment” or “an embodiment” 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 are not necessarily all referring to the same embodiment. Similarly, use of “a” or “an” preceding an element or component is done merely for convenience. This description should be understood to mean that one or more of the element or component is present unless it is obvious that it is meant otherwise.
[0062] Where values are described as “approximate” or “substantially” (or their deriva- tives), such values should be construed as accurate +/- 10% unless another meaning is appar- ent from the context. From example, “approximately ten” should be understood to mean “in a range from nine to eleven.”
[0063] As used herein, the terms “comprises,” “comprising,” “includes,” “including,”
“has,” “having” or any other variation thereof, are intended to cover a non-exclusive inclu- sion. For example, a process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Further, unless expressly stated to the contrary, “or” refers to an inclusive or and not to an exclusive or. For example, a condition A or B is satisfied by any one of the following: A is true (or present) and B is false (or not present), A is false (or not present) and B is true (or present), and both A and B are true (or present).
[0064] Various other modifications, changes and variations which will be apparent to those skilled in the art may be made in the arrangement, operation and details of the method and apparatus disclosed herein without departing from the spirit and scope as defined in the appended claims. Therefore, the scope of the invention should be determined by the ap- pended claims and their legal equivalents.
[0065] Alternative embodiments are implemented in computer hardware, firmware, software, and/or combinations thereof. Implementations can be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor; and method steps can be performed by a programmable processor executing a program of instructions to perform functions by operating on input data and gen- erating output. Embodiments can be implemented advantageously in one or more computer programs that are 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 com- puter program can be implemented in a high-level procedural or object-oriented program- ming language, or in assembly or machine language if desired; and in any case, the language can be a compiled or interpreted language. Suitable processors include, by way of example, both general and special purpose microprocessors. Generally, a processor will receive in- structions and data from a read-only memory and/or a random-access memory. Generally, 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. Storage devices suitable 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 foregoing can be supplemented by, or incorporated in, ASICs (application-specific integrated circuits) and other forms of hardware.

Claims

WHAT IS CLAIMED IS:
1. A non-transitory computer-readable storage medium comprising stored in- structions to execute a quantum circuit by a quantum computer, the quantum computer com- prising at least N qubits qn, the stored instructions, when executed by the quantum computer, cause the quantum computer to perform operations comprising: executing a first sub-circuit comprising quantum gates that are applied to N/2 qubits q1-qN/2, wherein, subsequent to execution of the first sub-circuit, a value of qubit q2 represents a parity of qubits q2-qN/2; executing a second sub-circuit concurrently to the first sub-circuit, the second sub-cir- cuit comprising quantum gates that are applied to N/2 qubits q(N/2+1)-qN; and executing a gadget circuit after the first and second sub-circuits, the gadget circuit comprising quantum gates that are applied to qubits q1, q2, and q(N/2+1), wherein one of the quantum gates of the gadget circuit is a BS(θ) gate, the BS(θ) gate being a single parameterized 2-qubit quantum gate, wherein: if the value of qubit q2 is 0, the BS(θ) gate is applied to qubits qi and q(N/2+1), and if the value of qubit q2 is 1, a conjugate of the BS(θ) gate is applied to qubits qi and q(N/2+1).
2. The non-transitory computer-readable storage medium of claim 1, wherein ex- ecuting the first sub-circuit comprises: executing a third sub-circuit comprising quantum gates that are applied to N/4 qubits q1-qN/4, wherein, subsequent to execution of the third sub-circuit, the value of qubit q2 represents a parity of qubits q2-qN/4; executing a fourth sub-circuit concurrently to the third sub-circuit and comprising quantum gates that are applied to N/4 qubits q(N/2+1)-qN/2; and executing a second gadget circuit after the third and fourth sub-circuits, the second gadget circuit comprising quantum gates that are applied to qubits q1, q2, and q(N/4+1), wherein one of the quantum gates of the second gadget circuit is a sec- ond BS(θ) gate, wherein: if the value of qubit q2 is 0, the second BS(θ) gate is applied to qubits q1 and q(N/4+1), and if the value of qubit q2 is 1, a conjugate of the second BS(θ) gate is applied to qubits q1 and q(N/4+1).
3. The non-transitory computer-readable storage medium of claim 1, wherein the operations further comprise executing an X gate applied to qubit qi after the gadget circuit.
4. The non-transitory computer-readable storage medium of claim 3, wherein the operations further comprise: executing a second gadget circuit after the X gate, the second gadget circuit compris- ing quantum gates that are applied to qubits q1, q2, and q(N/2+1), wherein one of the quantum gates of the second gadget circuit is a second BS(θ) gate, wherein: if the value of qubit q2 is 0, a conjugate of the BS(θ) gate is applied to qubits qi and q(N/2+1), and if the value of qubit q2 is 1, the BS(θ) gate is applied to qubits qi and q(N/2+1),
5. The non-transitory computer-readable storage medium of claim 4, wherein the operations further comprise: executing a third sub-circuit after the second gadget circuit, the third sub-circuit com- prising quantum gates that are applied to N/2 qubits q1-qN/2, wherein the quan- tum gates of the third sub-circuit match the quantum gates of the first sub-cir- cuit except the quantum gates of the third sub-circuit are arranged in reverse order and the BS(θ) gates are conjugated.
6. The non-transitory computer-readable storage medium of claim 5, wherein the operations further comprise: executing a fourth sub-circuit concurrently to the third sub-circuit, the fourth sub-cir- cuit comprising quantum gates that are applied to N/2 qubits q(N/2+1)-qN, wherein the quantum gates of the fourth sub-circuit match the quantum gates of the second sub-circuit except the quantum gates of the fourth sub-circuit are arranged in reverse order and the BS(θ) gates are conjugated.
7. The non-transitory computer-readable storage medium of claim 1, wherein ex- ecuting the first sub-circuit comprises: executing a first layer that applies a second BS(θ) gate to qubits q1 and q2 and a third BS(θ) gate to qubits q3 and q4; executing a second layer that applies a first CZ gate to qubits q1 and q2, wherein the CZ gate is a controlled Z gate; executing a third layer that applies a fourth BS(θ) gate to qubits q1 and q3; executing a fourth layer that applies a second CZ gate to qubits qi and q2 and a first CX gate to qubits q3 and q4, wherein the CX gate is a controlled X gate; and executing a fifth layer that applies a second CX gate to qubits q2 and q3.
8. The non-transitory computer-readable storage medium of claim 1, wherein ex- ecuting the gadget sub-circuit comprises: executing a first layer that applies a first CZ gate to qubits q1 and q2, wherein the CZ gate is a controlled Z gate; executing a second layer that applies the BS(θ) gate to qubits q1 and q(N/2+1); and executing a third layer that applies a second CZ gate to qubits q1 and q2.
9. The non-transitory computer-readable storage medium of claim 1, wherein the conjugate of the BS(θ) gate is BS(-θ).
10. The non-transitory computer-readable storage medium of claim 1, wherein the BS(θ) gate has the form:
BS(θ) = [[1, 0, 0, 0], [0, cos(θ), sin(θ), 0], [0, -sin(θ), cos(θ), 0], [0, 0, 0, 1]]
11. A method for executing a quantum circuit by a quantum computer, the quan- tum computer comprising at least N qubits qn, the method comprising: executing, by the quantum computer, a first sub-circuit comprising quantum gates that are applied to N/2 qubits q1-qN/2, wherein, subsequent to execution of the first sub-circuit, a value of qubit q2 represents a parity of qubits q2-qN/2; executing, by the quantum computer, a second sub-circuit concurrently to the first sub-circuit, the second sub-circuit comprising quantum gates that are applied to N/2 qubits q(N/2+1)-qN; and executing, by the quantum computer, a gadget circuit after the first and second sub- circuits, the gadget circuit comprising quantum gates that are applied to qubits q1, q2, and q(N/2+1), wherein one of the quantum gates of the gadget circuit is a BS(θ) gate, the BS(θ) gate being a single parameterized 2-qubit quantum gate, wherein: if the value of qubit q2 is 0, a BS(θ) gate is applied to qubits q1 and q(N/2+1), the BS(6) gate being a single parameterized 2-qubit gate, and if the value of qubit q2 is 1, a conjugate of the BS(θ) gate is applied to qubits q1 and q(N/2+1).
12. The method of claim 11, wherein executing the first sub-circuit comprises: executing a third sub-circuit comprising quantum gates that are applied to N/4 qubits q1-qN/4, wherein, subsequent to execution of the third sub-circuit, the value of qubit q2 represents a parity of qubits q2-qN/4; executing a fourth sub-circuit concurrently to the third sub-circuit and comprising quantum gates that are applied to N/4 qubits q(N/2+1)-qN/2; and executing a second gadget circuit after the third and fourth sub-circuits, the second gadget circuit comprising quantum gates that are applied to qubits q1, q2, and q(N/2+1), wherein one of the quantum gates of the second gadget circuit is a sec- ond BS(θ) gate, wherein: if the value of qubit q2 is 0, the second BS(θ) gate is applied to qubits q1 and q(N/2+1), and if the value of qubit q2 is 1, a conjugate of the second BS(θ) gate is applied to qubits q1 and q(N/2+1).
13. The method of claim 11, further comprising executing an X gate applied to qubit qi after the gadget circuit.
14. The method of claim 13, further comprising: executing a second gadget circuit after the X gate, the second gadget circuit compris- ing quantum gates that are applied to qubits q1, q2, and q(N/2+1), wherein one of the quantum gates of the second gadget circuit is a second BS(θ) gate, wherein: if the value of qubit q2 is 0, a conjugate of the BS(θ) gate is applied to qubits qi and q(N/2+1), and if the value of qubit q2 is 1, the BS(θ) gate is applied to qubits qi and q(N/2+1).
15. The method of claim 14, further comprising: executing a third sub-circuit after the second gadget circuit, the third sub-circuit com- prising quantum gates that are applied to N/2 qubits q1-qN/2, wherein the quan- tum gates of the third sub-circuit match the quantum gates of the first sub-cir- cuit except the quantum gates of the third sub-circuit are arranged in reverse order and the BS(θ) gates are conjugated.
16. The method of claim 15, further comprising: executing a fourth sub-circuit concurrently to the third sub-circuit, the fourth sub-cir- cuit comprising quantum gates that are applied to N/2 qubits q(N/2+1)-qN, wherein the quantum gates of the fourth sub-circuit match the quantum gates of the second sub-circuit except the quantum gates of the fourth sub-circuit are arranged in reverse order and the BS(θ) gates are conjugated.
17. The method of claim 11, wherein executing the first sub-circuit comprises: executing a first layer that applies a second BS(θ) gate to qubits q1 and q2 and a third
BS(θ) gate to qubits q3 and q4; executing a second layer that applies a first CZ gate to qubits q1 and q2, wherein the CZ gate is a controlled Z gate; executing a third layer that applies a fourth BS(θ) gate to qubits q1 and q3; executing a fourth layer that applies a second CZ gate to qubits q1 and q2 and a first CX gate to qubits q3 and q4, wherein the CX gate is a controlled X gate; and executing a fifth layer that applies a second CX gate to qubits q2 and q3.
18. The method of claim 11 , wherein executing the gadget sub-circuit comprises: executing a first layer that applies a first CZ gate to qubits q1 and q2, wherein the CZ gate is a controlled Z gate; executing a second layer that applies the BS(6) gate to qubits q1 and q(N/2+1); and executing a third layer that applies a second CZ gate to qubits q1 and q2.
19. The method of claim 11, wherein the conjugate of the BS(θ) gate is BS(-θ).
20. A quantum circuit for execution by a quantum computer, the quantum circuit comprising:
N qubits qn, with N=2K and K≥2; and
K recursive circuit levels k=1 to K, wherein: each circuit level k comprises (N/2k) level-k circuits, and each level-k circuit comprises one or more quantum gates applied to 2k of the qubits qn, the 2k qubits for each level-k circuit comprising a first qubit and a second qubit for that level-k circuit; each level- 1 circuit comprises a BS gate applied to two of the qubits qn, where one of the two qubits is the first qubit of the level- 1 circuit and the other of the two qubits is the second qubit of the level- 1 circuit; each level-k circuit for k≥2 comprises: one of the level-(k-1) circuits as a first sub-circuit and another of the level-(k-1) circuits as a second sub-circuit; and a gadget circuit comprising a BS gate, wherein: if the value of the second qubit of the first sub-circuit is 0, the BS gate is applied to the first qubit of the first sub-circuit and the first qubit of the second sub-circuit; and if the value of the second qubit of the first sub-circuit is 1, a conjugate of the BS gate is applied to the first qubit of the first sub-circuit and the first qubit of the second sub-circuit.
21. A non-transitory computer-readable storage medium comprising stored in- structions to execute a quantum circuit by a quantum computer, the quantum computer com- prising at least N qubits, the stored instructions, when executed by the quantum computer, cause the quantum computer to perform operations comprising: executing a set of N-1 layers that apply N-1 BS gates to N qubits, each BS gate being a single parameterized 2-qubit gate, wherein each layer applies a BS gate to two qubits and each subsequent layer applies a BS gate to one of the two qubits in the layer and a new qubit; and executing an additional layer after to the set of N-1 layers, the layer applying an X gate to one of the qubits.
22. The non-transitory computer-readable storage medium of claim 21, wherein the new qubit in each subsequent layer is a qubit that the previous layers have not applied a BS gate to.
23. The non-transitory computer-readable storage medium of claim 21, wherein the X gate is applied to the new qubit of the N-1th layer.
24. The non-transitory computer-readable storage medium of claim 21, wherein the operations further comprise: executing a second set of N-1 layers after the additional layer, the second set of N-1 layers applying N-1 BS gates to the N qubits, wherein each layer applies a BS gate to two qubits and each subsequent layer applies a BS gate to one of the two qubits of the layer and a new qubit.
25. The non-transitory computer-readable storage medium of claim 24, wherein the BS gates in the second set of N-1 layers are conjugate gates corresponding to the BS gates in the set of N-1 layers.
26. The non-transitory computer-readable storage medium of claim 21, wherein N is a power of 2.
27. The non-transitory computer-readable storage medium of claim 21, wherein each BS gate has the form: BS(θ) = [[1, 0, 0, 0], [0, cos(θ), sin(θ), 0], [0, -sin(θ), cos(θ), 0], [0, 0, 0, 1]]
28. A method for executing a quantum circuit by a quantum computer, the quan- tum computer comprising at least N qubits, the method comprising: executing a set of N-1 layers that apply N-1 BS gates to N qubits, each BS gate being a single parameterized 2-qubit gate, wherein each layer applies a BS gate to two qubits and each subsequent layer applies a BS gate to one of the two qubits of the layer and a new qubit; and executing an additional layer after to the set of N-1 layers, the layer applying an X gate to one of the qubits.
29. The method of claim 28, wherein the new qubit in each subsequent layer is a qubit that the previous layers have not applied a BS gate to.
30. The method of claim 28, wherein the X gate is applied to the new qubit of the
N- 1th layer.
31. The method of claim 28, further comprising: executing a second set of N-1 layers after the additional layer, the second set of N-1 layers applying N-1 BS gates to the N qubits, wherein each layer applies a BS gate to two qubits and each subsequent layer applies a BS gate to one of the two qubits of the layer and a new qubit.
32. The method of claim 31, wherein the BS gates in the second set of N-1 layers are conjugate gates corresponding to the BS gates in the set of N-1 layers.
33. The method of claim 28, wherein N is a power of 2.
34. The method of claim 28, wherein each BS gate has the form:
BS(θ) = [[1, 0, 0, 0], [0, cos(θ), sin(θ), 0], [0, -sin(θ), cos(θ), 0], [0, 0, 0, 1]]
35. A quantum circuit for execution by a quantum computer, the quantum com- puter comprising at least N qubits, the quantum circuit comprising: a set of N-1 layers that apply N-1 BS gates to N qubits qn, each BS gate being a single parameterized 2-qubit gate, wherein each layer applies a BS gate to two qubits and each subsequent layer applies a BS gate to one of the two qubits and a new qubit; and an additional layer subsequent to the set of N-1 layers, the layer applying an X gate to one of the qubits.
36. The quantum circuit of claim 35, wherein the new qubit in each subsequent layer is a qubit that the previous layers have not applied a BS gate to.
37. The quantum circuit of claim 35, wherein the X gate is applied to the new qubit of the N- 1th layer.
38. The quantum circuit of claim 35, further comprising: a second set of N-1 layers after the additional layer, the second set of N-1 layers ap- plying N-1 BS gates to die N qubits, wherein each layer applies a BS gate to two qubits and each subsequent layer applies a BS gate to one of the two qubits and a new qubit.
39. The quantum circuit of claim 38, wherein the BS gates in the second set of N-
1 layers are conjugate gates corresponding to the BS gates in the set of N-1 layers.
40. The quantum circuit of claim 35, wherein N is a power of 2.
EP21939575.3A 2021-04-29 2021-10-05 Methods for efficient implementation of unitary operators in the clifford algebra as quantum circuits Pending EP4320561A1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US17/244,362 US11816538B2 (en) 2021-04-29 2021-04-29 Methods for efficient implementation of unitary operators in the Clifford algebra as quantum circuits and applications to linear algebra and machine learning
US17/244,840 US11922272B2 (en) 2021-04-29 2021-04-29 Methods for efficient implementation of unitary operators in the Clifford algebra as quantum circuits and applications to linear algebra and machine learning
PCT/US2021/053653 WO2022231650A1 (en) 2021-04-29 2021-10-05 Methods for efficient implementation of unitary operators in the clifford algebra as quantum circuits

Publications (1)

Publication Number Publication Date
EP4320561A1 true EP4320561A1 (en) 2024-02-14

Family

ID=83848739

Family Applications (1)

Application Number Title Priority Date Filing Date
EP21939575.3A Pending EP4320561A1 (en) 2021-04-29 2021-10-05 Methods for efficient implementation of unitary operators in the clifford algebra as quantum circuits

Country Status (4)

Country Link
EP (1) EP4320561A1 (en)
JP (1) JP2024515861A (en)
KR (1) KR20240001245A (en)
WO (1) WO2022231650A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6518786B2 (en) * 2001-06-15 2003-02-11 Trw Inc. Combinational logic using asynchronous single-flux quantum gates
US9514415B2 (en) * 2013-03-15 2016-12-06 Microsoft Technology Licensing, Llc Method and system for decomposing single-qubit quantum circuits into a discrete basis
US11113621B2 (en) * 2018-01-08 2021-09-07 Massachusetts Institute Of Technology System and technique for loading classical data into a quantum computer
US20210271477A1 (en) * 2018-07-06 2021-09-02 Google Llc Preparing superpositions of computational basis states on a quantum computer
US11023638B2 (en) * 2019-04-05 2021-06-01 QC Ware Corp. Method for reducing cost and increasing accuracy of variational quantum circuit optimization

Also Published As

Publication number Publication date
KR20240001245A (en) 2024-01-03
WO2022231650A1 (en) 2022-11-03
JP2024515861A (en) 2024-04-10

Similar Documents

Publication Publication Date Title
Bena et al. Algorithmically solving the tadpole problem
Tantivasadakarn et al. Hierarchy of topological order from finite-depth unitaries, measurement, and feedforward
US11468357B2 (en) Hybrid quantum-classical computer for packing bits into qubits for quantum optimization algorithms
US9275011B2 (en) Fast quantum and classical phase estimation
Laarhoven Sieving for shortest vectors in lattices using angular locality-sensitive hashing
Jin et al. An alternating direction method with continuation for nonconvex low rank minimization
Wang et al. Global convergence of maml and theory-inspired neural architecture search for few-shot learning
Rad et al. Surviving the barren plateau in variational quantum circuits with bayesian learning initialization
Liang et al. Alternating iterative methods for solving tensor equations with applications
WO2019161032A1 (en) Systems and methods for performing counting and summing using a quantum computer
Chen et al. Quantum algorithms and lower bounds for linear regression with norm constraints
Wang et al. Inexact proximal stochastic gradient method for convex composite optimization
Goranci et al. Fully dynamic k-center clustering in low dimensional metrics
Kabluchko et al. Complex random energy model: zeros and fluctuations
EP4320561A1 (en) Methods for efficient implementation of unitary operators in the clifford algebra as quantum circuits
US11816538B2 (en) Methods for efficient implementation of unitary operators in the Clifford algebra as quantum circuits and applications to linear algebra and machine learning
Bekkers et al. Fast, Expressive SE $(n) $ Equivariant Networks through Weight-Sharing in Position-Orientation Space
US11922272B2 (en) Methods for efficient implementation of unitary operators in the Clifford algebra as quantum circuits and applications to linear algebra and machine learning
Chowdhary et al. An improved hyperbolic embedding algorithm
Bini et al. A family of fast fixed point iterations for M/G/1-type Markov chains
Beck et al. Primal and dual predicted decrease approximation methods
Gagnon et al. An asymptotic Peskun ordering and its application to lifted samplers
Fushimi et al. Accelerating Greedy K-Medoids Clustering Algorithm with Distance by Pivot Generation
Zhou et al. Asynchronous and distributed data augmentation for massive data settings
Keller-Ressel et al. Strain-minimizing hyperbolic network embeddings with landmarks

Legal Events

Date Code Title Description
STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE

PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE

17P Request for examination filed

Effective date: 20231107

AK Designated contracting states

Kind code of ref document: A1

Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR