0
$\begingroup$

I want to multiply same matrix using dot product for n times.

   U[n_]:=Apply[Dot,[MatrixExp[-I H ]],{i,0,n}]
$\endgroup$
2
  • 1
    $\begingroup$ Why not MatrixExp[-I*H*n] instead of multiplying explicitly? $\endgroup$
    – Roman
    Apr 11, 2021 at 12:19
  • $\begingroup$ That will not give same result. $\endgroup$
    – user68207
    Apr 11, 2021 at 12:21

1 Answer 1

3
$\begingroup$

Just as @Roman have mentioned.

H = {{a, b}, {c, d}};
n = 5;
Dot @@ Table[MatrixExp[-I*H], {i, n}] ==MatrixPower[MatrixExp[-I*H], n] == MatrixExp[-I*H*n] // Simplify

True

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.