The work is supported by the Russian Science Foundation
(project 20-42-05002; the development of the method in section 3) and UMNIK Grant (Agreement
16576GU/2021 from 02.06.2021; development of the neural-network based software in section 3). We also
acknowledge the support from Leading Research Center on Quantum Computing (Agreement 014/20;
generalization of the method in section 4 and application to real quantum computers in section 5).
Поступила в редакцию: 10.02.2022 Исправленный вариант: 06.06.2022 Принята в печать: 08.07.2022