Early fusion research devices were variants on the Z-pinch and used electric current to generate a poloidal magnetic field to contain the plasma along a linear axis between two points.
For a toroidal plasma to be effectively confined by a magnetic field, there must be a twist to the field lines.