Modular forms on $\Gamma_0(N)$ with character in Sage

381 Views Asked by At

I'm trying to work with modular forms on $\Gamma_0(N)$ with character in Sage.

In particular, I've been using the following:

sage.modular.modform.constructor.CuspForms(group, weight)
sage.modular.modform.constructor.EisensteinForms(group, weight)
sage.modular.modform.constructor.ModularForms(group, weight)

The group parameter can be either a congruence subgroup, like Gamma0(N) or Gamma1(N), or a Dirichlet character, like DirichletGroup(5)[0].

The problem: if you set group to a Dirichlet character $\chi$ of conductor $C$, then the above functions return spaces of modular forms on $(\Gamma_1(C), \chi)$, aka, forms on $\Gamma_1(C)$.

Using these functions or others, is there a way to get the spaces of modular forms on $(\Gamma_0(C), \chi)$ ?