The invention provides an optical tweezer generation method and device,
electronic equipment and a storage medium, and the method comprises the steps: initializing an optical tweezer phase based on a designated optical tweezer phase and an optical tweezer position
mask matrix, and initializing an optical tweezer amplitude based on a target optical tweezer amplitude diagram; and updating the phase of the
spatial light modulator based on the phase of the
optical tweezers and the amplitude of the
optical tweezers, respectively updating the phase of the
optical tweezers and the amplitude of the optical
tweezers based on the phase of the
spatial light modulator, and carrying out phase constraint on the updated phase of the optical
tweezers based on the appointed phase of the optical
tweezers and the position
mask matrix of the optical tweezers. Updating the number of iterations and returning to update the phase of the
spatial light modulator based on the new optical tweezer phase and the optical tweezer amplitude until the number of iterations reaches an iteration threshold value; and generating the optical tweezers based on the phase of the spatial light modulator. According to the method, the device, the
electronic equipment and the storage medium provided by the invention, the
global optimization capability is solved by utilizing the iterative
algorithm, the phase of the optical tweezers is ensured to be controllable, and the risk of random
jumping of the phase of the optical tweezers is avoided.