Hi, I have a conceptual doubt and don’t know where to ask so i tried to ask my doubt here.

The above is the quantum circuit and my doubt is how the matrix multiplication would be done after the Ry of second qubit , I mean to say that we know that CNOT is 4x4 matrix and if i start from the

[ 1 0 ] matrix of the second qubit and then evaluate the hadarmard gate matrix and then Ry matrix .So finally before the CNOT gate matrix for second qubit I will get the 1x2 matrix after the multiplication of Ry matrix in second qubit then the question is how should i proceed further to understand the matrix multiplicaion with CNOT gate matrix.

Can anybody please help me to understand mathematically how the final matrix for second qubit comes?

I want to know the final matrix of each qubit 1 and qubit 2.

Please help me to understand it