TransWikia.com

How to construct a controlled-Hadamard gate using single qubit gates and controlled phase-shift?

Quantum Computing Asked by user14639 on April 23, 2021

How can I construct a controlled-Hadamard gate using single qubit gates and controlled phase-shift?

I am stuck in this and any help would be appreciated.

One Answer

One strategy is to find a single-qubit rotation $R_{hat n}$ such that

$$ R_{hat n}(theta) , P(phi) , R_{hat n}(-theta) = Htag1 $$

where $hat n = (n_x, n_y, n_z)^T$ is a real 3-vector of unit norm and $P(phi) = mathrm{diag}(1, e^{iphi})$ is a phase gate. The motivation behind this approach is the observation that when the phase gate $P(phi)$ is controlled by another qubit the sequence turns into the Hadamard gate when the control is in the $|1rangle$ state and into $R_1(theta) R_1(-theta) = I$ when it is in the $|0rangle$ state.

Now, we recognize $(1)$ as matrix diagonalization which means that $P(phi) = Z$ and $R_{hat n}(theta)$ is the matrix whose columns are the eigenvectors of the Hadamard.

At this point, we could compute the eigenvectors. However, we notice that both the eigenvalues and the entries of the Hadamard matrix are real numbers. Therefore, the eigenvectors have real entries, too. We recall that among the rotations around $X$, $Y$ and $Z$ axes, one has real entries

$$ R_y(beta) = begin{pmatrix} cosfrac{beta}{2} & -sinfrac{beta}{2} sinfrac{beta}{2} & cosfrac{beta}{2} end{pmatrix} $$

so we are led to guess that a $Y$ rotation might work. We try it out by substituting into $(1)$

$$ begin{pmatrix} cosfrac{theta}{2} & -sinfrac{theta}{2} sinfrac{theta}{2} & cosfrac{theta}{2} end{pmatrix} begin{pmatrix} 1 & 0 0 & -1 end{pmatrix} begin{pmatrix} cosfrac{theta}{2} & sinfrac{theta}{2} -sinfrac{theta}{2} & cosfrac{theta}{2} end{pmatrix} = begin{pmatrix} cosfrac{theta}{2} & -sinfrac{theta}{2} sinfrac{theta}{2} & cosfrac{theta}{2} end{pmatrix} begin{pmatrix} cosfrac{theta}{2} & sinfrac{theta}{2} sinfrac{theta}{2} & -cosfrac{theta}{2} end{pmatrix} = begin{pmatrix} costheta & sintheta sintheta & -costheta end{pmatrix} $$

and we see that we obtain the Hadamard if $theta = frac{pi}{4}$.

Therefore,

$$ R_yleft(frac{pi}{4}right) circ CZ circ R_yleft(-frac{pi}{4}right) = CHtag1 $$

where $CZ$ and $CH$ denote the controlled-$Z$ and controlled-Hadamard gates.

Answered by Adam Zalcman on April 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP