7
$\begingroup$

The QISKIT documentation doesn't explain what a TDG gate does and I can't find it anywhere else online.

$\endgroup$

1 Answer 1

8
$\begingroup$

According to the QISKit documentation, tdg(q) applies the Tdg gate to a qubit.

$T$ is the basically the $\pi/8$ phase shift gate whose matrix representation considering standard (computational) basis is:

$$\left(\begin{matrix}1 & 0 \\ 0 & e^{i\pi/4}\end{matrix}\right)$$

Tdg is simply the conjugate transpose of the matrix $T$ i.e. $T^{\dagger}$, which is:

$$\left(\begin{matrix}1 & 0 \\ 0 & e^{-i\pi/4}\end{matrix}\right)$$

Thus, the $T$ gate would map the basis vectors (of a qubit) $|0\rangle$ to $|0\rangle$ itself and $|1\rangle$ to $e^{i\pi/4}|1\rangle$, whereas $T^{\dagger}$ would map $|0\rangle$ to $|0\rangle$ itself and $|1\rangle$ to $e^{-i\pi/4}|1\rangle$.

P.S: In case you're wondering what dg means in tdg, it is simply an abbreviation for "dagger" i.e. in the sense of $T^{\dagger}$ (pronounced as $T$ - dagger).

$\endgroup$
2
  • $\begingroup$ No answers since July, Blue? $\endgroup$ Commented Oct 12, 2018 at 17:15
  • $\begingroup$ @John Yeah, I was kinda busy with university work in the past few months. I'm also focusing a bit more on theoretical computer science rather than quantum computing these days. I will perhaps resume answering when my vacations begin. Have a good day/night. $\endgroup$ Commented Oct 12, 2018 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.