I wonder if this has been studied:
What is the fewest number of unit cubes from which one can build an $n$-toroid?
The cubes must be glued face-to-face,
and the boundary of the resulting object should
be topologically equivalent to an $n$-torus, by which I mean
a genus-$n$ handlebody in $\mathbb{R}^3$ (as per Kevin Walker's terminological correction).
For example, 8 cubes are needed to form a 1-toroid:
And it seems that 13 cubes are needed for a 2-toroid:
I know how intricate is the analogous question for minimizing the
number of triangles from which one can build a torus
(cf. Császár's Torus), but I am hoping that my much easier question
has an answer for arbitrary $n$.
Thanks for ideas and/or pointers!
Addendum. Here is Steve Huntsman's 20-cube candidate for genus-5:

