Householder transformation

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Short description In linear algebra, a Householder transformation (also known as a Householder reflection or elementary reflector) is a linear transformation that describes a reflection about a plane or hyperplane containing the origin. The Householder transformation was used in a 1958 paper by Alston Scott Householder.[1]

Definition

Operator and transformation

The Householder operator[2] may be defined over any finite-dimensional inner product space V with inner product , and unit vector uV as

Hu(x):=x2x,uu.[3]

It is also common to choose a non-unit vector qV, and normalize it directly in the Householder operator's expression:[4]

Hq(x)=x2x,qq,qq.

Such an operator is linear and self-adjoint.

If V=n, note that the reflection hyperplane can be defined by its normal vector, a unit vector vV (a vector with length 1) that is orthogonal to the hyperplane. The reflection of a point x about this hyperplane is the Householder transformation:

x2x,vv=x2v(v*x),

where x is the vector from the origin to the point x, and v* is the conjugate transpose of v.

File:Householdertransformation.png
The Householder transformation acting as a reflection of x about the hyperplane defined by v.

Householder matrix

The matrix constructed from this transformation can be expressed in terms of an outer product as:

P=I2vv*

is known as the Householder matrix, where I is the identity matrix.

Properties

The Householder matrix has the following properties:

  • it is Hermitian: P=P*,
  • it is unitary: P1=P* (via the Sherman-Morrison formula),
  • hence it is involutory: P=P1.
  • A Householder matrix has eigenvalues ±1. To see this, notice that if x is orthogonal to the vector v which was used to create the reflector, then Pvx=(I2vv*)x=x2v,xv=x, i.e., 1 is an eigenvalue of multiplicity n1, since there are n1 independent vectors orthogonal to v. Also, notice Pvv=(I2vv*)v=v2v,vv=v (since v is by definition a unit vector), and so 1 is an eigenvalue with multiplicity 1.
  • The determinant of a Householder reflector is 1, since the determinant of a matrix is the product of its eigenvalues, in this case one of which is 1 with the remainder being 1 (as in the previous point), or via the Matrix determinant lemma.

Example

consider the normalization of a vector of 1's

v=12[11]

Then the Householder matrix corresponding to this vector is

Pv=[1001]2(12[11])(12[11])

=[1001][11][11]

=[1001][1111]

=[0110]

Note that if we have a vector representing a coordinate in the 2D plane

[xy]

Then in this case Pv flips and negates the x and y coordinates, in other words

Pv[xy]=[yx]

Which corresponds to reflecting the vector across the line y=x, which our original vector v is normal to.

Applications

Geometric optics

In geometric optics, specular reflection can be expressed in terms of the Householder matrix (see Template:Section link).

Numerical linear algebra

Householder transformations are widely used in numerical linear algebra, for example, to annihilate the entries below the main diagonal of a matrix,[5] to perform QR decompositions and in the first step of the QR algorithm. They are also widely used for transforming to a Hessenberg form. For symmetric or Hermitian matrices, the symmetry can be preserved, resulting in tridiagonalization.[6] Because they involve only a rank-one update and make use of low-level BLAS-1 operations, they can be quite efficient.

QR decomposition

Script error: No such module "Labelled list hatnote".

Householder transformations can be used to calculate a QR decomposition. Consider a matrix tridiangularized up to column i, then our goal is to construct such Householder matrices that act upon the principal submatrices of a given matrix

[a11a12a1n0a22a1n00x1=aiiain0000xn=aniann]

via the matrix

[Ii100Pv].

(note that we already established before that Householder transformations are unitary matrices, and since the multiplication of unitary matrices is itself a unitary matrix, this gives us the unitary matrix of the QR decomposition)

If we can find a v so that

Pvx=e1

we could accomplish this. Thinking geometrically, we are looking for a plane so that the reflection about this plane happens to land directly on the basis vector. In other words,

Template:NumBlk

for some constant α. However, for this to happen, we must have

vxαe1.

And since v is a unit vector, this means that we must have

Template:NumBlk

Now if we apply equation (Template:EquationNote) back into equation (Template:EquationNote), we get

xαe1=2(x,xαe1xαe12xαe1xαe12

Or, in other words, by comparing the scalars in front of the vector xαe1 we must have

xαe122=2x,xαe1.

Or

2(x22αx1)=x222αx1+α2

Which means that we can solve for α as

α=±x2

This completes the construction; however, in practice we want to avoid catastrophic cancellation in equation (Template:EquationNote). To do so, we choose the sign of α as

α=sign(Re(x1))x2 [7]

Tridiagonalization (Hessenberg)

Script error: No such module "Labelled list hatnote".

Script error: No such module "Labelled list hatnote".

This procedure is presented in Numerical Analysis by Burden and Faires, and works when the matrix is symmetric. In the non-symmetric case, it is still useful as a similar procedure can result in a Hessenberg matrix.

It uses a slightly altered sgn function with sgn(0)=1.[8] In the first step, to form the Householder matrix in each step we need to determine α and r, which are:

α=sgn(a21)j=2naj12;r=12(α2a21α);

From α and r, construct vector v:

v(1)=[v1v2vn],

where v1=0, v2=a21α2r, and

vk=ak12r for each k=3,4n

Then compute:

P1=I2v(1)(v(1))TA(2)=P1AP1

Having found P1 and computed A(2) the process is repeated for k=2,3,,n2 as follows:

α=sgn(ak+1,kk)j=k+1n(ajkk)2r=12(α2ak+1,kkα)v1k=v2k==vkk=0vk+1k=ak+1,kkα2rvjk=ajkk2r for j=k+2, k+3, , nPk=I2v(k)(v(k))TA(k+1)=PkA(k)Pk

Continuing in this manner, the tridiagonal and symmetric matrix is formed.

Examples

In this example, also from Burden and Faires,[8] the given matrix is transformed to the similar tridiagonal matrix A3 by using the Householder method.

𝐀=[4122120120322121],

Following those steps in the Householder method, we have:

The first Householder matrix:

Q1=[1000013232302323130231323],A2=Q1AQ1=[43003103143015343043431],

Used A2 to form

Q2=[10000100003545004535],A3=Q2A2Q2=[430031035300533325687500687514975],

As we can see, the final result is a tridiagonal symmetric matrix which is similar to the original one. The process is finished after two steps.

Quantum computation

Script error: No such module "Labelled list hatnote".

File:Grovers algorithm geometry.png
Picture showing the geometric interpretation of the first iteration of Grover's algorithm. The state vector |s is rotated towards the target vector |ω as shown.

As unitary matrices are useful in quantum computation, and Householder transformations are unitary, they are very useful in quantum computing. One of the central algorithms where they're useful is Grover's algorithm, where we are trying to solve for a representation of an oracle function represented by what turns out to be a Householder transformation:

{Uω|x=|xfor x=ω, that is, f(x)=1,Uω|x=|xfor xω, that is, f(x)=0.

(here the |x is part of the bra-ket notation and is analogous to x which we were using previously)

This is done via an algorithm that iterates via the oracle function Uω and another operator Us known as the Grover diffusion operator defined by

|s=1Nx=0N1|x. and Us=2|ss|I.

Computational and theoretical relationship to other unitary transformations

Script error: No such module "Labelled list hatnote". The Householder transformation is a reflection about a hyperplane with unit normal vector v, as stated earlier. An N-by-N unitary transformation U satisfies UU*=I. Taking the determinant (N-th power of the geometric mean) and trace (proportional to arithmetic mean) of a unitary matrix reveals that its eigenvalues λi have unit modulus. This can be seen directly and swiftly:

Trace(UU*)N=j=1N|λj|2N=1,det(UU*)=j=1N|λj|2=1.

Since arithmetic and geometric means are equal if the variables are constant (see inequality of arithmetic and geometric means), we establish the claim of unit modulus.

For the case of real valued unitary matrices we obtain orthogonal matrices, UUT=I. It follows rather readily (see Orthogonal matrix) that any orthogonal matrix can be decomposed into a product of 2-by-2 rotations, called Givens rotations, and Householder reflections. This is appealing intuitively since multiplication of a vector by an orthogonal matrix preserves the length of that vector, and rotations and reflections exhaust the set of (real valued) geometric operations that render invariant a vector's length.

The Householder transformation was shown to have a one-to-one relationship with the canonical coset decomposition of unitary matrices defined in group theory, which can be used to parametrize unitary operators in a very efficient manner.[9]

Finally we note that a single Householder transform, unlike a solitary Givens transform, can act on all columns of a matrix, and as such exhibits the lowest computational cost for QR decomposition and tridiagonalization. The penalty for this "computational optimality" is, of course, that Householder operations cannot be as deeply or efficiently parallelized. As such Householder is preferred for dense matrices on sequential machines, whilst Givens is preferred on sparse matrices, and/or parallel machines.

See also

Notes

  1. Script error: No such module "Citation/CS1".
  2. Script error: No such module "Footnotes".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "Footnotes".
  5. Script error: No such module "citation/CS1".
  6. Script error: No such module "Citation/CS1".
  7. Script error: No such module "citation/CS1".
  8. a b Script error: No such module "citation/CS1".
  9. Script error: No such module "Citation/CS1".

References

  • Script error: No such module "Citation/CS1".
  • Script error: No such module "Citation/CS1".
  • Script error: No such module "Citation/CS1". (Herein Householder Transformation is cited as a top 10 algorithm of this century)
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".

Template:Matrix classes