ZGate.to_matrix

ZGate.to_matrix()[source]

Return a numpy.array for the Z gate.