SwapGate.to_matrix

SwapGate.to_matrix()[source]

Return a numpy.array for the SWAP gate.