Following https://github.com/quantumlib/Qualtran/pull/1167, we restrict sympy for mypy type checking issues. Need to investigate