TRADING T-GATES FOR QUBITS IN ARBITRARY STATE AND UNITARY SYNTHESIS
Efficient synthesis of arbitrary quantum states and unitaries from a universal fault tolerant gate-set (e.g., Clifford+T) is a goal in quantum computation. As physical quanturn computers are fixed in size, all available qubits should be used if it minimizes overall gate counts, especially that of the expensive T-gates. In this application, a quantum algorithm is described for preparing any dimension-N quantum state specified by a list of N classical numbers, that realizes a trade-off between space and T-gates. Example embodiments exploit (λ) ancilla qubits, to reduce the T-gate cost to ( N λ + λlog 2 N ϵ ) . Notably, this it proven to be optimal up to logarithmic factors for any λ=o(√{square root over (N)}) through an unconditional gate counting argument. Though (N) Clifford gates are always required, only (√{square root over (N)}) T-gates are needed in the best case, which is a quadratic improvement over prior art. Similar statements are provien for unitary synthesis by reduction to state preparation.
Latest Microsoft Patents:
- SELECTIVE MEMORY RETRIEVAL FOR THE GENERATION OF PROMPTS FOR A GENERATIVE MODEL
- ENCODING AND RETRIEVAL OF SYNTHETIC MEMORIES FOR A GENERATIVE MODEL FROM A USER INTERACTION HISTORY INCLUDING MULTIPLE INTERACTION MODALITIES
- USING A SECURE ENCLAVE TO SATISFY RETENTION AND EXPUNGEMENT REQUIREMENTS WITH RESPECT TO PRIVATE DATA
- DEVICE FOR REPLACING INTRUSIVE OBJECT IN IMAGES
- EXTRACTING MEMORIES FROM A USER INTERACTION HISTORY
This application claims the benefit of U.S. Provisional Application No. 62/752,887 entitled “TRADING T-GATES FOR QUBITS IN ARBITRARY STATE AND UNITARY SYNTHESIS” and filed on Oct. 30, 2018, which is hereby incorporated herein by reference in its entirety.
FIELDThis application relates to quantum computing. In particular, this application relates to tools and techniques for trading T-gates for qubits in an arbitrary state and unitary synthesis.
SUMMARYEfficient synthesis of arbitrary quantum states and unitaries from a universal fault-tolerant gate-set (e.g., Clifford+T) is a goal in quantum computation. As physical quantum computers are fixed in size, all available qubits should be used if it minimizes overall gate counts, especially that of the expensive T-gates. In this application, a quantum algorithm is described for preparing any dimension-N quantum state specified by a list of N classical numbers, that realizes a trade-off between space and T-gates. Example embodiments exploit (λ) ancilla qubits, to reduce the T-gate cost to
Notably, this is proven to be optimal up to logarithmic factors for any λ=o(√{square root over (N)}) through an unconditional gate counting argument. Though (N) Clifford gates are always required, only (√{square root over (N)}) T-gates are needed in the best case, which is a quadratic improvement over prior art. Similar statements are provien for unitary synthesis by reduction to state preparation.
In certain embodiments, a quantum algorithm description is input (e.g., into a classical computer). The quantum algorithm description is synthesized into a synthesized quantum circuit representation (e.g., using the classical computer and using an appropriate compilation/synthesis tool for quantum computing). In the illustrated embodiment, the quantum circuit representation is implementable on a quantum computing device, and the synthesizing comprises assigning one or more ancilla qubits to be used for at least one non-Clifford operation. The synthesized quantum circuit representation is output (e.g., the synthesized quantum circuit representation is a set of low-level machine instructions for .implementation on a quantum device).
Any of the disclosed embodiments can be implemented by one or more computer-readable media storing computer-executable instructions, which when executed by a computer cause the computer to perform any of the disclosed methods. Also disclosed herein are systems for performing embodiments of the disclosed embodiments comprising a classical computer configured to program, control, and/or measure a quantum computing device. The foregoing and other objects, features, and advantages of the disclosed technology will become more apparent from the following detailed description, which proceeds with reference to the accompanying figures.
As used in this application, the singular forms “a,” “an,” and “the” include the :plural forms unless the context clearly dictates otherwise. Additionally, the term “includes” means “comprises.” Further, the term “coupled” does not exclude the presence of intermediate elements between the coupled items. Further, as used herein, the term “and/or” means any one item or combination of any items in the phrase.
Although the operations of some of the disclosed methods are described in a particular, sequential order for convenient presentation, it should be understood that this manner of description encompasses rearrangement, unless a particular ordering is required by specific language set forth below. For example, operations described sequentially may in some cases be rearranged or performed concurrently. Moreover, for the sake of simplicity, the attached figures may not show the various ways in which the disclosed systems, methods, and apparatus can be used in conjunction with other systems, methods, and apparatus. Additionally, the description sometimes uses terms like “produce” and “provide” to describe the disclosed methods. These terms are high-level abstractions of the actual operations that are performed. The actual operations that correspond to these terms will vary depending on the particular implementation and are readily discernible by one of ordinary the art.
II. IntroductionMany real-world applications of quantum algorithms rely on the input of classical data into a quantum system. It is often the case where achieving quantum speedups uses the ability to coherently access classical data in superposition. Examples where this is a useful step include machine learning, simulation of physical systems, solving systems of linear equations, data regression, and sampling.
The central challenge is synthesizing some arbitrary unitary A∈N×N specified by a list of N2 complex coefficients. In any scalable approach to quantum computation, unitaries are desirably expressed in terms of a universal fault-tolerant quantum gate set, such as Clifford gates {H, S, CNOT} and T gates. Also of interest is synthesizing any unitary that prepares an arbitrary quantum state A|0=|ψ of dimension: N—a special case also of interest. This state is similarly specified by N coefficients {right arrow over (a)}∈N that are completely arbitrary.
Solovay and Kitaev were the first to recognize that any single-qubit unitary could be ϵ-approximated using (logc(1/ϵ)) (for c=3.97) fault-tolerant gates. See M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 1st ed. (Cambridge University Press, 2004). Through a series of work, this has since been improved to an optimal c=1. See, e.g., V. Kliuchnikov, D. Maslov, and M. Mosca, Phys. Rev. Lett. 110, 190502 (2013); N. J. Ross, Quantum Info. Comput. 15, 932 (2015). By bootstrapping these results, it is known that without any ancilla qubits, (N{1,2}) log (N/ϵ) gates suffice to synthesize any {quantum state, unitary}. Though early approaches exploit ancilla qubits for the N=2 case, these only achieve constant factor improvements. See V. Kliuchnikov, B. Maslov, and M. Mosca, Phys. Rev. Lett. 110, 190502 (2013). Through gate-counting arguments (see, e.g., A. W. Harrow, B. Recht, and I. L. Chuang, Journal of Mathematical Physics 43, 4445 (2002), https://doi.org/10.1063/1.1495899), the dimension scaling and log (1/ϵ) factor appears optimal. Thus it appears there is nothing new to discover. All that remains is more and more precise constant factors.
However, not all fault-tolerant quantum gates are equal. It is now understood that fault-tolerant Clifford gates {H, S, C
In this disclosure, an approach is disclosed that focuses on minimizing the T count. Notably, it was found that exploiting a variable number (λ) of ancilla qubits enables a (λ) improvement in the T count for λ∈[1, √{square root over (N)}] seen in Table 1, while keeping the Clifford count roughly unchanged. This leads to a T count of (√{square root over (N)}), representing a quadratic speedup, for the case of preparing arbitrary pure states
or density matrices
through their purification
Of some practical interest is circuit depth, Which also decreases by a factor (λ) for any λ∈[1, N]. Moreover, all unconditional gate complexity lower bound is proven, independent of any complexity-theoretic assumptions, that demonstrates that an embodiment of the disclosed approach realizes an optimal ancilla-qubit and T count trade-off, up to logarithmic factors. A similar statement for synthesizing arbitrary unitaries is also proven.
Of course, the full quadratic speedup may not always be achievable, or practical. Space constraints of the physical machine limit ancilla usage, and T gates are only finitely expensive. Nevertheless, the ability to trade-off space for a T gate advantage will be very useful to optimizing physical qubit resources in quantum computers.
It is also useful to relate the disclosed approach to those that decompose additionally into black box data-lookup oracles O that allow coherent access to arbitrary classical data {right arrow over (a)} like
O|x0|0=|x|ax|garbagex. (3)
For instance, Grover search allows for arbitrary state preparation using (√{square root over (N)}N) queries. See L. K. Grover, Proceedings of the Twenty-eight Annual ACM Symposium on Theory of Computing, STOC '96, 212 (1996). In fact, there exists classical data such that preparing any |ψ requires only (polylog(N)) queries and additional primitive quantum gates. This, of course, hides the fact that implementing these oracles cost at least Ω(N) primitive gates in the worst cases.
The improved T gate scaling disclosed herein stems from an improved implementation of the data-lockup oracle of Equation 3. This improvement is referred to herein as a ‘S
The description begins by describing this network. Subsequently, the ‘S
The unitary data-lookup oracle of Equation 3 accepts an input number state |x∈N where x∈[N], and returns a b-bit number ax∈{0, 1}b, where the N values of ax are unstructured but known. The attached garbage state may always be uncomputed by applying O in reverse. An embodiment of the disclosed approach interpolates between standard implementations of O. These are S
The S
Thus O is realized by choosing
to either be identity or the Pauli-X gate depending on the bit string ax. As illustrated in block diagram 100 of
The S
The disclosed S
is determined only by the dimension of the S
Preparation of an arbitrary dimension N=2n quantum state
using the S
For any bit-string y∈{0, 1}w of length w≤n, let the probability that the first w qubits of |ψ are in state
Thus a single-qubit rotation e−iYθ|0 by angle θ=cos−1 √{square root over (p0)} prepares the state |ψ1=√{square root over (p0)}|0+√{square root over (p1)}|1, where p0 is the probability that the first qubit of |ψ is in state |0. One can recursively apply single -qubit rotations on the w+1th qubit conditioned on the first w qubits being in state |y. The rotation angles θy=cos−1 √{square root over (py0/py)} are chosen so that the state produced |ψw+1 reproduces the correct probabilities on the first w+1 qubits. For instance when w=1, one can map
These conditional rotations are implemented using a sequence of data-lookup oracles O1, . . . , On−1, where Ow stores a b-bit approximation of all θy where y∈{0, 1}w. At the wth iteration,
Note that any garbage registers are omitted as they are always uncomputed. Also, the second line is implemented using b single-qubit rotations each controlled by a bit of θy. The complex phases of the target state |ψ are applied to |ψn by a final step with a data-lookup oracle storing ϕx=arg[ax/√{square root over (px)}]. Thus (b log N) single-qubit rotations are applied in total.
These oracles are implemented with the S
which is then added to the total T count of
for synthesizing all single-qubit rotations each to error δ using the phase gradient technique (see, e.g., C. Gidney, Quantum 2, 74 (2018)). The error of the resulting state |ψ′ produced is determined by the number of bits b used to represent the rotation angles, in addition to rotation synthesis error δs. Adding these errors leads to
which is bounded by ϵ with the choice
and δ=Θ(ϵ). As a function of ϵ, the total T gate complexity is then
A similar calculation for the total depth leads to the complexity in Table 1.
III.C. Purified Density Matrix PreparationIn some applications, it suffices to prepare the density matrix
through a quantum state
of Eq. (2) where the number state |x is entangled with some garbage that depends only on x. By allowing garbage, it was shown by R. Babbush, C. Gidney, D. W. Berry, N. Wiebe, J. Mc-Clean, A. Paler, A. Fowler, and H. Neven, arXiv preprint arXiv:1805.03662 (2018) that strictly linear T gate complexity in N is achievable, using a S
The original approach is based on an observation, By comparing a b-bit number state |a together with a uniform superposition state
over 2b elements, |a may be mapped to
where we denote a uniform superposition after the first a elements by
This may be implemented using quantum addition (see S. A. Cuccaro, T. C. Draper, S. A. Kutin, and D. P. Moulton, arXiv preprint quant-ph/0410184 (2004)), which costs (b) Clifford+T gates with depth (b).
This observation is converted to state-preparation in four steps. First, the normalized coefficients
are rounded to nearest integer values such that ∥{right arrow over (a)}′∥1=N2b. Second, the data-lookup oracle that writes two numbers a″x∈[2b] and f(x)∈[N] such that a′x=a″x+Σy∈{f
O|x|0|0=|x|a″x|f(x), (6)
where the irrelevant garbage state has been omitted. Third, the oracle O is applied to a uniform superposition over |x, and the comparator trick of Eq. (5) is applied. This produces the state
Finally, |f(x) is swapped with |x, controlled on the |1 state. This leads to a state
After tracing out the garbage register, the resulting density matrix ρ′ approximates the desired state ρ with trace distance
∥ρ′−ρ∥1=(2−b)≤ϵ. (7)
The T gate complexity is then the cost of the data-lookup oracle of Eq. (6) plus (b) for the comparator of Eq. (5), plus (log N) for the controlled swap with |f(x). By implementing this data-lookup oracle with the S
where b=(log (1/ϵ)) is chosen.
III.D. Lower BoundIn this section, the optimality of the above-described construction is proven through a circuit counting argument. The most general circuit on q qubits that uses Γ T-gates has the canonical form C·Πj=1Γe−iπP
Unique quantum circuits=(4qΓ+(q
A lower bound on the cubit and T-gate complexity of the data-lookup oracle of Equation 3 is obtained by counting the number of unique Boolean functions f:[N]→{0, 1}b. As there are 2bN such functions, one can compare with Eq. (8). This leads to a lower bound on the space-T-gate product
qΓ=Ω(bN−q2). (9)
As the S
A similar lower bound on state preparation is obtained by counting the number of dimension-N quantum states that a distinguishable with error ϵ. Without loss of generality, one can only count quantum states |ψ∈N with real coefficients. These states live on the surface a unit-ball N of dimension N, with area
Let one now fix a state |ψ. Then the states |χ that satisfy ∥|ψ−|χ∥≤ϵ live inside a ϵ-ball N−1 with volume
Thus there are at least
quantum states. Once again by comparing with Eq. (8), one can obtain a T-gate lower bound of
qΓ=Ω(N log(1/ϵ)−q2). (10)
This also matches the cost of the disclosed approach in Eq. (8) up to logarithmic factors, so long as λ=o(√{square root over (N/log(1/ϵ)))}. An analogous argument can be made for density matrix preparation by considering the unit simplex instead of the unit ball.
III.E. Error Analysis of Arbitrary Quantum State PreparationThe approach by Shende, Bullock, and Markov synthesizes a unitary A that prepares a pure state
with arbitrary coefficients in N=2n dimensions. A key element of the circuit are j∈{0, 1, . . . n−1} multiplexors Uj where
for some set of rotation angles θj, x. Each multiplexor is applied twice—once to create a pure state with the right probabilities |ax|2, and once to apply the correct phase ei arg[a
∥A′−A∥≤2nδ. (12)
Hence the state |ψ′=A′|0 approximates |ψ with error
∥|ψ′−|ψ∥≤∥A′−A∥≤2nδ. (13)
In embodiments of the disclosed approach, these multiplexors are implemented using the data-lookup oracles Oj that encode a b-bit approximation θ′j, x of these angles, that is |θ′j, x−θj, x|≤2−b. In other words,
Oj|x|0=|x|θ′x,k. (14)
Using the controlled phase gradient operation
this implements the multiplexor Uj(1) where
This approximates Uj with error
∥U′j−Uj∥≤∥I−eiπ2
One also needs to account for he cost of approximating the phase gradient operation. A naive approach implements G
The resulting unitary A″ prepares the state |ψ″=A″|0 that approximates |ψ with error
∥|ψ″−|ψ∥≤∥A″−A∥≤πn2−b+1+nγ≤ϵ,
which is controlled by choosing
A better approach (see C. Gidney, Quantum 2, 14 (2018)) implements the phase gradient G
A
The T cost: of each adder is (b). As the Fourier state is not consumed, an approximation |′ of it to error γ has a one-time T cost of (b log (1/γ) The resulting unitary A″′ prepares the state |ψ″′=A″′|0|′. This approximates |ψ with error
∥|ψ″′−|ψ|∥≤πn2−b+1+γ≤ϵ,
which is controlled by choosing
Consider N×N unitary matrix U and let integer K be between 1 and N. Isometry synthesis problem for U is to find a quantum circuit that implements unitary V, such that its first K columns equal to first K columns of V. To define approximate unitary isometry problem, one can use the notion of weak semi-two norm ∥A∥2, k=maxb<K∥A|b∥. Weak semi-two-norm with parameter K of matrix A is the biggest norm of vectors ∥Ax∥ where x goes over the first K standard basis vectors. Note that ∥V−U∥2, K=0 if and only if first K columns of V and U coincide. This is why map A∥A∥2, K is called semi-norm: ∥A∥2, K=0 does not imply that A=0. The approximate isometry synthesis problem for target unitary U and precision ε is to find a circuit that implements unitary V such that ∥V−U∥2, K≤ε.
It has been shown in E. Knill, “Approximation by Quantum Circuits,” arXiv:quant-ph/9508006 (1995) [quant-ph] that isometry synthesis problem can be reduced to K state synthesis problems and synthesis of K operators exp(eiϕ|e1e1|) where |e1 is the first standard basis vector. The idea, is illustrated here for K=N. Using eigen-basis |uk unitary matrix U can be written as exp (Σk=1Niϕk|ukuk|). Introducing operations Rk=exp(eiϕ
Alternatively, one can use Householder reflections decomposition (see, e.g., A. S. Householder, Journal of the ACM 5, 339 (1958) to find another U″ that is a product of K reflections exp(eiπ|vjvj|)=−2|vjvj| and diagonal matrix diag(eiϕ′
It is possible to get rid of the need for implementing diag(eiϕ′
Approximate isometry synthesis reduces to approximate state synthesis by using discussed decompositions and properties of semi-norms ∥A∥2, K discussed in E. Knill, 1 (1995), arXiv:quant-ph/9508006 [quant-ph].
III.G. Lower BoundsThe total number of isometries within at least distance ϵ from each other can be estimated using Lemma 4.3 on Page 14. Roughly, the number of isometries Ω((1/ϵ)KN). i
At 610, various input parameters are input. In the illustrated embodiment, the input parameters are: (1) Length N=n list of b-bit numbers L=a0a1, aN−1; (2) A number Between 1 and N; (3) n-qubit index register X; (4) b-qubit ancilla registers R=R0, R1, R−1; and (5) quantum state |x>.
At 612, the Select quantum algorithm is applied to load elements of list L in parallel to register R.
At 614, the Swap quantum algorithm is applied to move one of the registers R to a standard output.
At 616, a quantum state quantum state |x>|ax>|garbage x> is output.
At 710, a quantum algorithm description is input (e.g. into a classical computer). The quantum algorithm description can be, for example, a description in a high-level functional language (e.g., F #).
At 712, the quantum algorithm description is synthesized into a synthesized quantum circuit representation (e.g., using the classical computer and using an appropriate compilation/synthesis tool for quantum computing, such as LIQUi|>). In the illustrated embodiment, the quantum circuit representation is implementable on a quantum computing device, and the synthesizing comprises assigning one or more ancilla qubits to be used for at least one non-Clifford operation.
At 714, the synthesized quantum circuit representation is output. The synthesized quantum circuit representation is a set of low-level machine instructions for implementation on a quanturn device.
At 716, a quantum computing device is controlled to implement the quantum circuit representations (e.g., by a classical computer in communication with a quantum computing device, such as in a configuration as shown in
In some embodiments, the ancilla qubits to be used for at least one non-Clifford operation replace at least one Toffoli-gate. In further embodiments, the synthesized quantum circuit representation includes a combination of both Toffili gates and ancilla qubits to perform non-Clifford operations, the combination being determined at least in part by a user-selectable variable. In certain embodiments, the synthesizing comprises using a select-swap operation. In particular implementations, the select-swap operation enables sublinear T-gate complexity. In further implementations, the select-swap operation results from a combination of a select operation and a swap network. In some embodiments, the method reduces non-Clifford gates at a cost of greater overall ancilla qubits. In further embodiments, the synthesizing implements a data-lookup oracle using a select-swap operation. In certain embodiments, the method is performed to synthesize arbitrary unitaries.
Any of the disclosed embodiments can be implemented by one or more computer-readable media storing computer-executable instructions, which when executed by a computer cause the computer to perform any of the disclosed methods. Also disclosed herein are systems for performing embodiments of the disclosed embodiments comprising a classical computer configured to program, control, and/or measure a quantum computing device.
Further embodiments include a quantum circuit comprising a combination of Clifford and non-Clifford gates, wherein the number of non-Clifford gates is controlled by a tunable factor, wherein the tunable factor achieves a desired space-depth tradeoff for the quantum circuit.
IV. Example Computing EnvironmentsWith reference to
The computing environment can have additional features. For example, the computing environment 200 includes storage 240, one or more input devices 250, one or more output devices 260, and one or more communication connections 270. An interconnection mechanism (not shown), such as a bus, controller, or network, interconnects the components of the computing environment 200. Typically, operating system software (not shown) provides an operating environment for other software executing in the computing environment 200, and coordinates activities of the components of the computing environment 200.
The storage 240 can be removable or non-removable, and includes one or more magnetic disks (e.g., hard drives), solid state drives (e.g., flash drives), magnetic tapes or cassettes, CD-ROMs, DVDs, or any other tangible non-volatile storage medium which can be used to store information and which can be accessed within the computing environment 200. The storage 240 can also store instructions for the software 280 implementing any of the disclosed quantum-circuit design techniques. The storage 240 can also store instructions for the software 280 for generating and/or synthesizing any of the described techniques, systems, or reversible circuits.
The input device(s) 250 can be a touch input device such as a keyboard, touchscreen, mouse, pen, trackball, a voice input device, a scanning device, or another device that provides input to the computing environment 200. The output device(s) 260 can be a display device (e.g., a computer monitor, laptop display, smartphone display, tablet display, netbook display, or touchscreen), printer, speaker, or another device that provides output from the computing environment 200.
The communication connection(s) 270 enable communication over a communication medium to another computing entity. The communication medium conveys information such as computer-executable instructions or other data in a modulated data signal. A modulated data signal is a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media include wired or wireless techniques implemented with an electrical, optical, RF, infrared, acoustic, or other carrier.
As noted, the various methods, circuit design techniques, or compilation/synthesis techniques can be described in the general context of computer-readable instructions stored on one or more computer-readable media. Computer readable media are any available media (e.g., memory or storage device) that call be accessed within or by a computing environment. Computer-readable media include tangible computer-readable memory or storage devices, such as memory 220 and/or storage 240, and do not include propagating carrier waves or signals per se (tangible computer-readable memory or storage devices do not include propagating carrier waves or signals per se).
Various embodiments of the methods disclosed herein can also be described in the general context of computer-executable instructions (such as those included in program modules) being executed in a computing environment by a processor. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, and so on, that perform particular tasks or implement particular abstract data types. The functionality of the program modules may be combined or split between program modules as desired in various embodiments. Computer-executable instructions for program modules may be executed within a local or distributed computing environment.
An example of a possible network topology 300 (e.g., a client-server network) for implementing a system according to the disclosed technology is depicted in
Another example of a possible network topology 400 (e.g., a distributed computing environment) for implementing a system according to the disclosed technology is depicted in
With reference to
The environment 500 includes one or more quantum processing units 502 and one or more readout device(s) 508. The quantum processing unit(s) execute quantum circuits that e precompiled and described by the quantum computer circuit description. The quantum processing unit(s) can be one or more of, but are not limited to: of a superconducting quantum computer; (b) an ion trap quantum computer; (c) a fault-tolerant architecture for quantum computing; and/or (d) a topological quantum architecture (e.g., a topological quantum computing device using Majorana zero modes). The precompiled quantum circuits, including any of the disclosed circuits, can be sent into (or otherwise applied to) the quantum processing unit(s) via control lines 506 at the control of quantum processor controller 520. The quantum processor controller (QP controller) 520 can operate in conjunction with a classical processor 510 (e.g., having an architecture as described above with respect to
With reference to
In other embodiments, compilation and/or verification can be performed remotely by a remote computer 560 (e.g., a computer having a computing environment as described above with respect to
In particular embodiments, the environment 500 can be a cloud computing environment, which provides the quantum processing resources of the environment 500 to one or more remote computers (such as remote computer 560) over a suitable network (which can include the internet).
V. Concluding RemarksWe have shown that arbitrary quantum states with N coefficients specified by classical data may be prepared using a T gate complexity (√{square root over (N)}) that is an optimal square-root improvement over prior art. As the Clifford group is efficiently simulable, the ‘quantumness’ of a quantum algorithm is captured in part by its T gate cost. Our results show that reading classical data into a quantum algorithm is a ‘classical’ task that costs (N) Clifford gates and should be separated from the harder part of creating a superposition captured by the T gate complexity.
Having described and illustrated the principles of the disclosed technology, with reference to the illustrated embodiments, it will be recognized that the illustrated embodiments can be modified in arrangement and detail without departing from such principles. For instance, elements of the illustrated embodiments shown in software may be implemented in hardware and vice-versa. Also, the technologies from any example can be combined with the technologies described in any one or more of the other examples. It will be appreciated that procedures and functions such as those described with reference to the illustrated examples can be implemented in a single hardware or software module, or separate modules can be provided. The particular arrangements above are provided for convenient illustration, and other arrangements can be used.
Claims
1. A method, comprising:
- inputting a quantum algorithm description;
- synthesizing the quantum algorithm description into a synthesized quantum circuit representation, wherein the quantum circuit representation is implementable on a quantum computing device, and wherein the synthesizing comprises assigning one or more ancilla qubits to be used for at least one non-Clifford operation; and
- outputting the quantum circuit representation.
2. The method of claim 1, wherein the ancilla qubits to be used for at least one non-Clifford operation replace at least one Toffoli-gate.
3. The method of claim 1, wherein the synthesized quantum circuit representation includes a combination of both Toffili gates and ancilla qubits to perform non-Clifford operations, the combination being determined at least in part by a user-selectable variable.
4. The method of claim 1, wherein the synthesizing comprises using a select-swap operation.
5. The method of claim 4, wherein the select-swap operation enables sublinear T-gate complexity.
6. The method of claim 4, wherein the select-swap operation results from a combination of a select operation and a swap network.
7. The method of claim 1, wherein the method reduces non-Clifford gates at a cost of greater overall ancilla qubits.
8. The method of claim 1, wherein the synthesizing implements a data-lookup oracle using a select-swap operation.
9. The method of chant 1, wherein the method is performed to synthesize arbitrary unitaries.
10. The method of claim 1, further comprising controlling a quantum computing device to implement the quantum circuit representations.
11. One or more computer-readable media storing computer-executable instructions, which when executed by a classical computer cause the classical computer to perform a method of controlling a quantum computing device, the method comprising:
- inputting a quantum algorithm description;
- synthesizing the quantum algorithm description into a synthesized quantum circuit representation, wherein the quantum circuit representation is implementable on a quantum computing device, and wherein the synthesizing comprises assigning one or more ancilla qubits to be used for at least one non-Clifford operation; and
- outputting the quantum circuit representation.
12. The one or more computer-readable media of claim 11, wherein the ancilla qubits to be used for at least one non-Clifford operation replace at least one Toffoli-gate.
13. The one or more computer-readable media of claim 11, wherein the synthesized quantum circuit representation includes a combination of both Toffili gates and ancilla qubits to perform non-Clifford operations, the combination being determined at least in part by a user selectable variable.
14. The one or more computer-readable media of claim 11, wherein the synthesizing comprises using a select-swap operation.
15. The one or more computer-readable media of claim 14, wherein the select-swap operation enables sublinear T-gate complexity.
16. The one or more computer-readable media of claim 14, wherein the select swap operation results from a combination of a select operation and a swap network.
17. The one or more computer-readable media of claim 11, wherein the synthesizing implements a data-lookup oracle using a select-swap operation
18. The one or more computer-readable media of claim 11, wherein the method is performed to synthesize arbitrary unitaries.
19. The one or more computer-readable media of claim 11, wherein the method further comprises controlling a quantum computing device to implement the quantum circuit representations.
20. A quantum circuit comprising a combination of Clifford and non-Clifford gates, wherein the number of non-Clifford gates is controlled by a tunable factor, wherein the tunable factor achieves a desired space-depth tradeoff for the quantum circuit.
Type: Application
Filed: Jun 12, 2019
Publication Date: Apr 30, 2020
Patent Grant number: 10997337
Applicant: Microsoft Technology Licensing, LLC (Redmond, WA)
Inventors: Guang Hao Low (Redmond, WA), Vadym Kliuchnikov (Redmond, WA)
Application Number: 16/439,531