Embodiments of the present invention provide a compact gantry designed to provide particle therapy using a particle beam. A gantry for providing the particle therapy comprises a first dipole magnet operable to bend a particle beam received from a cyclotron by a first degree amount. The gantry further comprises a plurality of quadrupole magnets configured to condition the beam asymmetrically to produce an asymmetric beam, wherein a configuration of the quadrupole magnets is determined using a dispersion function of a second dipole magnet. Further, the second dipole magnet is operable to receive the asymmetric beam and bend the asymmetric beam by a second degree amount, and wherein the second dipole magnet disperses the asymmetric beam to produce a symmetric beam shape at a treatment isocenter or at any other reference point.