Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Quantum circuit

From Wikipedia, the free encyclopedia
Model of quantum computing
This article includes a list ofgeneral references, butit lacks sufficient correspondinginline citations. Please help toimprove this article byintroducing more precise citations.(October 2015) (Learn how and when to remove this message)
Circuit that performsteleportation of a qubit.[1] This circuit consists of bothquantum gates andmeasurements. Measurement is a quantum phenomenon that does not occur inclassical circuits.

Inquantum information theory, aquantum circuit is amodel forquantum computation, similar toclassical circuits, in which a computation is a sequence ofquantum gates,measurements, initializations ofqubits to known values, and possibly other actions. The minimum set of actions that a circuit needs to be able to perform on the qubits to enable quantum computation is known asDiVincenzo's criteria.

Circuits are written such that the horizontal axis is time, starting at the left hand side and ending at the right. Horizontal lines are qubits, doubled lines represent classicalbits. The items that are connected by these lines are operations performed on the qubits, such as measurements or gates. These lines define the sequence of events, and are usually not physical cables.[2][3][4]

The graphical depiction of quantum circuit elements is described using a variant of thePenrose graphical notation.[citation needed]Richard Feynman used an early version of the quantum circuit notation in 1986.[5]

Reversible classical logic gates

[edit]

Most elementarylogic gates of a classical computer are notreversible. Thus, for instance, for anAND gate one cannot always recover the two input bits from the output bit; for example, if the output bit is 0, we cannot tell from this whether the input bits are 01 or 10 or 00.

However, reversible gates in classical computers are easily constructed for bit strings of any length; moreover, these are actually of practical interest, since irreversible gates must always increase physicalentropy. A reversible gate is a reversible function onn-bit data that returnsn-bit data, where ann-bit data is astring of bitsx1,x2, ...,xn of lengthn. The set ofn-bit data is the space {0,1}n, which consists of 2n strings of 0's and 1's.

More precisely: ann-bit reversible gate is abijective mappingf from the set {0,1}n ofn-bit data onto itself.An example of such a reversible gatef is a mapping that applies a fixed permutation to its inputs.For reasons of practical engineering, one typically studies gates only for small values ofn, e.g.n=1,n=2 orn=3. These gates can be easily described by tables.

Quantum logic gates

[edit]

Thequantum logic gates arereversibleunitary transformations on at least one qubit. Multiple qubits taken together are referred to asquantum registers. To define quantum gates, we first need to specify the quantum replacement of ann-bit datum. Thequantized version of classicaln-bit space {0,1}n is theHilbert space

HQB(n)=2({0,1}n).{\displaystyle H_{\operatorname {QB} (n)}=\ell ^{2}(\{0,1\}^{n}).}

This is by definition the space of complex-valued functions on {0,1}n and is naturally aninner product space.2{\displaystyle \ell ^{2}} means the function is asquare-integrable function. This space can also be regarded as consisting oflinear combinations, orsuperpositions, of classical bit strings. Note thatHQB(n) is a vector space over thecomplex numbers ofdimension 2n. The elements of thisvector space are the possible state-vectors ofn-qubit quantum registers.

Using Diracket notation, ifx1,x2, ...,xn is a classical bit string, then

|x1,x2,,xn{\displaystyle |x_{1},x_{2},\cdots ,x_{n}\rangle \quad }

is a specialn-qubit register corresponding to the function which maps this classical bit string to 1 and maps all other bit strings to 0; these 2n specialn-qubit registers are calledcomputational basis states. Alln-qubit registers are complex linear combinations of these computational basis states.

Quantum logic gates, in contrast to classical logic gates, are always reversible. One requires a special kind of reversible function, namely aunitary mapping, that is, a linear transformation of a complexinner product space that preserves theHermitian inner product. Ann-qubit (reversible) quantum gate is aunitary mappingU from the spaceHQB(n) ofn-qubit registers onto itself.

Typically, we are only interested in gates for small values ofn.

A reversiblen-bit classical logic gate gives rise to a reversiblen-bit quantum gate as follows: to each reversiblen-bit logic gatef corresponds a quantum gateWf defined as follows:

Wf(|x1,x2,,xn)=|f(x1,x2,,xn).{\displaystyle W_{f}(|x_{1},x_{2},\cdots ,x_{n}\rangle )=|f(x_{1},x_{2},\cdots ,x_{n})\rangle .}

Note thatWf permutes the computational basis states.

Of particular importance is the controlled NOT gate (also calledCNOT gate)WCNOT defined on a quantized 2 qubit. Other examples of quantum logic gates derived from classical ones are theToffoli gate and theFredkin gate.

However, the Hilbert-space structure of the qubits permits many quantum gates that are not induced by classical ones. For example, a relative phase shift is a 1 qubit gate given by multiplication by thephase shift operator:

P(φ)=[100eiφ],{\displaystyle P(\varphi )={\begin{bmatrix}1&0\\0&e^{i\varphi }\end{bmatrix}},}

so

P(φ)|0=|0P(φ)|1=eiφ|1.{\displaystyle P(\varphi )|0\rangle =|0\rangle \quad P(\varphi )|1\rangle =e^{i\varphi }|1\rangle .}

Reversible logic circuits

[edit]
Main article:reversible computing

Again, we consider firstreversible classical computation. Conceptually, there is no difference between a reversiblen-bit circuit and a reversiblen-bit logic gate: either one is just an invertible function on the space ofn bit data. However, as mentioned in the previous section, for engineering reasons we would like to have a small number of simple reversible gates, that can be put together to assemble any reversible circuit.

To explain this assembly process, suppose we have a reversiblen-bit gatef and a reversiblem-bit gateg. Putting them together means producing a new circuit by connecting some set ofk outputs off to some set ofk inputs ofg as in the figure below. In that figure,n=5,k=3 andm=7. The resulting circuit is also reversible and operates onn+mk bits.

We will refer to this scheme as aclassical assemblage (This concept corresponds to a technical definition inKitaev's pioneering paper cited below). In composing these reversible machines, it is important to ensure that the intermediate machines are also reversible. This condition assures thatintermediate "garbage" is not created (the net physical effect would be to increase entropy, which is one of the motivations for going through this exercise).

Note that each horizontal line on the above picture represents either 0 or 1, not these probabilities. Since quantum computations are reversible, at each 'step' the number of lines must be the same number of input lines. Also, each input combination must be mapped to a single combination at each 'step'. This means that each intermediate combination in a quantum circuit is a bijective function of the input.[6]

Now it is possible to show that theToffoli gate is a universal gate. This means that given any reversible classicaln-bit circuith, we can construct a classical assemblage of Toffoli gates in the above manner to produce an (n+m)-bit circuitf such that

f(x1,,xn,0,,0)=(y1,,yn,0,,0){\displaystyle f(x_{1},\ldots ,x_{n},\underbrace {0,\dots ,0} )=(y_{1},\ldots ,y_{n},\underbrace {0,\ldots ,0} )}

where there arem underbraced zeroed inputs and

(y1,,yn)=h(x1,,xn){\displaystyle (y_{1},\ldots ,y_{n})=h(x_{1},\ldots ,x_{n})}.

Notice that the result always has a string ofm zeros as theancilla bits. No "rubbish" is ever produced, and so this computation is indeed one that, in a physical sense, generates no entropy. This issue is carefully discussed in Kitaev's article.

More generally, any functionf (bijective or not) can be simulated by a circuit of Toffoli gates. Obviously, if the mapping fails to beinjective, at some point in the simulation (for example as the last step) some "garbage" has to be produced.

For quantum circuits a similar composition of qubit gates can be defined. That is, associated to anyclassical assemblage as above, we can produce a reversible quantum circuit when in place off we have ann-qubit gateU and in place ofg we have anm-qubit gateW. See illustration below:

The fact that connecting gates this way gives rise to a unitary mapping onn+mk qubit space is easy to check. In a real quantum computer the physical connection between the gates is a major engineering challenge, since it is one of the places wheredecoherence may occur.

There are alsouniversality theorems for certain sets of well-known gates; such a universality theorem exists, for instance, for the pair consisting of the single qubit phase gateUθ mentioned above (for a suitable value of θ), together with the 2-qubitCNOT gateWCNOT. However, the universality theorem for the quantum case is somewhat weaker than the one for the classical case; it asserts only that any reversiblen-qubit circuit can beapproximated arbitrarily well by circuits assembled from these two elementary gates. Note that there areuncountably many possible single qubit phase gates, one for every possible angle θ, so they cannot all be represented by a finite circuit constructed from {Uθ,WCNOT}.

Quantum computations

[edit]

So far we have not shown how quantum circuits are used to perform computations. Since many important numerical problems reduce to computing a unitary transformationU on a finite-dimensional space (the celebrateddiscrete Fourier transform being a prime example), one might expect that some quantum circuit could be designed to carry out the transformationU. In principle, one needs only to prepare ann qubit state ψ as an appropriate superposition of computational basis states for the input and measure the outputUψ. Unfortunately, there are two problems with this:

  • One cannot measure the phase of ψ at any computational basis state so there is no way of reading out the complete answer. This is in the nature of measurement in quantum mechanics.
  • There is no way to efficiently prepare the input state ψ.

This does not prevent quantum circuits for the discrete Fourier transform from being used as intermediate steps in other quantum circuits, but the use is more subtle. In fact quantum computations areprobabilistic.

We now provide a mathematical model for how quantum circuits can simulateprobabilistic but classical computations. Consider anr-qubit circuitU withregister spaceHQB(r).U is thus a unitary map

HQB(r)HQB(r).{\displaystyle H_{\operatorname {QB} (r)}\rightarrow H_{\operatorname {QB} (r)}.}

In order to associate this circuit to a classical mapping on bitstrings, we specify

  • Aninput registerX = {0,1}m ofm (classical) bits.
  • Anoutput registerY = {0,1}n ofn (classical) bits.

The contentsx =x1, ...,xm ofthe classical input register are used to initialize the qubitregister in some way. Ideally, this would be done with the computational basisstate

|x,0=|x1,x2,,xm,0,,0,{\displaystyle |{\vec {x}},0\rangle =|x_{1},x_{2},\cdots ,x_{m},\underbrace {0,\dots ,0} \rangle ,}

where there arer-m underbraced zeroed inputs. Nevertheless,this perfect initialization is completely unrealistic. Let us assumetherefore that the initialization is a mixed state given by some density operatorS which is near the idealized input in some appropriate metric, e.g.

Tr(||x,0x,0|S|)δ.{\displaystyle \operatorname {Tr} \left({\big |}|{\vec {x}},0\rangle \langle {\vec {x}},0|-S{\big |}\right)\leq \delta .}

Similarly, the output register space is related to the qubit register, by aYvalued observableA. Note that observables in quantum mechanics are usually defined interms ofprojection valued measures onR; if the variablehappens to be discrete, the projection valued measure reduces to afamily {Eλ} indexed on some parameter λranging over a countable set. Similarly, aY valued observable,can be associated with a family of pairwise orthogonal projections{Ey} indexed by elements ofY. such that

I=yYEy.{\displaystyle I=\sum _{y\in Y}\operatorname {E} _{y}.}

Given a mixed stateS, there corresponds a probability measure onYgiven by

Pr{y}=Tr(SEy).{\displaystyle \operatorname {Pr} \{y\}=\operatorname {Tr} (S\operatorname {E} _{y}).}

The functionF:XY is computed by a circuitU:HQB(r)HQB(r) to within ε if and only iffor all bitstringsx of lengthm

x,0|UEF(x)U|x,0=EF(x)U(|x,0)|U(|x,0)1ϵ.{\displaystyle \left\langle {\vec {x}},0{\big |}U^{*}\operatorname {E} _{F(x)}U{\big |}{\vec {x}},0\right\rangle =\left\langle \operatorname {E} _{F(x)}U(|{\vec {x}},0\rangle ){\big |}U(|{\vec {x}},0\rangle )\right\rangle \geq 1-\epsilon .}

Now

|Tr(SUEF(x)U)x,0|UEF(x)U|x,0|Tr(||x,0x,0|S|)UEF(x)Uδ{\displaystyle \left|\operatorname {Tr} (SU^{*}\operatorname {E} _{F(x)}U)-\left\langle {\vec {x}},0{\big |}U^{*}\operatorname {E} _{F(x)}U{\big |}{\vec {x}},0\right\rangle \right|\leq \operatorname {Tr} ({\big |}|{\vec {x}},0\rangle \langle {\vec {x}},0|-S{\big |})\|U^{*}\operatorname {E} _{F(x)}U\|\leq \delta }

so that

Tr(SUEF(x)U)1ϵδ.{\displaystyle \operatorname {Tr} (SU^{*}\operatorname {E} _{F(x)}U)\geq 1-\epsilon -\delta .}

Theorem. If ε + δ < 1/2, then the probability distribution

Pr{y}=Tr(SUEyU){\displaystyle \operatorname {Pr} \{y\}=\operatorname {Tr} (SU^{*}\operatorname {E} _{y}U)}

onY can be used to determineF(x) with an arbitrarily small probability of error by majority sampling, for a sufficiently large sample size. Specifically, takek independent samples from the probability distribution Pr onY and choose a value on which more than half of the samples agree. The probability that the valueF(x) is sampled more thank/2 times is at least

1e2γ2k,{\displaystyle 1-e^{-2\gamma ^{2}k},}

where γ = 1/2 - ε - δ.

This follows by applying theChernoff bound.

See also

[edit]
Wikimedia Commons has media related toQuantum circuit.

References

[edit]
  1. ^Nielsen, Michael A.;Chuang, Isaac (2010).Quantum Computation and Quantum Information. Cambridge:Cambridge University Press. pp. 26–28.ISBN 978-1-10700-217-3.OCLC 43641333.
  2. ^Colin P. Williams (2011).Explorations in Quantum Computing.Springer. pp. 123–200.ISBN 978-1-84628-887-6.
  3. ^Nielsen, Michael A.;Chuang, Isaac (2010).Quantum Computation and Quantum Information. Cambridge:Cambridge University Press. pp. 171–215.ISBN 978-1-10700-217-3.OCLC 43641333.
  4. ^Ömer, Bernhard (2000-01-20).Quantum Programming in QCL(PDF) (Thesis). Institute for Theoretical Physics, Vienna University of Technology. pp. 37–38. Retrieved2021-10-12.
  5. ^Feynman, Richard P. (1986). "Quantum mechanical computers".Foundations of Physics.16 (6). Springer Science and Business Media LLC:507–531.Bibcode:1986FoPh...16..507F.doi:10.1007/bf01886518.ISSN 0015-9018.S2CID 122076550.
  6. ^"Introduction to the Quantum Circuit Model"(PDF).

External links

[edit]
Semiconductor
devices
MOS
transistors
Other
transistors
Diodes
Other
devices
Voltage regulators
Vacuum tubes
Vacuum tubes (RF)
Cathode ray tubes
Gas-filled tubes
Adjustable
Passive
Reactive
Other devices
General
Theorems
Quantum
communication
Quantum cryptography
Quantum algorithms
Quantum
complexity theory
Quantum
processor benchmarks
Quantum
computing models
Quantum
error correction
Physical
implementations
Quantum optics
Ultracold atoms
Spin-based
Superconducting
Quantum
programming
Background
Fundamentals
Formulations
Equations
Interpretations
Experiments
Science
Technology
Extensions
Related
Fields
Quantum
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=Quantum_circuit&oldid=1317471535"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp