请输入您要查询的百科知识:

 

词条 Hadamard transform
释义

  1. Definition

  2. Computational complexity

  3. Quantum computing applications

     Hadamard gate operations 

  4. Other applications

  5. See also

  6. External links

  7. References

{{Use American English|date=January 2019}}{{Short description|Involutive change of basis in linear algebra
}}{{distinguish|Walsh matrix}}

The Hadamard transform (also known as the Walsh–Hadamard transform, Hadamard–Rademacher–Walsh transform, Walsh transform, or Walsh–Fourier transform) is an example of a generalized class of Fourier transforms. It performs an orthogonal, symmetric, involutive, linear operation on {{math|2m}} real numbers (or complex numbers, although the Hadamard matrices themselves are purely real).

The Hadamard transform can be regarded as being built out of size-2 discrete Fourier transforms (DFTs), and is in fact equivalent to a multidimensional DFT of size {{math|2 × 2 × ⋯ × 2 × 2}}.[2] It decomposes an arbitrary input vector into a superposition of Walsh functions.

The transform is named for the French mathematician Jacques Hadamard, the German-American mathematician Hans Rademacher, and the American mathematician Joseph L. Walsh.

Definition

The Hadamard transform Hm is a 2m × 2m matrix, the Hadamard matrix (scaled by a normalization factor), that transforms 2m real numbers xn into 2m real numbers Xk. The Hadamard transform can be defined in two ways: recursively, or by using the binary (base-2) representation of the indices n and k.

Recursively, we define the 1 × 1 Hadamard transform H0 by the identity H0 = 1, and then define Hm for m > 0 by:

where the 1/{{radic|2}} is a normalization that is sometimes omitted.

For m > 1, we can also define Hm by:

where represents the Kronecker product. Thus, other than this normalization factor, the Hadamard matrices are made up entirely of 1 and −1.

Equivalently, we can define the Hadamard matrix by its (kn)-th entry by writing

and

where the kj and nj are the binary digits (0 or 1) of k and n, respectively. Note that for the element in the top left corner, we define: . In this case, we have:

This is exactly the multidimensional DFT, normalized to be unitary, if the inputs and outputs are regarded as multidimensional arrays indexed by the nj and kj, respectively.

Some examples of the Hadamard matrices follow.

(This H1 is precisely the size-2 DFT. It can also be regarded as the Fourier transform on the two-element additive group of Z/(2).)

where is the bitwise dot product of the binary representations of the numbers i and j. For example, if , then , agreeing with the above (ignoring the overall constant). Note that the first row, first column element of the matrix is denoted by .

The rows of the Hadamard matrices are the Walsh functions.

Computational complexity

The Hadamard transform can be computed in n log n operations (n = 2m), using the fast Hadamard transform algorithm.

Quantum computing applications

{{further|Quantum gate#Hadamard (H) gate}}

In quantum information processing the Hadamard transformation, more often called Hadamard gate in this context (cf. quantum gate), is a one-qubit rotation, mapping the qubit-basis states and to two superposition states with equal weight of the computational basis states and . Usually the phases are chosen so that we have

in Dirac notation. This corresponds to the transformation matrix

in the basis, also known as the computational basis. The states and are known as and respectively, and together constitute the polar basis in quantum computing.

Many quantum algorithms use the Hadamard transform as an initial step, since it maps n qubits initialized with to a superposition of all 2n orthogonal states in the basis with equal weight.

Notably, computing the quantum Hadamard transform is simply the application of a Hadamard gate to each qubit individually because of the tensor product structure of the Hadamard transform. This simple result means the quantum Hadamard transform requires n operations, compared to the classical case of n log n operations.

Hadamard gate operations

One application of the Hadamard gate to either a 0 or 1 qubit will produce a quantum state that, if observed, will be a 0 or 1 with equal probability (as seen in the first two operations). This is exactly like flipping a fair coin in the standard probabilistic model of computation. However, if the Hadamard gate is applied twice in succession (as is effectively being done in the last two operations), then the final state is always the same as the initial state. This would be like taking a fair coin that is showing heads, flipping it twice, and it always landing on heads after the second flip.

Other applications

The Hadamard transform is also used in data encryption, as well as many signal processing and data compression algorithms, such as JPEG XR and MPEG-4 AVC. In video compression applications, it is usually used in the form of the sum of absolute transformed differences. It is also a crucial part of Grover's algorithm and Shor's algorithm in quantum computing. The Hadamard transform is also applied in experimental techniques such as NMR, mass spectrometry and crystallography.

See also

  • Fast Walsh-Hadamard transform
  • Pseudo-Hadamard transform
  • Haar transform
  • Generalized Distributive Law

External links

  • {{cite web |first=Terry |last=Ritter |title=Walsh-Hadamard Transforms: A Literature Survey |date=August 1996 |url=http://www.ciphersbyritter.com/RES/WALHAD.HTM}}
  • {{cite journal |first1=A.N. |last1=Akansu |first2=R. |last2=Poluri |title=Walsh-Like Nonlinear Phase Orthogonal Codes for Direct Sequence CDMA Communications |journal=IEEE Transactions on Signal Processing |volume=55 |issue=7 |pages=3800–6 |date=July 2007 |doi=10.1109/TSP.2007.894229 |url=http://web.njit.edu/~akansu/PAPERS/Akansu-Poluri-WALSH-LIKE2007.pdf |format=PDF}}
  • Pan, Jeng-shyang Data Encryption Method Using Discrete Fractional Hadamard Transformation (May 28, 2009)
  • Lachowicz, Dr. Pawel. Walsh–Hadamard Transform and Tests for Randomness of Financial Return-Series (April 7, 2015)
  • {{cite web |first1=Godfrey |last1=Beddard |first2=Briony A.|last2=Yorke |title=Pump-probe Spectroscopy using Hadamard Transforms |date=January 2011 |url=http://www1.chem.leeds.ac.uk/People/GSB/Hadamard_for_web.pdf |format=PDF}}
  • {{cite journal |first1=Briony A. |last1=Yorke |first2=Godfrey |last2=Beddard |first3=Robin L. |last3=Owen |first4=Arwen R. |last4=Pearson| title= Time-resolved crystallography using the Hadamard transform |journal= Nature Methods |date=September 2014 |doi=10.1038/nmeth.3139 |url= http://www.nature.com/nmeth/journal/vaop/ncurrent/full/nmeth.3139.html |volume=11 |pages=1131–1134 |pmid=25282611 |pmc=4216935}}

References

1. ^Compare Figure 1 in {{cite journal | citeseerx=10.1.1.74.8029 | title = Walsh Spectrum Computations Using Cayley Graphs | first1 = W. J. | last1 = Townsend | first2 = M. A. | last2 = Thornton }}
2. ^{{cite journal |first=H.O. |last=Kunz |title=On the Equivalence Between One-Dimensional Discrete Walsh-Hadamard and Multidimensional Discrete Fourier Transforms |journal=IEEE Transactions on Computers |volume=28 |issue=3 |pages=267–8 |year=1979 |doi=10.1109/TC.1979.1675334 |url=http://doi.ieeecomputersociety.org/10.1109/TC.1979.1675334}}
{{DEFAULTSORT:Hadamard Transform}}

2 : Quantum algorithms|Transforms

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 11:53:51