In this paper, we investigate the switch of a magnet-based superconducting spin valve. As a magnet, we consider the MnSi compound characterized by a complex magnetic structure with its magnetization in the form of a spiral helicoid. A model is given for a double-layered superconducting spin valve based on the spiral magnet with an adjoining superconducting thin layer. As shown previously, critical temperature of such a superconducting film depends on the direction of the spiral magnet. Calculations have been performed for magnetic dynamics of this structure, which in prospect can serve as the basis for creating memory or logic elements of low temperature nanoelectronics. Several problems have been treated with regards to mathematical simulation of switching the spin valve magnetization, research on the spin valve structure using electromagnetic simulation software to change magnetization and rotation of the spiral magnetic vector under the magnetic-field pulse, construction and analysis of 3D magnetization distributions in spiral magnets to trace the process of remagnetization. In this work, we use a Matlab-based software environment and tools for constructing distribution plots of vector fields. It is shown that the direction of the spiral magnet can be switch by pulsed magnetic field. Research has been done on the resultant magnetization distributions visualized in the form of vector fields.