Question: H W - 2 ( this is phython ) HW - 2 :Tensor Product ( Kronecker Product ) on i ) vector, vector ii )

HW-2(this is phython)
HW-2:Tensor Product (Kronecker Product) on
i) vector, vector
ii)vector, matrix
iii)matrix, matrix
iv) general: your program
checks the two inputs
and calculates accordingly
Note: Each matrix representing the
"density matrix" of a qubit,
Tensor product represents the density
matrix of the two-qubit system
In[21]:=M1={{5,10},{15,20}};
M1?? MatrixForm
M2={{a,b},{c,d}};
M2?? MatrixForm
KroneckerProduct [M1,M2]??MatrixForm
Out[22]/MatrixForm=
([5,10],[15,20])
Out[24]/MatrixForm=
([a,b],[c,d])
Out[25]/MatrixForm=
([5a,5b,10a,10b],[5c,5d,10c,10d],[15a,15b,20a,20b],[15c,15d,20c,20d])Question: Write, test and submit a Python unit conversion program based on your HW\#2, HW\#3,
 HW-2(this is phython) HW-2:Tensor Product (Kronecker Product) on i) vector, vector

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!