



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Section A (Answer all questions -- do not spend more than 1 hour) Each question carries 2 marks.
Section 8 (Answer any 3 question -- do not spend more than 45 minsoneach) Each question carries 6 marks.
dimensional identity matrix. Using the above function^2 l^ x^ 2 0-y^ ato^3 show that^ cr^2.^ Here,^ p^^ O' is Herm iti x,^ O'y^ anan^ O'^ but not positve for y^ are t e usual^ Paull^ a^^ =ma^ {tn l, ce^ l , s^^ a l} , nd^ but^ a^2 isis^ thbothetw^ foro- a= {0,1,0}. (3 Marks)
Here, O'x and O'Y are the usual Pauli matrix and 02 is the two-dimensional identity matrix. a) Write a function that creates H for arguments^ J^ and^ g.^ (3^ Marks) b) Find out the dimensionof^ H.^ (1Mark) c) Find out the eigenvaluesof^ Hand^ write the diagonal form of^ H.^ (1+^ 1 Mark) Note: No transformationsofmatrix required.
Answer all questions^ -^ do not spend more than 1 hour. Each question carries^2 marks.
1.^ Define a function that takes anaturalnumber^ n,^ and uses a^ while^ or^ for^ loop^ to outputa list^ which^ contains^ the sum^ and^ productof allnatural^ numbersup^ ton (including^ n).^ Donot^ use^ NumPyor^ SciPy.^ Print^ theoutputfor^ n^ =^ 5.
Answer all^ questions^ -^ do^ not^ spend^ more than 1.5 hours. Each question^ carries 3+^ 1 marks, where 1 mark^ is^ for clarity^ in^ the answer.
The initial state is,^ x(O)^ =^ [1, 1 , 1).^ i)Evaluate the above at 100 values of time^ in^ the range, t^ E [O,10). Store the valuesoft,^ x^0 ,^ x^1 ,^ and^ x^2 ina dictionary (with readable labels) andsave it in a json file, "your_rollno.json"and^ submit^ the file. ii) Plot^ X -i^ vs t, Vi on the^ same^ plot,^ using^ matplotlib.^ Use legends for the different plots.
(a) A hard 8 (b)^ An^ easy 8