educative.io

Clarification of code comments

Hi,

Wanted to clarify regarding the code comments in the example of growing the Pauli X gate.

The comment “#tensor product with the gate” refers to the case of the first qubit, where the tensor product is actually taken with the identity matrix.

The comment “#tensor product with identity” refers to the case of the 2nd qubit, where the tensor product is taken between the Pauli X gate, with the 4 x4 grown identity matrix.

Should the comments be reversed, or am I misunderstanding something?

Love the course!

Thanks,
Alex

Type your question above this line.

Course: https://www.educative.io/collection/10370001/4797120098336768
Lesson: https://www.educative.io/collection/page/10370001/4797120098336768/5711972920721408

Hi @Alex16
Comments have been fixed now. Thank you for letting us know.