Hi @Joao . First, I have a nitpick: you should keep ##1/\sqrt{2}## instead of 0.7 (and not 0,7). Otherwise, the state will not be normalized to exactly 1.
Now, the reason for tensoring the gate is exactly the same reason that you tensor the two qubits. If you apply gates independently to the...