0

I need a complete set of 2x2 matrices: first the Identity matrix and then the Pauli matrices. I need also an index (spacing from 1 to 4) to indicate a single one of those. Thank you very much

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
  • PauliMatrix does exactly this: https://reference.wolfram.com/language/ref/PauliMatrix.html remember to check the documentation before posting here. The ordering might be shuffled respect to what you want, but you can redifine new names in the order that you prefer – Fraccalo May 16 '20 at 10:19

1 Answers1

1
mats = PauliMatrix[Range[0, 3]];

MatrixForm /@ mats

enter image description here

mats[[3]]
{{0, -I}, {I, 0}}
kglr
  • 394,356
  • 18
  • 477
  • 896