Implementing the sine transform of fermionic modes as a tensor network