Message Boards Message Boards

0
|
2745 Views
|
5 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to write a matrix in a different basis?

Posted 3 years ago

Hi!

I have these two 4x4 matrix

Subscript[S, 1] = KroneckerProduct[PauliMatrix[1], IdentityMatrix[2]]

Subscript[S, 2] = KroneckerProduct[IdentityMatrix[2], PauliMatrix[2]]

Which are written in the Canonical basis ({{1}, {0}, {0}, {0}}; {{0}, {1}, {0}, {0}}; {{0}, {0}, {1}, {0}}; {{0}, {0}, {0}, {1}})

I would like to write down these two matrices in the following basis:

G := {{0}, {0}, {0}, {1}}

S := (1/Sqrt[2]) {{0}, {1}, {1}, {0}}

A := (1/Sqrt[2]) {{0}, {1}, {-1}, {0}}

E := {{1}, {0}, {0}, {0}}

Is there any way to do it in Mathematica?

Thanks in advance

POSTED BY: Matheus Soares
5 Replies
Posted 2 years ago

Crossposted here.

POSTED BY: Rohit Namjoshi

I cannot understand what is going on there. It works on my system. Did you copy/paste or did you type the commands?

POSTED BY: Hans Dolhaine
Posted 3 years ago

Sorry! The problem was my code. It works here now. Thank you very much!

POSTED BY: Matheus Soares

According to my books this should be done by

m1 = KroneckerProduct[PauliMatrix[1], IdentityMatrix[2]];
mT = {
   {0, 0, 0, 1},
   {0, 1/Sqrt[2], 1/Sqrt[2], 0},
   {0, 1/Sqrt[2], -1/Sqrt[2], 0},
   {1, 0, 0, 0}};


m1T = Inverse[mT].m1.mT;
m1T // MatrixForm
POSTED BY: Hans Dolhaine
Posted 3 years ago

Thanks for the answer!

I understood what you have done but when I reply it I do not get a matrix as the result. Instead, I get the following result: My result

POSTED BY: Matheus Soares
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract