Let $q$ be a complex number with $|q| < 1$, prove that $$ \prod_{n \in \Bbb{N} } \left(\dfrac{1-q^n}{1+q^n}\right)^{(-1)^n} = \sum_{n \in \Bbb{Z}} q^{n^2} $$
Not sure if this helps but the LHS can also be written as
$$ \prod_{n\in \Bbb{N}\\\text{n odd}}(1+q^n)(1+q^n+q^{2n}+\cdots)\prod_{n \in \Bbb{N} \\\text{n even}} (1-q^n)(1-q^n+q^{2n}-\cdots) $$
I've tried the method here and the method here, but they both give me nightmares. Is there any good idea?