The error of dot product between two matrices

Thank you. It works.

Now I changed to use Subscript as follows for nicer forms in the ultimate results:

In[20]:= Inner[Times, Array[PauliMatrix, 4, 0], 
 Array[Subscript[a, #] &, 4, 0], Plus, 1]

Out[20]= {{Subscript[a, 0] + Subscript[a, 3], 
  Subscript[a, 1] - I Subscript[a, 2]}, {Subscript[a, 1] + 
   I Subscript[a, 2], Subscript[a, 0] - Subscript[a, 3]}}

On the other hand, I also noticed the following comment here :

If you want to do anything with the variables, indeed do not use
Subscript, it will generally be very confusing and frustrating…

The new function

Indexed

might be useful as well…

So, I would like to know whether I should preferentially choose to use Indexed instead of Subscript?

Regards,
Zhao