XGate.to_matrix

XGate.to_matrix()[source]

Return a numpy.array for the X gate.