Magnetic field chip design method based on genetic algorithm
By designing magnetic field chips using genetic algorithms, the problems of long processing time and poor flexibility of traditional methods are solved. This enables fast and flexible optimization of magnetic field coil parameters, adapting to the needs of various cold atom cooling scenarios and providing efficient and low-power magnetic field chip designs.
Patent Information
- Application Number
- CN202511686200.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2025-12-19
AI Technical Summary
Traditional magnetic field chip design methods are computationally time-consuming and cannot meet the volume and power consumption requirements under limited load space. Furthermore, iterative methods are prone to the curse of dimensionality in parameter space during optimization, are computationally complex, and cannot be flexibly adjusted to different application scenarios.
The magnetic field chip design method based on genetic algorithm introduces a genetic algorithm to design a magnetic field chip with the minimum power consumption that meets the magnetic field target. The genetic algorithm is used to find the minimum power consumption combination of magnetic field coil parameters that meets the magnetic field and gradient requirements.
Significantly reduces magnetic field coil design time, improves design speed and flexibility, adapts to the needs of different cold atom cooling scenarios, and provides reliable, efficient, and low-power design tools.
Smart Images

Figure CN121168403A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the field of chipped cold atom sensing, and particularly relates to a magnetic field chip design method based on a genetic algorithm. BACKGROUND
[0002] Magnetic optical trap is the core technology of atomic cooling, which promotes the application of cold atom technology in the field of quantum sensing, such as cold atom clock, cold atom gravimeter, etc. However, the traditional three-dimensional magnetic optical trap is usually composed of six pairs of orthogonal laser beams and a pair of reverse Helmholtz coils. Three pairs of laser beams intersect at the center of the gas chamber, and each pair of laser beams is a pair of opposite polarization direction sigma + and sigma - light. The reverse Helmholtz coil is symmetrically distributed on both sides of the z-axis at the center point of the vacuum chamber. After passing through the same size and opposite direction current, the magnetic field at the center of the coil is zero, and an approximately linear magnetic field gradient is generated along the z-axis direction in the vicinity of the center point. Due to its complex structure, the cold atom quantum sensing instrument based on the traditional magnetic optical trap is difficult to meet the application scenarios with strict requirements on volume and power consumption under limited load space. In recent years, micro magnetic optical traps have developed rapidly. For example, the grating magnetic optical trap is a small-sized magnetic optical trap with a simplified optical path structure. It uses a grating chip to simplify six laser beams into a single incident light, which significantly reduces the complexity of the optical system. In addition, in recent years, by preparing a magnetic field chip on a small-sized circuit board to replace the reverse Helmholtz coil, and integrating the grating chip with the magnetic field chip, the miniaturization and integration technology of the magnetic optical trap system has been greatly accelerated, laying a foundation for the integration of cold atom quantum sensing instruments.
[0003] The current magnetic field chip design method mostly adopts an iterative method, that is, all the to-be-optimized magnetic field chip parameters are listed, and all possible parameter combinations are traversed. The problems faced by the iterative method are as follows: some to-be-optimized parameters such as coil radius range are difficult to describe with discrete variables; the iterative method cannot adjust all parameters at the same time, but can only adjust one parameter while keeping other parameters unchanged; different application scenarios require different working heights and gradient requirements, and the design needs to be restarted, resulting in long calculation time; the iterative method is prone to parameter space dimension disaster when optimizing the number of parameters, that is, assuming that there are 9 coil parameters to be optimized, even if each parameter takes only 10 numbers in its range, the total number of parameter combinations reaches 10 9 . SUMMARY
[0004] The purpose of the present application is to provide a magnetic field chip design method based on a genetic algorithm, which can design a magnetic field chip with minimum power consumption that meets the magnetic field target, greatly reduces the design time of the magnetic field coil, and improves the design speed and flexibility.
[0005] In order to achieve the above object, one aspect of the present application provides a magnetic field chip design method based on genetic algorithm, comprising: Step S1, setting genetic algorithm parameters, and setting magnetic field chip target parameters according to actual application requirements; Step S2, generating an initial population, the initial population being a plurality of groups of individuals containing coil parameters; Step S3, performing constraint condition checking on the individuals, the constraint conditions including physical constraints and design constraints, the physical constraints being used to exclude unreasonable physical structures, and the design constraints being used to ensure the function implementation of the magnetic field chip; Step S4, taking the power consumption of the coil structure corresponding to the individuals meeting the constraint conditions as the fitness function, evaluating the fitness of all individuals in the current population, and the smaller the fitness, the closer to the optimal solution; Step S5, judging whether the termination condition is met, outputting the individual with the optimal fitness as the optimal combination of coil parameters under the target parameters of the magnetic field chip when the termination condition is met, otherwise generating the next generation population, and repeating steps S3 and S4 until the termination condition is met.
[0006] According to the magnetic field chip design method based on genetic algorithm, the minimum power consumption of the magnetic field chip meeting the magnetic field target can be designed, the magnetic field coil design time is greatly reduced, and the design rapidity and flexibility are improved. BRIEF DESCRIPTION OF DRAWINGS
[0007] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor on the basis of these drawings: Figure 1 is a flow chart of the magnetic field chip design method based on genetic algorithm of one embodiment of the present application; Figure 2 is a principle diagram of the magnetic field chip design method based on genetic algorithm of one embodiment of the present application; Figure 3 is a schematic diagram of a planar magnetic field chip of one embodiment of the present application; Figure 4 is a magnetic field simulation diagram of the magnetic field chip of one embodiment of the present application; Figure 5 is a magnetic field theoretical simulation and test result diagram of the magnetic field chip of one embodiment of the present application; Figure 6 is a magnetic field gradient theoretical simulation and test result diagram of the magnetic field chip of one embodiment of the present application. DETAILED DESCRIPTION
[0008] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0009] One embodiment of the present invention provides a magnetic field chip design method based on a genetic algorithm, which introduces a genetic algorithm to find the minimum power consumption combination of magnetic field coil parameters that satisfies the magnetic field and gradient requirements. For example... Figure 1 As shown, the magnetic field chip design method based on genetic algorithm of this invention includes steps S1 to S5. The following is in conjunction with... Figure 2 The schematic diagram illustrates the various steps of the method in this embodiment of the invention.
[0010] In step S1, the genetic algorithm parameters are set, and the target parameters of the magnetic field chip are set according to the actual application requirements. In this embodiment, the working point height is set to 5mm, the required magnetic field gradient at the working point is -15Gs / cm, the minimum coil spacing is 0.2mm, and the physical size of the magnetic field chip is limited to a square with a side length of 40mm. The population size is set to 150, the crossover probability is set to 0.6, the maximum number of iterations is 20000, and the convergence tolerance is set to 1e-4.
[0011] In step S2, an initial population is generated. Several groups of individuals containing coil parameters are randomly generated in the solution space, such as... Figure 3 As shown, the individual genes include the minimum radius of the inner coil, the maximum radius of the inner coil, the number of inner coils N1, the current of the inner coil I1, the minimum radius of the outer coil, the maximum radius of the outer coil, the number of outer coils N2, the current of the outer coil I2, the coil width w, and the coil thickness h.
[0012] In this embodiment, the search range for the minimum radius, maximum radius, minimum radius, and maximum radius of the inner coil, outer coil, and inner coil is 1mm to 19mm. The search range for the number of inner coils N1 and outer coils N2 is 1 to 20. The search range for the currents I1 and I2 of the inner and outer coils is 0.1A to 3A. The search range for the coil width w is 0.1mm to 1mm. Due to process limitations, the coil thickness h is fixed at 0.07mm. The above search range is the solution space range. An initial population is randomly generated within the solution space using the algorithm. Each individual in the population is composed of a ten-dimensional vector.
[0013] In step S3, constraints are checked on the individual coils. Constraints include physical constraints and design constraints. Physical constraints are used to eliminate unreasonable physical structures, such as ensuring that the radius of the inner coil group is smaller than the radius of the outer coil group; the maximum diameter of the coil cannot exceed the chip's side length; and ensuring that the magnetic field chip can accommodate the designed coil distribution, considering the coil width and the spacing between coils. In this embodiment, a checking function is set to check whether the coil range satisfies the following conditions: the minimum radius of the inner coil group is less than the maximum radius of the inner coil group, less than the minimum radius of the outer coil group, and less than the maximum radius of the outer coil group. Using the number of coils, coil width, and coil distribution, the coil spacing of the current individual is calculated, and it is checked whether the coil spacing is greater than the minimum coil spacing.
[0014] Design constraints are used to ensure the functionality of the magnetic field chip, requiring that at the operating point, the magnetic flux density B = 0 and the magnetic field gradient be greater than or equal to the set target gradient. In this embodiment, a function is called to calculate the total magnetic field and total gradient at the operating point.
[0015] Formula for calculating the magnetic field of a single coil:
[0016] Formula for calculating the magnetic field gradient of a single coil:
[0017] Where: vacuum permeability I is the current intensity, and R is the coil radius. z 0 It is the distance to the work point.
[0018] The magnetic field and gradient of each individual coil are calculated and then summed to obtain the total magnetic field and gradient of the magnetic field chip at the operating point. The absolute value of the magnetic induction intensity must be less than 1 × 10⁻⁶. -6 Gs (approximately 0), the absolute value of the magnetic field gradient is greater than 15 Gs / cm.
[0019] In step S4, the fitness function is invoked. In this embodiment, the power consumption generated by the coil that currently meets the constraints is used as the fitness function. The smaller the fitness, the closer the solution is to the optimal target value. The total power consumption is calculated based on Joule's law, where the current is the inner coil current and the outer coil current, and the resistance is calculated based on the total coil length, wire width, wire thickness, and copper resistivity. The expression for the fitness function F is as follows:
[0020] In the formula: I1 is the inner coil current, I2 is the outer coil current, and ρ is the coil resistivity. When the coil is made of copper, ρ = 1.68 × 10⁻⁶. -8 L1 is the circumference of the inner coil, L2 is the circumference of the outer coil, w is the coil width, and h is the coil thickness.
[0021] The fitness of all individuals in the current population is evaluated; a lower fitness indicates that the solution is closer to the optimal one. In this embodiment, the coil parameter combination with the lowest fitness is the one with the lowest power consumption.
[0022] In step S5, it is determined whether the termination condition is met. If the termination condition is met, the individual with the best fitness is output, which is the optimal combination of coil parameters under the target parameters of the magnetic field chip. In this embodiment, the termination condition is reaching the maximum number of iterations of 20,000 or the change in the best fitness is less than 1 × 10⁻⁶. -4 The convergence tolerance is determined. If the termination condition is met, the coil parameter combination with the lowest power consumption is output. If the termination condition is not met, selection, crossover, and mutation operations are performed based on fitness to continue generating the next generation of individuals. The process returns to step S3 to check the constraints, and steps S3 and S4 are repeated until the termination condition is met.
[0023] In this embodiment, under the parameter settings in step S1, the optimal parameter combination is obtained as follows: inner coil radius range 1.05mm~6.22mm, inner coil number N1 is 10, inner coil current I1 is 1.96A, outer coil radius range 7.88mm~14.48mm, outer coil number N2 is 13, outer coil current I2 is 1.08A, inner and outer coil width w is 0.3mm, and coil thickness h is 0.07mm. Figure 4 As shown, a magnetic field chip model is established in COMSOL based on the above parameter combination. The magnetic induction intensity and magnetic field gradient generated by the magnetic field chip under this parameter combination are compared using COMSOL simulation and actual testing, as shown below. Figure 5 and Figure 6 As shown, the measured values and the simulated values are in agreement, indicating that the magnetic field chip designed by the design method of this embodiment of the invention meets the requirements.
[0024] The magnetic field chip design method based on genetic algorithm of this invention has the following advantages: Through the fitness function, a magnetic field chip with minimum power consumption that meets the magnetic field target can be designed; compared with the iterative method, it has been greatly improved in terms of speed and flexibility; the design method based on genetic algorithm greatly reduces the design time of magnetic field coils, can flexibly adapt to the magnetic field requirements of different atomic cooling scenarios, and provides a reliable, efficient and low-power design tool for the realization of miniaturized grating magneto-optical traps.
[0025] The foregoing has only described certain exemplary embodiments of the present invention by way of illustration. Undoubtedly, those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the foregoing drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.
Claims
1. A magnetic field chip design method based on genetic algorithm, characterized in that, include: Step S1: Set the genetic algorithm parameters and set the target parameters of the magnetic field chip according to the actual application requirements; Step S2: Generate an initial population, which consists of multiple groups of individuals containing coil parameters; Step S3: Perform constraint checks on the individual. Constraints include physical constraints and design constraints. Physical constraints are used to eliminate unreasonable physical structures, while design constraints are used to ensure the functionality of the magnetic field chip. Step S4: Use the power consumption generated by the coil structure corresponding to the individual that meets the constraints as the fitness function to evaluate the fitness of all individuals in the current population. The smaller the fitness, the closer it is to the optimal solution. Step S5: Determine whether the termination condition is met. If the termination condition is met, output the individual with the best fitness as the optimal combination of coil parameters under the target parameters of the magnetic field chip. Otherwise, generate the next generation population and repeat steps S3 and S4 until the termination condition is met.
2. The magnetic field chip design method based on genetic algorithm according to claim 1, characterized in that, The target parameters of the magnetic field chip set in step S1 include the working point height, the magnitude of the magnetic field gradient required for the working point, the minimum coil spacing, and the physical size of the magnetic field chip; the genetic algorithm parameters include the population size, crossover probability, maximum number of iterations, and convergence tolerance.
3. The magnetic field chip design method based on genetic algorithm according to claim 1 or 2, characterized in that, In step S2, multiple groups of individuals containing coil parameters are randomly generated in the solution space. The genes of an individual include the minimum radius of the inner group coil, the maximum radius of the inner group coil, the number of inner group coils, the magnitude of the inner group coil current, the minimum radius of the outer group coil, the maximum radius of the outer group coil, the number of outer group coils, the magnitude of the outer group coil current, the coil width, and the coil thickness.
4. The magnetic field chip design method based on genetic algorithm according to claim 3, characterized in that, The search range for the minimum radius of the inner coil, the maximum radius of the inner coil, the minimum radius of the outer coil, and the maximum radius of the outer coil is 1mm to 19mm. The search range for the number of inner coils and the number of outer coils is 1 to 20. The search range for the current of the inner coil and the current of the outer coil is 0.1A to 3A. The search range for the coil width is 0.1mm to 1mm. The coil thickness is 0.07mm.
5. The magnetic field chip design method based on genetic algorithm according to claim 3, characterized in that, In step S3, a check function is set to check whether the coil range satisfies the condition that the minimum radius of the inner group coil is less than the maximum radius of the inner group coil, less than the minimum radius of the outer group coil, and less than the maximum radius of the outer group coil; using the number of coils, coil width, and coil distribution, the coil interval of the current individual is calculated, and it is checked whether the coil interval is greater than the minimum coil interval.
6. The magnetic field chip design method based on genetic algorithm according to claim 1 or 2, characterized in that, In step S3, the magnetic induction intensity and magnetic field gradient of a single coil are calculated and then summed. It is then checked whether the absolute value of the total magnetic induction intensity is approximately 0 at the operating point, and whether the absolute value of the total magnetic field gradient is greater than or equal to the set target gradient.
7. The magnetic field chip design method based on genetic algorithm according to claim 1 or 2, characterized in that, The fitness function F is expressed as follows: , Where I1 is the inner coil current, I2 is the outer coil current, ρ is the coil resistivity, L1 is the inner coil circumference, L2 is the outer coil circumference, w is the coil width, and h is the coil thickness.
8. The magnetic field chip design method based on genetic algorithm according to claim 1 or 2, characterized in that, The termination condition is reaching the set maximum number of iterations or the change in the fitness value of an individual in the population is less than the set convergence tolerance.
Citation Information
Patent Citations
Optimization design method of superconducting magnet external magnetic shielding coil
CN108107390A
An optimization design method and a device of a magnetic nanoparticle simulation test platform
CN109472114A
Dynamic cooperative wireless charging system control method based on genetic gradient optimization algorithm
CN120613855A
Method and system for intelligently inhibiting and shielding electromagnetic interference of integrated circuit chip
CN120805817A
IPT system Anti-offset parameter optimization method and system and computer device
WO2022127462A1
Cited By
Water-cooled magnet optimization method and system
CN122154107A
A method and system for optimizing water-cooled magnets
CN122154107B
