The invention discloses a
quantum adversarial
attack method based on
momentum, which refers to an object
momentum mechanism, and designs a
quantum adversarial
attack method to efficiently generate adversarial samples. In order to solve the problem that an existing
quantum countermeasure attack method excessively fits a
specific model to cause a poor local optimal solution, the invention provides a novel quantum
countermeasure attack method based on
momentum (Q-MIFGSM). According to the method, a
loss function of a
quantum neural network classifier and momentum accumulation gradient information of a sample are defined, a momentum iteration updating mode is adopted, momentum accumulation is carried out on a
loss function gradient value, the optimization direction is dynamically adjusted in combination with current and historical gradients, and a local optimal solution is effectively jumped out; the
loss function value of the quantum classifier is increased to cause classification errors of the classifier, so that attack resistance is realized, and an adversarial sample is efficiently generated.
Simulation experiment results show that the Q-MIFGSM
algorithm can effectively execute adversarial attacks on the
quantum neural network classifier and generate adversarial samples close to
original data. A new strategy is provided for quantum attack resistance, and the method has potential application value in the aspects of
quantum neural network security evaluation and defense strategies.