This paper reports a study on the optimal magnetic design of a compact quadrupole electromagnet for the Canadian Light Source (CLS 2.0). The nature of the design is to determine a quadrupole with low relative higher order harmonics and better field quality. The design problem was formulated as an optimization model, in which the objective function is the higher order harmonics (multipole errors) and the variable to be optimized is the material distribution on the pole. The higher order harmonics arose in the quadrupole due to truncating the ideal hyperbola at a certain point to make the pole. In this project, the arisen harmonics have been optimized both transversely and longitudinally by adjusting material on the poles in a controlled way. For optimization, finite element analysis (FEA) has been conducted. A better higher order harmonics amplitudes and field quality have been achieved through the optimization. On the basis of the optimized magnetic design, electrical and cooling calculation has been performed for the magnet.
 Dallin, L.O., Bertwistle, Drew. “Magnet Design Considerations for an Ultralow Emittance Canadian Light Source” 9th International Particle Accelerator Conference (IPAC2018), Vancouver, BC, Canada.
 J. H. Billen and M. L. Young. “POISSON/SUPERFISH on PC Compatibles,” in Proc. PAC’93, Washington DC, USA, May 1993.
 Meng, Wuzheng. “Magnet Design and Simulation”, 22 August 2013.
 Tanabe, Jack. “Iron Dominated Electromagnets, Design, Fabrication, Assembly and Measurements”, Chapter 3-4, pp 57-83, January 06, 2005,
 Marks, Neil. “Conventional Magnets for Accelerators”, September 2004.
 Lin, Linda. “CLS Mechanical Services Design Criteria for System & Components”- 126.96.36.199 – Rev. 2, March 02, 201