Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

Present a combinatorial explanation of why Ft r, n

Answered: 1 week ago