type

symbol

graph

matrix

NOT

N

[ 0 1 1 0 ]

CNOT

C

[ 1 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 ]

Hadamard

H

1 2 [ 1 1 1 1 ]

T gate

T

[ 1 0 0 e i π 4 ]

T gate1

T+

[ 1 0 0 e i π 4 ]

Phase

S

[ 1 0 0 i ]

Phase1

S+

[ 1 0 0 i ]