{"id":353830,"date":"2024-05-20T22:36:14","date_gmt":"2024-05-20T22:36:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=353830"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=353830","title":{"rendered":"<span>\u041a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b. \u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430-\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430. \u0427\u0430\u0441\u0442\u044c 5<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/eeb\/6a8\/672\/eeb6a86726b50964b02a4a86fa1c99b6.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/eeb\/6a8\/672\/eeb6a86726b50964b02a4a86fa1c99b6.png\"\/><\/figure>\n<h2>\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0433\u0435\u0439\u0442\u0430\u0445<\/h2>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/articles\/750978\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445<\/a> \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0433\u0435\u0439\u0442\u043e\u0432: \u0418\u043d\u0432\u0435\u0440\u0442\u043e\u0440, C-NOT, \u0410\u0434\u0430\u043c\u0430\u0440\u0430, \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u044f \u0444\u0430\u0437\u044b. \u041d\u043e, \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u0441\u044c, \u043a\u0430\u043a-\u0442\u043e \u043d\u0435 \u043f\u043e\u0445\u043e\u0436\u0438 \u043e\u043d\u0438 \u043d\u0430 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u043d\u0430\u043c \u0433\u0435\u0439\u0442\u044b \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432: AND, OR, XOR, NOT. \u041d\u0443, \u043b\u0430\u0434\u043d\u043e, \u0441 NOT \u044d\u0442\u043e \u044f \u0445\u0432\u0430\u0442\u0438\u043b \u043b\u0438\u0448\u043a\u0443, NOT \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u0438\u043d\u0432\u0435\u0440\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0441\u0430\u043c\u044b\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u0433\u0435\u0439\u0442\u043e\u043c \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445.<\/p>\n<p>\u0410 \u043a\u0430\u043a \u0431\u044b\u0442\u044c \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438? \u041c\u043e\u0436\u0435\u043c \u043b\u0438 \u043c\u044b \u043a\u0430\u043a-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 AND?<br \/> \u0418 \u0434\u0430, \u0438 \u043d\u0435\u0442. \u041a\u0430\u043a \u0432\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u044f\u0437\u0430\u043d\u0430 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u0434\u0432\u0443\u043c\u044f \u0432\u0430\u0436\u043d\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p>\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b\u0438, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u043a \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u043c\u0443 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e, \u0442\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u043e\u0440\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0443\u043c\u043c\u0430 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c 1. \u0410 \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u0443\u043c\u043c\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0432\u0441\u0435\u0445 \u0430\u043c\u043f\u043b\u0438\u0442\u0443\u0434 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u0430 1.<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u0432\u044b, \u043c\u043e\u0436\u0435\u0442, \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0441 \u043f\u0435\u0440\u0432\u044b\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u044f \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 \u043f\u0440\u0438\u0432\u0440\u0430\u043b. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438. \u041d\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0432\u0435\u0437\u043b\u043e, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0433\u0435\u0439\u0442\u043e\u0432 \u0410\u0434\u0430\u043c\u0430\u0440\u0430, \u0438\u043d\u0432\u0435\u0440\u0442\u043e\u0440\u0430, C-NOT \u0438 \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0430\u0437\u044b \u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0442\u0435\u043c\u0438 \u0436\u0435 \u0441\u0430\u043c\u044b\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438 \u043f\u0440\u0438\u0432\u0440\u0430\u043b \u0442\u043e\u0433\u0434\u0430, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u044d\u0442\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u0446\u0435\u043f\u044c, \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u043d\u0430\u044f \u0434\u0432\u0430\u0436\u0434\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041d\u0435\u0442, \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435, \u044d\u0442\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0434\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<p><strong>\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"U\" alt=\"U\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/4c\/4c6\/4c614360da93c0a041b22e537de151eb.svg\" width=\"auto\" height=\"auto\"\/> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f <img decoding=\"async\" class=\"formula inline\" source=\"U^\\dagger\" alt=\"U^\\dagger\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/43\/431\/431b80ab5a7a5cb11191e4f71c5e74a7.svg\" width=\"auto\" height=\"auto\"\/>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438.<\/strong><\/p>\n<p>\u041f\u043e\u043a\u0430 \u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0434\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c. \u0418\u043d\u043e\u0433\u0434\u0430 \u044d\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, <img decoding=\"async\" class=\"formula inline\" source=\"U\\equiv U^\\dagger\" alt=\"U\\equiv U^\\dagger\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/dd\/ddc\/ddce0e2fe375404a453cab9acc582f7c.svg\" width=\"auto\" height=\"auto\"\/>, \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0431\u044b\u043b\u043e \u0441 \u0442\u0435\u043c\u0438 \u0433\u0435\u0439\u0442\u0430\u043c\u0438, \u0447\u0442\u043e \u043d\u0430\u043c \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438\u0441\u044c \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440. \u041d\u043e, \u043a\u0430\u043a \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0442\u0430\u043a\u043e\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430.<\/p>\n<p>\u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u0441\u0435\u0445 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <img decoding=\"async\" class=\"formula inline\" source=\"|x\\rangle\" alt=\"|x\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/d3\/d3f\/d3fb397fea373c58eaf8ddcde93ae549.svg\" width=\"auto\" height=\"auto\"\/> \u0435\u043c\u043a\u043e\u0441\u0442\u044c\u044e \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0443\u0431\u0438\u0442, \u0438 \u043c\u044b \u043f\u043e\u0434\u0432\u0435\u0440\u0433\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u043c\u0443 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044e, \u043a\u0430\u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c <em>n<\/em>-\u043a\u0443\u0431\u0438\u0442\u043d\u043e\u043c\u0443 \u0433\u0435\u0439\u0442\u0443 <img decoding=\"async\" class=\"formula inline\" source=\"U\" alt=\"U\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/4c\/4c6\/4c614360da93c0a041b22e537de151eb.svg\" width=\"auto\" height=\"auto\"\/> <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4b8\/af0\/b7d\/4b8af0b7d71e8f3e48af5b27e955b6dd.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4b8\/af0\/b7d\/4b8af0b7d71e8f3e48af5b27e955b6dd.png\"\/><\/figure>\n<p> \u0422\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0431\u044b\u0442\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f <img decoding=\"async\" class=\"formula inline\" source=\"U^\\dagger\" alt=\"U^\\dagger\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/43\/431\/431b80ab5a7a5cb11191e4f71c5e74a7.svg\" width=\"auto\" height=\"auto\"\/>, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435. \u0418 \u0435\u0441\u043b\u0438 \u043c\u044b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"U|x\\rangle\" alt=\"U|x\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/c\/c3\/c33\/c33e0ecf31f97f1c1ca186dd5e6b1e95.svg\" width=\"auto\" height=\"auto\"\/> \u043f\u043e\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u0432\u0445\u043e\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"U^\\dagger\" alt=\"U^\\dagger\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/43\/431\/431b80ab5a7a5cb11191e4f71c5e74a7.svg\" width=\"auto\" height=\"auto\"\/>, \u043c\u044b \u0441\u043d\u043e\u0432\u0430 \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e <img decoding=\"async\" class=\"formula inline\" source=\"|x\\rangle\" alt=\"|x\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/d3\/d3f\/d3fb397fea373c58eaf8ddcde93ae549.svg\" width=\"auto\" height=\"auto\"\/> <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/711\/066\/ed2\/711066ed2e632ed70d5aed9dbd605a56.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/711\/066\/ed2\/711066ed2e632ed70d5aed9dbd605a56.png\"\/><\/figure>\n<p> \u0418 \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442? \u0427\u0442\u043e \u043c\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u043c \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e AND, XOR, OR \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u043c\u0438 \u0433\u0435\u0439\u0442\u0430\u043c\u0438, \u0432\u0435\u0434\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 AND, XOR, OR \u043d\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b. \u0418\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u0438\u0442\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a\u043e\u0432\u044b \u0431\u044b\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0432\u0430 \u0431\u0438\u0442\u0430. \u041d\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u0447\u0430\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0430\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0433\u0435\u0439\u0442 CNOT <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3a4\/969\/443\/3a496944398c7ef8316b585f5fb31795.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3a4\/969\/443\/3a496944398c7ef8316b585f5fb31795.png\"\/><\/figure>\n<p> \u041c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u043c \u0432\u0445\u043e\u0434\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"x\" alt=\"x\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/9d\/9dd\/9dd4e461268c8034f5c8564e155c67a6.svg\" width=\"auto\" height=\"auto\"\/> \u0433\u0435\u0439\u0442\u0430 CNOT \u0431\u0443\u0434\u0435\u0442 <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/>, \u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"y\" alt=\"y\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/41\/415\/415290769594460e2e485922904f345d.svg\" width=\"auto\" height=\"auto\"\/> \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0443\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u044d\u0442\u043e\u0442 \u0433\u0435\u0439\u0442 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e xor. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0445\u043e\u0434\u0435 \u0433\u0435\u0439\u0442\u0430 \u0443 \u043d\u0430\u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0438\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 XOR, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u044d\u0442\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c. <\/p>\n<p>\u0412\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0442\u0440\u0435\u0445\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u0433\u0435\u0439\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>CSWAP<\/strong> \u0433\u0435\u0439\u0442, \u0438\u043d\u043e\u0433\u0434\u0430 \u0435\u0433\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 <strong>\u0432\u0435\u043d\u0442\u0438\u043b\u0435\u043c \u0424\u0440\u0435\u0434\u043a\u0438\u043d\u0430<\/strong>. \u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u043d \u0432 \u0441\u0445\u0435\u043c\u0430\u0445 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d4f\/83d\/9ad\/d4f83d9ad339c13b7539924c0efcd4d4.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d4f\/83d\/9ad\/d4f83d9ad339c13b7539924c0efcd4d4.png\"\/><\/figure>\n<p> \u0418\u043d\u043e\u0433\u0434\u0430 \u0435\u0433\u043e \u0440\u0438\u0441\u0443\u044e\u0442 \u0432\u0432\u0435\u0440\u0445-\u043d\u043e\u0433\u0430\u043c\u0438, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0441 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0435\u0433\u043e \u043d\u0430\u0434\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0445\u0435\u043c\u0443. \u0412\u0445\u043e\u0434 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u043c\u044b\u0439 \u0447\u0435\u0440\u043d\u043e\u0439 \u0436\u0438\u0440\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 &#8212; \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439. \u041d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u0432\u044b\u0448\u0435 \u044d\u0442\u043e \u0432\u0445\u043e\u0434 C. <\/p>\n<p>\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0435\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<p>\u041a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043f\u043e\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0435 \u043d\u0430 \u0432\u0445\u043e\u0434 C \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0433\u0435\u0439\u0442 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041d\u0430 \u0442\u043e \u043e\u043d\u043e \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u041a\u0430\u043a \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0443 CNOT \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0432\u0445\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0433\u0435\u0439\u0442 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u0415\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 C \u043f\u043e\u0434\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>, \u0442\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043f\u043e\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0445\u043e\u0434\u044b A \u0438 B, \u043f\u0440\u043e\u0439\u0434\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u0433\u0435\u0439\u0442.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 C \u043f\u043e\u0434\u0430\u0442\u044c <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/>, \u0442\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 A \u0438 B \u043f\u043e\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u0430\u043c\u0438. \u0422\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 A, \u0432\u044b\u0439\u0434\u0435\u0442 \u0438\u0437 \u0433\u0435\u0439\u0442\u0430 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 B. \u0418 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u0432\u0445\u043e\u0434 B, \u0432\u044b\u0439\u0434\u0435\u0442 \u0438\u0437 \u0433\u0435\u0439\u0442\u0430 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A. \u041d\u0430 \u0434\u043e\u0441\u0443\u0433\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u0442\u0440\u0438\u0446\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"8\\times 8\" alt=\"8\\times 8\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/b\/b5\/b51\/b51b97215b11f16bf86bf6c9f72420db.svg\" width=\"auto\" height=\"auto\"\/>, \u043d\u043e \u043c\u044b \u0443\u0436\u0435 \u0441 \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u043e\u0439 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c. <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e68\/5c4\/d97\/e685c4d978c82b9f1dcb2cc3a34df7a8.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e68\/5c4\/d97\/e685c4d978c82b9f1dcb2cc3a34df7a8.png\"\/><\/figure>\n<p> \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e, \u0438 \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c CSWAP \u0434\u0432\u0430 \u0440\u0430\u0437\u0430, \u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0442\u0440\u0435\u0445\u043a\u0443\u0431\u0438\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430. <\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u044d\u0442\u043e\u0442 \u0433\u0435\u0439\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c: \u043d\u0430 \u0432\u0445\u043e\u0434 A \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>. \u0418 \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A. \u041a\u0430\u043a \u0442\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0433\u0435\u0439\u0442? <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3e4\/552\/bd9\/3e4552bd9e357cdbad16dba8ec0f86b8.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3e4\/552\/bd9\/3e4552bd9e357cdbad16dba8ec0f86b8.png\"\/><\/figure>\n<p> 1-\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439. \u0415\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 C \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>, \u0442\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043f\u043e\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0441\u0435 \u0432\u0445\u043e\u0434\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u0438 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A \u0431\u0443\u0434\u0435\u0442 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>, \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0437\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u0445\u043e\u0434 B. <\/p>\n<p>2-\u043e\u0439 \u0441\u043b\u0443\u0447\u0430\u0439. \u0415\u0441\u043b\u0438 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u043c \u0432\u0445\u043e\u0434\u0435 C \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/>, \u0430 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 B \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0433\u0435\u0439\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0438 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A \u0432\u044b\u0439\u0434\u0435\u0442 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>, \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 B.<\/p>\n<p>3-\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439.\u0415\u0441\u043b\u0438 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u043c \u0432\u0445\u043e\u0434\u0435 C \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/>, \u0430 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 B \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/>. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0433\u0435\u0439\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0438 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A \u0432\u044b\u0439\u0434\u0435\u0442 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/>, \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 B.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u0434\u0432\u0435\u0434\u0435\u043c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u0442\u043e\u0433. \u041d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u044b\u0445\u043e\u0434\u0430 A \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435  <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/> \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 B \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/> \u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 C \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/>. \u0412\u043e \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>.<\/p>\n<p>\u0412\u043e\u0442 \u043c\u044b \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b\u0438 AND \u0432 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0433\u0435\u0439\u0442 CSWAP. \u041d\u043e, \u043a\u0440\u043e\u043c\u0435 \u0434\u0432\u0443\u0445 \u043a\u0443\u0431\u0438\u0442\u043e\u0432, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u0435\u0449\u0435 \u0442\u0440\u0435\u0442\u0438\u0439 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0443\u0431\u0438\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0437\u0430\u043a\u043e\u0440\u043e\u0442\u0438\u043b\u0438 \u043d\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>. \u0410 \u0432\u0442\u043e\u0440\u043e\u0439 \u043d\u044e\u0430\u043d\u0441, \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 AND \u0443 \u043d\u0430\u0441 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0435\u0449\u0435 2 \u043a\u0443\u0431\u0438\u0442\u0430 \u0441 &#171;\u043c\u0443\u0441\u043e\u0440\u043e\u043c&#187;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d. <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ca4\/f80\/7ac\/ca4f807acfbcb326862dd579f0474fcd.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ca4\/f80\/7ac\/ca4f807acfbcb326862dd579f0474fcd.png\"\/><\/figure>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u043e\u0431\u0449\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u0438 \u043e\u0442\u0432\u0435\u0442\u0438\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441, \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438. \u0414\u0430, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"F(x)\" alt=\"F(x)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/d7\/d76\/d76f2c4d6bdf142af5106c3f36e9e970.svg\" width=\"auto\" height=\"auto\"\/> \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u0433\u0435\u0439\u0442\u044b. \u041d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c:<\/p>\n<ol>\n<li>\n<p>\u043d\u0430\u043c, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0445\u043e\u0434\u043e\u0432 \u0432 \u0441\u0445\u0435\u043c\u0443. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438\u0435 \u0432\u0445\u043e\u0434\u044b \u043f\u043e\u0434\u0430\u044e\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435, \u043a\u0440\u043e\u043c\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0435\u0449\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435   \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f &#171;\u043c\u0443\u0441\u043e\u0440&#187;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u043d\u043e \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f. \u041f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0438\u043d\u0443\u0442\u044c \u0438 \u0437\u0430\u0431\u044b\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0443\u0441\u043e\u0440 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u0432\u0435\u0434\u044c \u043a\u0443\u0431\u0438\u0442\u044b \u043d\u0430 \u043c\u0443\u0441\u043e\u0440\u043d\u044b\u0445 \u0432\u044b\u0445\u043e\u0434\u0430\u0445 \u0441\u043f\u0443\u0442\u0430\u043d\u044b \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0438 \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c22\/7e9\/b9b\/c227e9b9b8fa50149533753af99b0ec5.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c22\/7e9\/b9b\/c227e9b9b8fa50149533753af99b0ec5.png\"\/><\/figure>\n<\/li>\n<\/ol>\n<p>\u0417\u0430\u0434\u0430\u0447\u0443 \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 &#171;\u043c\u0443\u0441\u043e\u0440\u0430&#187; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432 \u0440\u0435\u0448\u0438\u043b\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0438\u0437\u044f\u0449\u043d\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u043b\u044e\u0431\u043e\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0432\u043e\u0442 \u044d\u0442\u0443 \u0441\u0445\u0435\u043c\u0443: <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/591\/b66\/efc\/591b66efcf9fe897a69d602d8949cc4c.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/591\/b66\/efc\/591b66efcf9fe897a69d602d8949cc4c.png\"\/><\/figure>\n<p> \u041a\u0430\u043a\u0443\u044e \u0431\u044b \u043c\u044b \u043d\u0438 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e <img decoding=\"async\" class=\"formula inline\" source=\"U\" alt=\"U\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/4c\/4c6\/4c614360da93c0a041b22e537de151eb.svg\" width=\"auto\" height=\"auto\"\/> \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0431\u044b\u0442\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f <img decoding=\"async\" class=\"formula inline\" source=\"U^\\dagger\" alt=\"U^\\dagger\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/43\/431\/431b80ab5a7a5cb11191e4f71c5e74a7.svg\" width=\"auto\" height=\"auto\"\/>, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435. \u0410 \u0437\u043d\u0430\u0447\u0438\u0442 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u043d\u0430 \u0432\u0445\u043e\u0434\u0435. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"x\" alt=\"x\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/9d\/9dd\/9dd4e461268c8034f5c8564e155c67a6.svg\" width=\"auto\" height=\"auto\"\/> \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u0445\u043e\u0434\u044b. \u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u043c\u043e\u0436\u0435\u043c \u0443\u0442\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u043c), \u0432\u0441\u0435 \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b, \u044d\u0442\u0438 \u043a\u0443\u0431\u0438\u0442\u044b \u043d\u0438 \u0441 \u043a\u0435\u043c \u043d\u0435 \u0441\u043f\u0443\u0442\u0430\u043d\u044b. \u0415\u0441\u043b\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u044b \u043d\u0435 \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u044b \u0443\u0436\u0435 \u0440\u0430\u043d\u0435\u0435 \u0441\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0448 \u0441\u043b\u0443\u0447\u0430\u0439. <\/p>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u043d\u043e \u0432\u0435\u0434\u044c \u0438 \u043e\u0442\u0432\u0435\u0442, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"F(x)\" alt=\"F(x)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/d7\/d76\/d76f2c4d6bdf142af5106c3f36e9e970.svg\" width=\"auto\" height=\"auto\"\/> \u043c\u044b \u0442\u043e\u0436\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0410 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u043e\u0442\u0432\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448 \u0441\u0442\u0430\u0440\u044b\u0439 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 \u0433\u0435\u0439\u0442 C-NOT. <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c20\/87c\/eaf\/c2087ceaf604ebefec49e8e556e61b5f.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c20\/87c\/eaf\/c2087ceaf604ebefec49e8e556e61b5f.png\"\/><\/figure>\n<p> \u0418 \u0432\u043e\u0442, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0438\u0437\u044f\u0449\u043d\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044e, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0441\u044f, \u0438 \u043c\u0443\u0441\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u043c \u043b\u0435\u0433\u043a\u043e \u0443\u0442\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u043d\u0435 \u0441\u043f\u0443\u0442\u0430\u043d \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c\u0438. <\/p>\n<p>\u0415\u0449\u0435 \u043f\u0430\u0440\u0430 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0439.<\/p>\n<p>\u0422\u0435 \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b, \u0447\u0442\u043e \u0432\u0445\u043e\u0434\u044f\u0442 \u0432 <img decoding=\"async\" class=\"formula inline\" source=\"U_f\" alt=\"U_f\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/7\/71\/716\/716dc19dc5ba40eabd1dea0f3beef07a.svg\" width=\"auto\" height=\"auto\"\/> \u043e\u043d\u0438 \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0445 \u0432\u043e\u0448\u043b\u043e, \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0445 \u0438 \u0432\u044b\u0448\u043b\u043e, \u043e\u043d\u0438 \u043d\u0438 \u0441 \u043a\u0435\u043c \u043d\u0435 \u0441\u043f\u0443\u0442\u0430\u043b\u0438\u0441\u044c, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u043c \u0438\u0445 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u0445 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u043a\u0443\u0431\u0438\u0442\u043e\u0432, \u0447\u0442\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0447\u0435\u0440\u0435\u0437 CNOT: \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043d\u0430 \u044d\u0442\u0438 \u0432\u0445\u043e\u0434\u044b \u043f\u043e\u0434\u0430\u0442\u044c \u043a\u0443\u0431\u0438\u0442\u044b \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435? \u041d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e CNOT \u0441 \u044d\u0442\u0438\u043c \u043a\u0443\u0431\u0438\u0442\u0430\u043c\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445. \u0410 \u043c\u044b \u0432\u044b\u0448\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438 \u0447\u0442\u043e \u043f\u043e \u0441\u0443\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f CNOT \u044d\u0442\u043e \u0442\u043e\u0442 \u0436\u0435 xor. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u0430 \u043c\u0430\u0441\u043a\u0430 xor \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u043e\u0434\u0430\u0435\u043c \u043d\u0443\u043b\u0438, xor \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442, \u0438\u043c\u0435\u044f \u043d\u0443\u043b\u0435\u0432\u0443\u044e \u043c\u0430\u0441\u043a\u0443, \u0438 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0447\u0438\u0441\u0442\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u0427\u0430\u0441\u0442\u043e \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u0438 \u043d\u0430\u0434\u043e.<\/p>\n<p>\u041d\u043e \u0431\u044b\u0432\u0430\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0438 \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 xor \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u043a\u0430\u043a\u043e\u0439 \u0442\u043e \u043c\u0430\u0441\u043a\u043e\u0439. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u043c\u043e\u0436\u0435\u0442 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u043a\u0443\u0431\u0438\u0442 \u043d\u0443\u0436\u043d\u0443\u044e \u043c\u0430\u0441\u043a\u0443.<\/p>\n<p>\u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u044d\u0442\u0438\u0445 \u0434\u0432\u0443\u0445 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0439, \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u0443\u0435\u043c \u0441\u0445\u0435\u043c\u0443 \u0442\u0430\u043a: <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8ab\/887\/ca7\/8ab887ca71e789128b1e1d4a9ee6af38.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8ab\/887\/ca7\/8ab887ca71e789128b1e1d4a9ee6af38.png\"\/><\/figure>\n<p> \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e\u0439, \u043d\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0441 \u043d\u0435\u0439 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0442\u043e \u043a\u0440\u0430\u0442\u043a\u043e \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0435\u0435 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0442\u0430\u043a: <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a68\/fa0\/a4d\/a68fa0a4da13cdb48dda32f0d73caee7.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a68\/fa0\/a4d\/a68fa0a4da13cdb48dda32f0d73caee7.png\"\/><\/figure>\n<p> \u0412\u044b\u0432\u043e\u0434\u044b: <\/p>\n<ol>\n<li>\n<p>\u041a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u043c\u0438 \u0433\u0435\u0439\u0442\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 \u0442\u0430\u043a\u0438\u0435 \u0441\u0445\u0435\u043c\u044b \u043f\u043e\u0434\u0430\u044e\u0442\u0441\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0431\u0438\u0442, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0432\u043d\u043e \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u043c\u0435\u0442\u044c \u043c\u0430\u0441\u043a\u0443 XOR([\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438], [\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b])  \u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b \u044d\u0442\u043e \u043d\u0443\u043b\u0438, \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0447\u0438\u0441\u0442\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0442\u0430\u043a\u0438\u0435 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b. \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0432\u0435\u0434\u044c \u043e\u043d\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b\u0445 \u0433\u0435\u0439\u0442\u043e\u0432 <img decoding=\"async\" class=\"formula inline\" source=\"U\" alt=\"U\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/4c\/4c6\/4c614360da93c0a041b22e537de151eb.svg\" width=\"auto\" height=\"auto\"\/> \u0438 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0443\u044e \u0446\u0435\u043f\u044c, \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u044d\u0442\u0438 \u0433\u0435\u0439\u0442\u044b \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0410 \u0432\u0435\u0440\u043d\u0435\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u0433\u0435\u0439\u0442\u044b <img decoding=\"async\" class=\"formula inline\" source=\"U^\\dagger\" alt=\"U^\\dagger\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/43\/431\/431b80ab5a7a5cb11191e4f71c5e74a7.svg\" width=\"auto\" height=\"auto\"\/>.<\/p>\n<\/li>\n<\/ol>\n<h2>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0434\u043b\u044f n-\u043a\u0443\u0431\u0438\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430<\/h2>\n<p>\u041a\u0430\u043a \u0432\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0432 <a href=\"https:\/\/habr.com\/ru\/articles\/748688\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0434\u0432\u0443\u0445\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0438 \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435, \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0433\u0435\u0439\u0442 \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f, n-\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"H^{(n)}\" alt=\"H^{(n)}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/8\/8e\/8e8\/8e81fa839f0cc133f5ea98f2c82564ac.svg\" width=\"auto\" height=\"auto\"\/> \u0423\u0432\u0435\u0440\u0435\u043d, \u0432\u044b \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u043f\u043e\u0440\u0430 \u043d\u0430\u043c \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443.<\/p>\n<p>\u041a\u0430\u043a \u043c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u043f\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443, \u0442\u0430\u043a\u043e\u0439 n-\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e n \u043e\u0434\u043d\u043e\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0445 \u0433\u0435\u0439\u0442\u043e\u0432 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0432 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u0440\u043e\u0431\u043a\u0435: <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bf1\/984\/051\/bf1984051bbb9f0e0c700693c0bb964b.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bf1\/984\/051\/bf1984051bbb9f0e0c700693c0bb964b.png\"\/><\/figure>\n<p> \u0410 \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0434\u043d\u043e\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c: \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/> \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0433\u0435\u0439\u0442\u043e\u043c \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"\\frac{1}{\\sqrt 2}(|0\\rangle+|1\\rangle)\" alt=\"\\frac{1}{\\sqrt 2}(|0\\rangle+|1\\rangle)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/6\/6f\/6fa\/6fa83ad2ef6a1d7277c0714e4e40c926.svg\" width=\"auto\" height=\"auto\"\/> <\/p>\n<p>\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/> \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0433\u0435\u0439\u0442\u043e\u043c \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle)\" alt=\"\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/f\/fd\/fd3\/fd39d37c5d166e46ed988bb0c499f158.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043a\u0430\u043a\u043e\u0439 \u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0443 \u043d\u0430\u0441 \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0438 \u043c\u044b \u0435\u043c\u0443 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043f\u043e\u0434\u0430\u0434\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|0101\\rangle=|0\\rangle\\otimes |1\\rangle\\otimes |0\\rangle\\otimes |1\\rangle\" alt=\"|0101\\rangle=|0\\rangle\\otimes |1\\rangle\\otimes |0\\rangle\\otimes |1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/b\/bf\/bf6\/bf6ea64591a99ed5416d9e3ac61d7ce7.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435?<\/p>\n<p>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/> \u0438 <img decoding=\"async\" class=\"formula inline\" source=\"|1\\rangle\" alt=\"|1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/90\/909\/9092823ee991253a19b420e00411ca08.svg\" width=\"auto\" height=\"auto\"\/> \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u043a\u0443\u0431\u0438\u0442\u043d\u043e\u0433\u043e \u0433\u0435\u0439\u0442\u0430 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"H^{(4)}|0101\\rangle=\\frac{1}{\\sqrt{2}}(|0\\rangle+|1\\rangle)\\otimes\\frac{1}{\\sqrt{2}}(|0\\rangle-|1\\rangle)\\otimes\\frac{1}{\\sqrt{2}}(|0\\rangle+|1\\rangle)\\otimes\\frac{1}{\\sqrt{2}}(|0\\rangle-|1\\rangle) \" alt=\"H^{(4)}|0101\\rangle=\\frac{1}{\\sqrt{2}}(|0\\rangle+|1\\rangle)\\otimes\\frac{1}{\\sqrt{2}}(|0\\rangle-|1\\rangle)\\otimes\\frac{1}{\\sqrt{2}}(|0\\rangle+|1\\rangle)\\otimes\\frac{1}{\\sqrt{2}}(|0\\rangle-|1\\rangle) \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/6\/62\/621\/621e2773ac979666464981524020f698.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u041f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0438\u043c, \u0440\u0430\u0441\u043a\u0440\u043e\u0435\u043c \u0441\u043a\u043e\u0431\u043a\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"H^{(4)}|0101\\rangle=\\frac{1}{2^\\frac{4}{2}}(|0000\\rangle-|0001\\rangle+|0010\\rangle-|0011\\rangle-|0100\\rangle+|0101\\rangle-|0110\\rangle+|0111\\rangle+ \" alt=\"H^{(4)}|0101\\rangle=\\frac{1}{2^\\frac{4}{2}}(|0000\\rangle-|0001\\rangle+|0010\\rangle-|0011\\rangle-|0100\\rangle+|0101\\rangle-|0110\\rangle+|0111\\rangle+ \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/4c\/4c8\/4c8b5b158a4a4941713ac7cd171729d4.svg\" width=\"auto\" height=\"auto\"\/><img decoding=\"async\" class=\"formula\" source=\"+|1000\\rangle-|1001\\rangle+|1010\\rangle-|1011\\rangle-|1100\\rangle+|1101\\rangle-|1110\\rangle+|1111\\rangle) \" alt=\"+|1000\\rangle-|1001\\rangle+|1010\\rangle-|1011\\rangle-|1100\\rangle+|1101\\rangle-|1110\\rangle+|1111\\rangle) \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1e\/1e3\/1e3d849baf38fee634c6ea708ad70a1d.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0430 \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u043c\u044b \u043c\u0443\u0447\u0430\u0435\u043c\u0441\u044f \u0438 \u043f\u0438\u0448\u0435\u043c \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u044d\u0442\u0438 \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u0438\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0439 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0442\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438:<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"H^{(4)}|5\\rangle=\\frac{1}{2^\\frac{4}{2}}(|0\\rangle-|1\\rangle+|2\\rangle-|3\\rangle-|4\\rangle+|5\\rangle-|6\\rangle+|7\\rangle+ \" alt=\"H^{(4)}|5\\rangle=\\frac{1}{2^\\frac{4}{2}}(|0\\rangle-|1\\rangle+|2\\rangle-|3\\rangle-|4\\rangle+|5\\rangle-|6\\rangle+|7\\rangle+ \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/3\/3f\/3f0\/3f02e7c8729807290e0deb19c57d10fc.svg\" width=\"auto\" height=\"auto\"\/><img decoding=\"async\" class=\"formula\" source=\"+|8\\rangle-|9\\rangle+|10\\rangle-|11\\rangle-|12\\rangle+|13\\rangle-|14\\rangle+|15\\rangle) \" alt=\"+|8\\rangle-|9\\rangle+|10\\rangle-|11\\rangle-|12\\rangle+|13\\rangle-|14\\rangle+|15\\rangle) \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/f\/f7\/f7f\/f7f43ccd4dd4edc59e1223dadb5079ee.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u041f\u043e\u0441\u0447\u0438\u0442\u0430\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439. \u041a\u0430\u043a\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430 \u043e\u0431\u0449\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439? \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432\u043f\u0435\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u043e\u044f\u0442\u044c \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c <img decoding=\"async\" class=\"formula inline\" source=\"\\frac{1}{2^\\frac{n}{2}}\" alt=\"\\frac{1}{2^\\frac{n}{2}}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/2\/2b\/2bf\/2bf3d6a952748adc89b74083b6cbfcf1.svg\" width=\"auto\" height=\"auto\"\/>, \u0433\u0434\u0435 n &#8212; \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u044c \u0433\u0435\u0439\u0442\u0430 \u0410\u0434\u0430\u043c\u0430\u0440\u0430.<\/p>\n<p>\u0412\u043e \u0432\u0442\u043e\u0440\u044b\u0445, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u0441\u0443\u043c\u043c\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0434\u043b\u044f n \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432 \u043e\u0442 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/> \u0434\u043e <img decoding=\"async\" class=\"formula inline\" source=\"|2^n-1\\rangle\" alt=\"|2^n-1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/13\/135\/13567789c5ce67983c2b29ec9cd8ab42.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"H^{(n)}|y\\rangle=\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{\\pm |x\\rangle} \" alt=\"H^{(n)}|y\\rangle=\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{\\pm |x\\rangle} \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/92\/92a\/92a852786596afe2a37c739b5f37837e.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0418 \u0432\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e \u0437\u043d\u0430\u043a\u0430\u043c\u0438 \u0441\u0430\u043c\u0430\u044f \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u0437\u0430\u0433\u0432\u043e\u0437\u0434\u043a\u0430. \u041a\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u044c, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043b\u044e\u0441, \u0430 \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u043c\u0438\u043d\u0443\u0441. \u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u043c\u0443\u0447\u0438\u0442\u044c, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0430\u0436\u0443 \u043e\u0442\u0432\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043c\u0430\u0442\u0438\u043d\u0434\u0443\u043a\u0446\u0438\u0435\u0439: <img decoding=\"async\" class=\"formula inline\" source=\"(-1)^{p(x \\land y)}\" alt=\"(-1)^{p(x \\land y)}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/f\/fe\/fe8\/fe813ff50a0218aaf7c20e26b02ba01a.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0413\u0434\u0435 \u0437\u043d\u0430\u043a <img decoding=\"async\" class=\"formula inline\" source=\"(\\land)\" alt=\"(\\land)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1a\/1ae\/1ae317cd9d4a1b9448ecf8a4678f45a0.svg\" width=\"auto\" height=\"auto\"\/> \u044d\u0442\u043e \u043f\u043e\u0431\u0438\u0442\u043e\u0432\u043e\u0435 \u0418 &#8212;  \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 AND. \u0410 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <img decoding=\"async\" class=\"formula inline\" source=\"p\" alt=\"p\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/8\/83\/838\/83878c91171338902e0fe0fb97a8c47a.svg\" width=\"auto\" height=\"auto\"\/> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438, \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0435\u0434\u0438\u043d\u0438\u0446 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0448\u0435, \u0433\u0434\u0435 \u043c\u044b \u0441\u0447\u0438\u0442\u0430\u043b\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"H^{(4)}|5\\rangle\" alt=\"H^{(4)}|5\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/8\/89\/895\/895ce1b736f4a3385a0062e98eb886b5.svg\" width=\"auto\" height=\"auto\"\/> \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u043c, \u043a\u0430\u043a\u043e\u0439 \u0437\u043d\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432 \u0441\u0443\u043c\u043c\u0435 \u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f  <img decoding=\"async\" class=\"formula inline\" source=\"|12\\rangle\" alt=\"|12\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/5\/54\/544\/5447de9db4d99dec81df1e6b7b50aee1.svg\" width=\"auto\" height=\"auto\"\/> , \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u043c \u043f\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u0435:<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"5\\otimes 12=0101_b \\land 1100_b=0100_b\" alt=\"5\\otimes 12=0101_b \\land 1100_b=0100_b\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/8\/8e\/8ec\/8ec5b80ed36c6a6946ab4c99efeb12ce.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0412 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"p(0100_b)=1\" alt=\"p(0100_b)=1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/d2\/d2d\/d2d05d904ec823efe411f6566bbf8881.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e <img decoding=\"async\" class=\"formula inline\" source=\"(-1)^{p(5 \\land 12)}=-1\" alt=\"(-1)^{p(5 \\land 12)}=-1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/d0\/d0e\/d0e4397322c7b31d551a7ff7a1c8a42a.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0418 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"|12\\rangle\" alt=\"|12\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/5\/54\/544\/5447de9db4d99dec81df1e6b7b50aee1.svg\" width=\"auto\" height=\"auto\"\/> \u0432\u043e\u0439\u0434\u0435\u0442 \u0432 \u0441\u0443\u043c\u043c\u0443 \u0432\u0441\u0435\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u0441 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u043a\u043e\u043c, \u0438 \u044d\u0442\u043e \u0441\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043e\u0442\u0432\u0435\u0442\u043e\u043c \u0432\u044b\u0448\u0435. \u0418\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u043d\u0430\u0447\u0438\u0441\u0442\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0443 \u0434\u043b\u044f \u0433\u0435\u0439\u0442\u0430 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u0438 n<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"H^{(n)}|y\\rangle=\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{(-1)^{p(x \\land y)} |x\\rangle} \" alt=\"H^{(n)}|y\\rangle=\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{(-1)^{p(x \\land y)} |x\\rangle} \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/c\/c2\/c25\/c2501535979cc5e7df58a6fd8c019dea.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<h2>\u041a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c. \u0417\u0430\u0434\u0430\u0447\u0438 \u0441 \u0447\u0435\u0440\u043d\u044b\u043c\u0438 \u044f\u0449\u0438\u043a\u0430\u043c\u0438<\/h2>\n<p>\u0413\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u0435\u043d \u0432 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u0440\u0435\u0448\u0430\u0435\u043c\u044b\u0445 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u043c\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c\u0438 \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430, \u0433\u0434\u0435 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0440\u0430\u0432\u043d\u043e\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b. \u041a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0435\u043b\u0438 \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0432\u044b\u0448\u0435, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u043e\u0442 <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/> \u0434\u043e <img decoding=\"async\" class=\"formula inline\" source=\"|2^n-1\\rangle\" alt=\"|2^n-1\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/13\/135\/13567789c5ce67983c2b29ec9cd8ab42.svg\" width=\"auto\" height=\"auto\"\/> \u0438 \u0432\u0441\u0435 \u044d\u0442\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0441 \u0440\u0430\u0432\u043d\u044b\u043c\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044f\u043c\u0438.<\/p>\n<p>\u0412\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430: \u0437\u0430\u0434\u0430\u0447\u0430 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0434\u0440, \u043d\u0430\u0438\u0432\u043d\u043e\u043c\u0443 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443, \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u0432 \u0446\u0438\u043a\u043b\u0435 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442 \u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0437\u0430\u0434\u0430\u0447\u0438. \u041a\u0430\u043a\u0438\u043c \u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u044d\u0442\u043e \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043a\u0430\u043a\u0438\u043c \u0442\u043e \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435, \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0435\u0435 \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0446\u0438\u043a\u043b\u0435.<\/p>\n<p>\u0421\u0438\u043b\u0430 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0433\u0435\u0439\u0442\u043e\u043c \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0433\u0434\u0435 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0432\u043d\u043e\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b. \u0414\u0430\u043b\u0435\u0435 \u0432 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u0446\u0435\u043f\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0433\u0435\u0439\u0442\u043e\u0432, \u0447\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044e \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u0443\u044e\u0442\u0441\u044f, \u0430 \u0430\u043c\u043f\u043b\u0438\u0442\u0443\u0434\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u043d\u0435 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044e \u0437\u0430\u0434\u0430\u0447\u0438  \u0437\u0430\u043d\u0443\u043b\u044f\u0442\u0441\u044f. \u0418 \u0432\u0441\u0435, \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u043e\u043c \u043d\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443. \u0418 \u0432\u0441\u0435 \u044d\u0442\u043e \u0437\u0430 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0445\u043e\u0434 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430, \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u0446\u0438\u043a\u043b\u043e\u0432. \u0422\u0430\u043a\u043e\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>\u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u043c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c\u043e\u043c<\/strong>.<\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0446\u0435\u043b\u043e\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 &#171;\u0447\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a&#187;, \u043a\u0430\u043a \u0434\u043b\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432. \u041e\u0431\u0449\u0430\u044f \u043f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u044d\u0442\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0447\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435. \u041c\u044b \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0435\u043c \u0447\u0435\u0440\u043d\u043e\u043c\u0443 \u044f\u0449\u0438\u043a\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b, \u0438 \u043f\u043e \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0446\u0438\u043a\u043b\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u044d\u0442\u0438\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u0410 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u044e\u0442 \u0432 \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u0441\u0432\u043e\u044e \u0441\u0438\u043b\u0443, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u043c\u0443 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c\u0443.<\/p>\n<p>\u0412\u043e\u0442 \u0438 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0443\u044e \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u043c\u0435\u0435\u0442 \u043c\u0430\u043b\u043e\u0435 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435, \u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u043b\u044b \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c\u0430.<\/p>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430. \u0427\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043b\u044e\u0431\u043e\u0435 n-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0435 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <img decoding=\"async\" class=\"formula inline\" source=\"x\" alt=\"x\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/9d\/9dd\/9dd4e461268c8034f5c8564e155c67a6.svg\" width=\"auto\" height=\"auto\"\/> \u043e\u0442 0 \u0434\u043e <img decoding=\"async\" class=\"formula inline\" source=\"2^{n-1}\" alt=\"2^{n-1}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/5\/5d\/5d9\/5d98a7cba77ef3c2574c966c70dbc672.svg\" width=\"auto\" height=\"auto\"\/>. \u0412\u043d\u0443\u0442\u0440\u0438 \u0447\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0434\u0438\u043d \u0431\u0438\u0442 <img decoding=\"async\" class=\"formula inline\" source=\"p(x \\land u)\\; mod\\; 2\" alt=\"p(x \\land u)\\; mod\\; 2\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/e\/ed\/ed3\/ed3f584967f2a6e5bc5a35206227908f.svg\" width=\"auto\" height=\"auto\"\/> \u0433\u0434\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"(\\land)\" alt=\"(\\land)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1a\/1ae\/1ae317cd9d4a1b9448ecf8a4678f45a0.svg\" width=\"auto\" height=\"auto\"\/> \u044d\u0442\u043e \u043f\u043e\u0431\u0438\u0442\u043e\u0432\u043e\u0435 \u0418 &#8212;  \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 AND. \u0424\u0443\u043d\u043a\u0446\u0438\u044f <img decoding=\"async\" class=\"formula inline\" source=\"p\" alt=\"p\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/8\/83\/838\/83878c91171338902e0fe0fb97a8c47a.svg\" width=\"auto\" height=\"auto\"\/> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438, \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0435\u0434\u0438\u043d\u0438\u0446 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430. <img decoding=\"async\" class=\"formula inline\" source=\"mod\\; 2\" alt=\"mod\\; 2\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/9e\/9e7\/9e7eaf32992f26022016d487a1ce9656.svg\" width=\"auto\" height=\"auto\"\/> &#8212; \u044d\u0442\u043e \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430 2, u &#8212; \u044d\u0442\u043e \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0435 n-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0435 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u043c \u0441\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0447\u0435\u0440\u043d\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430. \u0417\u0430\u0434\u0430\u0447\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u044d\u0442\u043e u.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u043c\u0435\u0435\u043c 4-\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u044f\u0449\u0438\u043a, \u0441 <img decoding=\"async\" class=\"formula inline\" source=\"u=0101_b\" alt=\"u=0101_b\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/e\/e7\/e74\/e743328b8a254615c38be5bc6040082c.svg\" width=\"auto\" height=\"auto\"\/> \u041d\u0430 \u0432\u0445\u043e\u0434 \u0447\u0435\u0440\u043d\u043e\u043c\u0443 \u044f\u0449\u0438\u043a\u0443 \u043f\u043e\u0434\u0430\u0435\u043c \u0447\u0438\u0441\u043b\u043e <img decoding=\"async\" class=\"formula inline\" source=\"x=1111_b\" alt=\"x=1111_b\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/3\/31\/312\/312c19feaab44fa3c85a635d0de88dd5.svg\" width=\"auto\" height=\"auto\"\/>. \u0427\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043e\u043d \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u0442<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"x \\land u=1111_b \\land 0101_b=0101_b\" alt=\"x \\land u=1111_b \\land 0101_b=0101_b\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/9\/94\/948\/948aa5672f417a5d5a0e0a1ac225d5a8.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 <em>p<\/em> \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0435\u0434\u0438\u043d\u0438\u0446 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 2. \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430 2, <img decoding=\"async\" class=\"formula inline\" source=\"2\\; mod\\; 2=0\" alt=\"2\\; mod\\; 2=0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/18\/18b\/18b932f1d0605218d7002852157481cc.svg\" width=\"auto\" height=\"auto\"\/> \u0417\u043d\u0430\u0447\u0438\u0442 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0447\u0435\u0440\u043d\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 0.<\/p>\n<p>\u041a\u0430\u043a \u0431\u044b \u043c\u044b \u0440\u0435\u0448\u0430\u043b\u0438 \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435. \u041d\u0430\u043c \u043d\u0435\u0442 \u043d\u0443\u0436\u0434\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u0437\u044f\u0442\u044c \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <img decoding=\"async\" class=\"formula inline\" source=\"000...001_b\" alt=\"000...001_b\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/8\/86\/862\/86246c70e5b8f2a45b30e91281432239.svg\" width=\"auto\" height=\"auto\"\/>, \u0442\u043e\u0433\u0434\u0430<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"000...001_b \\land u=\\; \u043c\u043b\u0430\u0434\u0448\u0438\u0439(\u043d\u0443\u043b\u0435\u0432\u043e\u0439)\\; \u0431\u0438\u0442\\; u\" alt=\"000...001_b \\land u=\\; \u043c\u043b\u0430\u0434\u0448\u0438\u0439(\u043d\u0443\u043b\u0435\u0432\u043e\u0439)\\; \u0431\u0438\u0442\\; u\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/a\/a7\/a76\/a7685aa71a7b96ac0ebc9e92a7cfb32c.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u0435\u0440\u0435\u043c \u0447\u0438\u0441\u043b\u043e <img decoding=\"async\" class=\"formula inline\" source=\"000...010_b\" alt=\"000...010_b\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/e\/ec\/eca\/ecac464c713d5a33b50931b8bd3f66bd.svg\" width=\"auto\" height=\"auto\"\/>, \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"000...010_b \\land u=\\; \u043f\u0435\u0440\u0432\u044b\u0439\\; \u0431\u0438\u0442\\; u\" alt=\"000...010_b \\land u=\\; \u043f\u0435\u0440\u0432\u044b\u0439\\; \u0431\u0438\u0442\\; u\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/5\/53\/53d\/53d7fb74853047f8158f1f076f7e0d48.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0418 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435, \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u0432 \u0446\u0438\u043a\u043b\u0435 n \u0447\u0438\u0441\u0435\u043b \u0438 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u043c \u0432\u0441\u0435 \u0431\u0438\u0442\u044b \u0447\u0438\u0441\u043b\u0430 u. \u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0435\u0435, \u0441 \u043c\u0435\u043d\u044c\u0448\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u043e\u0432? \u041d\u0435\u0442, \u043a\u0430\u0436\u0434\u043e\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0447\u0435\u0440\u043d\u043e\u043c\u0443 \u044f\u0449\u0438\u043a\u0443 \u0434\u0430\u0435\u0442 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0431\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c n \u0431\u0438\u0442 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f.<\/p>\n<p>\u0412 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438, \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0433\u0435\u0439\u0442-\u0447\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u043d\u0430\u0448\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435: <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b33\/451\/4c0\/b334514c05286876137fa83c2fc9d2c6.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b33\/451\/4c0\/b334514c05286876137fa83c2fc9d2c6.png\"\/><\/figure>\n<p> \u041a\u0430\u043a \u043c\u044b \u0443\u0436\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043b\u0438 \u0432\u044b\u0448\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0430\u0442\u044c \u043d\u0430 \u0432\u0445\u043e\u0434 \u0447\u0435\u0440\u043d\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430 \u043a\u0440\u043e\u043c\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 x, \u0435\u0449\u0435 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0443\u0431\u0438\u0442 b. \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u043c\u0435\u0442\u044c \u0441\u043d\u043e\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 x \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"p(x \\land u)\\; mod\\; 2\" alt=\"p(x \\land u)\\; mod\\; 2\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/e\/ed\/ed3\/ed3f584967f2a6e5bc5a35206227908f.svg\" width=\"auto\" height=\"auto\"\/>, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 b \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0441\u044f <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>. \u0415\u0441\u043b\u0438 \u0436\u0435 \u043c\u044b \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438 \u043a\u0430\u043a\u043e\u0435 \u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u0432\u0445\u043e\u0434 b, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0430 \u043e\u0434\u043d\u043e\u0431\u0438\u0442\u043d\u0430\u044f \u043c\u0430\u0441\u043a\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"xor(p(x \\land u)\\; mod\\; 2,b)\" alt=\"xor(p(x \\land u)\\; mod\\; 2,b)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/d5\/d50\/d500e6666639c5efdb60b6cd3a9c309b.svg\" width=\"auto\" height=\"auto\"\/> \u041a\u0430\u043a \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0448\u0430\u0442\u044c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443? \u041f\u043b\u0430\u043d \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439: <\/p>\n<ol>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0447\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0433\u0435\u0439\u0442\u044b, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{(-1)^{p(x \\land u)} |x\\rangle}\" alt=\"\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{(-1)^{p(x \\land u)} |x\\rangle}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/3\/3c\/3c2\/3c28c4a5117eccc617734039ed4f20a6.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c u.<\/p>\n<\/li>\n<\/ol>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043a\u043e\u043d\u0446\u0430. \u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043f\u043e\u0434\u0430\u043d\u043d\u043e\u0435 \u0432 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0434\u0430\u0441\u0442 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 u?<br \/> \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043d\u0430\u043c \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e u \u0438 \u043c\u044b \u043f\u043e\u0434\u0430\u043b\u0438 \u0431\u044b \u0435\u0433\u043e \u043d\u0430 \u0432\u0445\u043e\u0434 \u0432 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430. \u041f\u043e \u043e\u0431\u0449\u0435\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0432\u044b\u0448\u0435 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0431\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435.<\/p>\n<p><img decoding=\"async\" class=\"formula inline\" source=\"\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{(-1)^{p(x \\land u)} |x\\rangle}\" alt=\"\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{(-1)^{p(x \\land u)} |x\\rangle}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/3\/3c\/3c2\/3c28c4a5117eccc617734039ed4f20a6.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0410 \u0434\u0430\u043b\u0435\u0435, \u043f\u043e\u043c\u043d\u044f, \u0447\u0442\u043e \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u043e\u0431\u0440\u0430\u0442\u0438\u043c, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0434\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u043d\u043e\u0432\u0430 \u0432 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f u. \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e u \u043d\u0430\u043c \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u0430\u043a\u0438\u043c \u0442\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0447\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a. \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 1.<br \/> \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c. \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a \u0438 \u043f\u043e\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u0432\u0445\u043e\u0434 x \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u043e\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0439 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u0437\u0438\u0446\u0438\u0435\u0439 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439.<\/p>\n<p><img decoding=\"async\" class=\"formula inline\" source=\"\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{|x\\rangle}\" alt=\"\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{|x\\rangle}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/b\/bb\/bb3\/bb3b6b4bd19985e7dd8e6aa09c75b41e.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0427\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442 \u0441\u0432\u043e\u0435 \u043e\u0434\u043d\u043e\u0431\u0438\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"F_u(x)\" alt=\"F_u(x)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/2\/23\/237\/23790a2b6fea39bead0cc4c9489afa59.svg\" width=\"auto\" height=\"auto\"\/> \u0438 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u043c\u0435\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{|x\\rangle}\\otimes F_u(x)= \" alt=\"\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{|x\\rangle}\\otimes F_u(x)= \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/18\/188\/1882dc4ee5fe8afa9b267dce7d95e293.svg\" width=\"auto\" height=\"auto\"\/><img decoding=\"async\" class=\"formula\" source=\"=\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{|x\\rangle}\\otimes |p(x \\land u)\\; mod\\; 2\\rangle \" alt=\"=\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{|x\\rangle}\\otimes |p(x \\land u)\\; mod\\; 2\\rangle \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/b\/b0\/b07\/b07b9b17044f6022457e6ab3da6ec9e3.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u041f\u043e\u0447\u0442\u0438 \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e, \u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u0442\u043e. \u0418 \u0442\u0443\u0442 \u043c\u044b \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430 \u0432\u0445\u043e\u0434 b \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e <img decoding=\"async\" class=\"formula inline\" source=\"|0\\rangle\" alt=\"|0\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1c\/1c9\/1c9ec4f302f14abdeab0f1fa59ff741b.svg\" width=\"auto\" height=\"auto\"\/>.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u044d\u0442\u043e\u0442 \u0432\u0445\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle)\" alt=\"\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/f\/fd\/fd3\/fd39d37c5d166e46ed988bb0c499f158.svg\" width=\"auto\" height=\"auto\"\/>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043b\u0435\u0433\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0434\u043d\u043e\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u043c \u0433\u0435\u0439\u0442\u043e\u043c \u0430\u0434\u0430\u043c\u0430\u0440\u0430. \u0422\u043e\u0433\u0434\u0430 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 b \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f <img decoding=\"async\" class=\"formula inline\" source=\"|F_u(x)\\rangle\" alt=\"|F_u(x)\\rangle\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/d7\/d70\/d7074654963eaf80fbf12e74a21ecce8.svg\" width=\"auto\" height=\"auto\"\/> \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"|xor(b,F_u(x))\\rangle=\\frac{1}{\\sqrt 2}(|xor(0,F_u(x))\\rangle-|xor(1,F_u(x))\\rangle)= \" alt=\"|xor(b,F_u(x))\\rangle=\\frac{1}{\\sqrt 2}(|xor(0,F_u(x))\\rangle-|xor(1,F_u(x))\\rangle)= \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/3\/3e\/3e2\/3e2325bba2ad6249467f50bc5e45b4b1.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0431\u0438\u0442\u043d\u043e\u0433\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u0438\u043b\u0438 xor(0,x)=x, xor(1,x)=not(x), \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"=\\frac{1}{\\sqrt 2}(|F_u(x)\\rangle-|not(F_u(x))\\rangle) \" alt=\"=\\frac{1}{\\sqrt 2}(|F_u(x)\\rangle-|not(F_u(x))\\rangle) \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/5\/5c\/5ce\/5ce304a55d970d8a8ffcc92f4457857d.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u043f\u0438\u0448\u0435\u043c \u0434\u0432\u0430 \u0441\u043b\u0443\u0447\u0430\u044f, \u043a\u043e\u0433\u0434\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"F_u(x)=0\\; \u0438 \\; F_u(x)=1\" alt=\"F_u(x)=0\\; \u0438 \\; F_u(x)=1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/3\/30\/30a\/30aa40081526f24f30cea4a2fd9d4051.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"=\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle) \" alt=\"=\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle) \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/0\/07\/07d\/07d09d9789a78a1be64d5709ed057ce5.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"=\\frac{1}{\\sqrt 2}(|1\\rangle-|0\\rangle)=-\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle) \" alt=\"=\\frac{1}{\\sqrt 2}(|1\\rangle-|0\\rangle)=-\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle) \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/8\/82\/827\/8272c24d81663b2bff53ff4da3bae58e.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e \u0441\u0443\u0442\u0438 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u043a. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"F_u(x)=0\" alt=\"F_u(x)=0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/e\/ec\/ecd\/ecd5fc644de1cee93bf6121490696390.svg\" width=\"auto\" height=\"auto\"\/> \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u043a +, \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 <img decoding=\"async\" class=\"formula inline\" source=\"F_u(x)=1\" alt=\"F_u(x)=1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/4\/41\/41b\/41bdfeff4d205fcf061145a3e3ed54b8.svg\" width=\"auto\" height=\"auto\"\/> \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u043a -.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u044d\u0442\u043e\u0442 \u0437\u043d\u0430\u043a \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u0432 \u0432\u0438\u0434\u0435 \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f <img decoding=\"async\" class=\"formula inline\" source=\"(-1)^{F_u(x)}\" alt=\"(-1)^{F_u(x)}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1\/1a\/1ab\/1ab1b7f1a27faa3653ffd3ad706375ee.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0422\u043e\u0433\u0434\u0430 \u0432 \u043e\u0431\u043e\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0442\u0432\u0435\u0442:<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"=(-1)^{F_u(x)}\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle) \" alt=\"=(-1)^{F_u(x)}\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle) \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d\/d3\/d38\/d38c5a99de9bf6468212f86b2f38cf2c.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0422\u043e\u0433\u0434\u0430 \u043e\u0431\u0449\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u0437 \u0447\u0435\u0440\u043d\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430, \u0441 \u0443\u0447\u0435\u0442\u043e\u043c x<\/p>\n<p><img decoding=\"async\" class=\"formula\" source=\"=\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{|x\\rangle\\otimes (-1)^{F_u(x)}\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle)}= \" alt=\"=\\frac{1}{2^\\frac{n}{2}}\\sum_{x=0}^{2^n-1}{|x\\rangle\\otimes (-1)^{F_u(x)}\\frac{1}{\\sqrt 2}(|0\\rangle-|1\\rangle)}= \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/6\/6e\/6e5\/6e5569b43d462b8ed02596181d77c735.svg\" width=\"auto\" height=\"auto\"\/><img decoding=\"async\" class=\"formula\" source=\"=\\frac{1}{2^\\frac{n+1}{2}}\\sum_{x=0}^{2^n-1}{(-1)^{p(x \\land u)}|x\\rangle\\otimes (|0\\rangle-|1\\rangle)} \" alt=\"=\\frac{1}{2^\\frac{n+1}{2}}\\sum_{x=0}^{2^n-1}{(-1)^{p(x \\land u)}|x\\rangle\\otimes (|0\\rangle-|1\\rangle)} \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/e\/e8\/e8d\/e8debe501b8a3bb68bde0a924d12172e.svg\" width=\"auto\" height=\"auto\"\/><\/p>\n<p>\u0412\u043e\u0442 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e. \u0417\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u0440\u0430\u0432\u0430 \u043a\u0443\u0431\u0438\u0442 \u0441 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c <img decoding=\"async\" class=\"formula inline\" source=\"(|0\\rangle-|1\\rangle)\" alt=\"(|0\\rangle-|1\\rangle)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/0\/02\/02c\/02c23f8c8552878aaa7f561228ec8ff4.svg\" width=\"auto\" height=\"auto\"\/> \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0438\u0442\u0441\u044f \u043d\u0435 \u043d\u0430\u0434\u043e, \u044d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0441\u043f\u0443\u0442\u0430\u043d\u043e \u0441 \u043d\u0430\u0448\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c, \u043c\u043e\u0436\u0435\u043c \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u0438\u043b\u0438 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u044f\u0434\u043e\u043c \u0432 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430, \u044d\u0442\u043e \u043d\u0435 \u0432\u0430\u0436\u043d\u043e, \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u0443\u0431\u0438\u0442 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c \u043e\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u0437\u0438\u0446\u0438\u0438.<\/p>\n<p>\u041d\u0443 \u0442\u0435\u043f\u0435\u0440\u044c, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u043e\u0442\u0432\u0435\u0442, \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u0446\u0435\u043f\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0448\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443, \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u0446\u0435\u043f\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u044d\u0442\u0438\u0445 \u044d\u0442\u0430\u043f\u0430\u0445: <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f0b\/482\/47d\/f0b48247db73ad4f7e9de14ae077b7cc.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f0b\/482\/47d\/f0b48247db73ad4f7e9de14ae077b7cc.png\"\/><\/figure>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/articles\/760962\/\" rel=\"noopener noreferrer nofollow\">\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u044e\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c\u0438, \u0440\u0435\u0448\u0430\u044e\u0449\u0438\u043c\u0438 \u0442\u0435 \u0436\u0435 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/758540\/\"> https:\/\/habr.com\/ru\/articles\/758540\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><\/figure>\n<h2>\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0433\u0435\u0439\u0442\u0430\u0445<\/h2>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/articles\/750978\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445<\/a> \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0433\u0435\u0439\u0442\u043e\u0432: \u0418\u043d\u0432\u0435\u0440\u0442\u043e\u0440, C-NOT, \u0410\u0434\u0430\u043c\u0430\u0440\u0430, \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u044f \u0444\u0430\u0437\u044b. \u041d\u043e, \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u0441\u044c, \u043a\u0430\u043a-\u0442\u043e \u043d\u0435 \u043f\u043e\u0445\u043e\u0436\u0438 \u043e\u043d\u0438 \u043d\u0430 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u043d\u0430\u043c \u0433\u0435\u0439\u0442\u044b \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432: AND, OR, XOR, NOT. \u041d\u0443, \u043b\u0430\u0434\u043d\u043e, \u0441 NOT \u044d\u0442\u043e \u044f \u0445\u0432\u0430\u0442\u0438\u043b \u043b\u0438\u0448\u043a\u0443, NOT \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u0438\u043d\u0432\u0435\u0440\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0441\u0430\u043c\u044b\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u0433\u0435\u0439\u0442\u043e\u043c \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445.<\/p>\n<p>\u0410 \u043a\u0430\u043a \u0431\u044b\u0442\u044c \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438? \u041c\u043e\u0436\u0435\u043c \u043b\u0438 \u043c\u044b \u043a\u0430\u043a-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 AND?<br \/> \u0418 \u0434\u0430, \u0438 \u043d\u0435\u0442. \u041a\u0430\u043a \u0432\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u044f\u0437\u0430\u043d\u0430 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u0434\u0432\u0443\u043c\u044f \u0432\u0430\u0436\u043d\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p>\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b\u0438, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u043a \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u043c\u0443 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e, \u0442\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u043e\u0440\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0443\u043c\u043c\u0430 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c 1. \u0410 \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u0443\u043c\u043c\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0432\u0441\u0435\u0445 \u0430\u043c\u043f\u043b\u0438\u0442\u0443\u0434 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u0430 1.<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u0432\u044b, \u043c\u043e\u0436\u0435\u0442, \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0441 \u043f\u0435\u0440\u0432\u044b\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u044f \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 \u043f\u0440\u0438\u0432\u0440\u0430\u043b. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438. \u041d\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0432\u0435\u0437\u043b\u043e, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0433\u0435\u0439\u0442\u043e\u0432 \u0410\u0434\u0430\u043c\u0430\u0440\u0430, \u0438\u043d\u0432\u0435\u0440\u0442\u043e\u0440\u0430, C-NOT \u0438 \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0430\u0437\u044b \u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0442\u0435\u043c\u0438 \u0436\u0435 \u0441\u0430\u043c\u044b\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438 \u043f\u0440\u0438\u0432\u0440\u0430\u043b \u0442\u043e\u0433\u0434\u0430, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u044d\u0442\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u0446\u0435\u043f\u044c, \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u043d\u0430\u044f \u0434\u0432\u0430\u0436\u0434\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041d\u0435\u0442, \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435, \u044d\u0442\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0434\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<p><strong>\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438  \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f , \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438.<\/strong><\/p>\n<p>\u041f\u043e\u043a\u0430 \u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0434\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c. \u0418\u043d\u043e\u0433\u0434\u0430 \u044d\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, , \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0431\u044b\u043b\u043e \u0441 \u0442\u0435\u043c\u0438 \u0433\u0435\u0439\u0442\u0430\u043c\u0438, \u0447\u0442\u043e \u043d\u0430\u043c \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438\u0441\u044c \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440. \u041d\u043e, \u043a\u0430\u043a \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0442\u0430\u043a\u043e\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430.<\/p>\n<p>\u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u0441\u0435\u0445 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440  \u0435\u043c\u043a\u043e\u0441\u0442\u044c\u044e \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0443\u0431\u0438\u0442, \u0438 \u043c\u044b \u043f\u043e\u0434\u0432\u0435\u0440\u0433\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u043c\u0443 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044e, \u043a\u0430\u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c <em>n<\/em>-\u043a\u0443\u0431\u0438\u0442\u043d\u043e\u043c\u0443 \u0433\u0435\u0439\u0442\u0443  <\/p>\n<figure class=\"\"><\/figure>\n<p> \u0422\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0431\u044b\u0442\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f , \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435. \u0418 \u0435\u0441\u043b\u0438 \u043c\u044b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438  \u043f\u043e\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u0432\u0445\u043e\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 , \u043c\u044b \u0441\u043d\u043e\u0432\u0430 \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e  <\/p>\n<figure class=\"\"><\/figure>\n<p> \u0418 \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442? \u0427\u0442\u043e \u043c\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u043c \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e AND, XOR, OR \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u043c\u0438 \u0433\u0435\u0439\u0442\u0430\u043c\u0438, \u0432\u0435\u0434\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 AND, XOR, OR \u043d\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b. \u0418\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u0438\u0442\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a\u043e\u0432\u044b \u0431\u044b\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0432\u0430 \u0431\u0438\u0442\u0430. \u041d\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u0447\u0430\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0430\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0433\u0435\u0439\u0442 CNOT <\/p>\n<figure class=\"\"><\/figure>\n<p> \u041c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u043c \u0432\u0445\u043e\u0434\u0435  \u0433\u0435\u0439\u0442\u0430 CNOT \u0431\u0443\u0434\u0435\u0442 , \u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430  \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0443\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u044d\u0442\u043e\u0442 \u0433\u0435\u0439\u0442 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e xor. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0445\u043e\u0434\u0435 \u0433\u0435\u0439\u0442\u0430 \u0443 \u043d\u0430\u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0438\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 XOR, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u044d\u0442\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c. <\/p>\n<p>\u0412\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0442\u0440\u0435\u0445\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u0433\u0435\u0439\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>CSWAP<\/strong> \u0433\u0435\u0439\u0442, \u0438\u043d\u043e\u0433\u0434\u0430 \u0435\u0433\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 <strong>\u0432\u0435\u043d\u0442\u0438\u043b\u0435\u043c \u0424\u0440\u0435\u0434\u043a\u0438\u043d\u0430<\/strong>. \u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u043d \u0432 \u0441\u0445\u0435\u043c\u0430\u0445 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <\/p>\n<figure class=\"\"><\/figure>\n<p> \u0418\u043d\u043e\u0433\u0434\u0430 \u0435\u0433\u043e \u0440\u0438\u0441\u0443\u044e\u0442 \u0432\u0432\u0435\u0440\u0445-\u043d\u043e\u0433\u0430\u043c\u0438, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0441 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0435\u0433\u043e \u043d\u0430\u0434\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0445\u0435\u043c\u0443. \u0412\u0445\u043e\u0434 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u043c\u044b\u0439 \u0447\u0435\u0440\u043d\u043e\u0439 \u0436\u0438\u0440\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 &#8212; \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439. \u041d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u0432\u044b\u0448\u0435 \u044d\u0442\u043e \u0432\u0445\u043e\u0434 C. <\/p>\n<p>\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0435\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<p>\u041a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043f\u043e\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0435 \u043d\u0430 \u0432\u0445\u043e\u0434 C \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0433\u0435\u0439\u0442 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041d\u0430 \u0442\u043e \u043e\u043d\u043e \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u041a\u0430\u043a \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0443 CNOT \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0432\u0445\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0433\u0435\u0439\u0442 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u0415\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 C \u043f\u043e\u0434\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 , \u0442\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043f\u043e\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0445\u043e\u0434\u044b A \u0438 B, \u043f\u0440\u043e\u0439\u0434\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u0433\u0435\u0439\u0442.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 C \u043f\u043e\u0434\u0430\u0442\u044c , \u0442\u043e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 A \u0438 B \u043f\u043e\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u0430\u043c\u0438. \u0422\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 A, \u0432\u044b\u0439\u0434\u0435\u0442 \u0438\u0437 \u0433\u0435\u0439\u0442\u0430 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 B. \u0418 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u0432\u0445\u043e\u0434 B, \u0432\u044b\u0439\u0434\u0435\u0442 \u0438\u0437 \u0433\u0435\u0439\u0442\u0430 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A. \u041d\u0430 \u0434\u043e\u0441\u0443\u0433\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u0442\u0440\u0438\u0446\u0430 , \u043d\u043e \u043c\u044b \u0443\u0436\u0435 \u0441 \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u043e\u0439 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c. <\/p>\n<figure class=\"\"><\/figure>\n<p> \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e, \u0438 \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c CSWAP \u0434\u0432\u0430 \u0440\u0430\u0437\u0430, \u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0442\u0440\u0435\u0445\u043a\u0443\u0431\u0438\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430. <\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u044d\u0442\u043e\u0442 \u0433\u0435\u0439\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c: \u043d\u0430 \u0432\u0445\u043e\u0434 A \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 . \u0418 \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A. \u041a\u0430\u043a \u0442\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0433\u0435\u0439\u0442? <\/p>\n<figure class=\"\"><\/figure>\n<p> 1-\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439. \u0415\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 C \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 , \u0442\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043f\u043e\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0441\u0435 \u0432\u0445\u043e\u0434\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u0438 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A \u0431\u0443\u0434\u0435\u0442 , \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0437\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u0445\u043e\u0434 B. <\/p>\n<p>2-\u043e\u0439 \u0441\u043b\u0443\u0447\u0430\u0439. \u0415\u0441\u043b\u0438 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u043c \u0432\u0445\u043e\u0434\u0435 C \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 , \u0430 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 B \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 . \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0433\u0435\u0439\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0438 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A \u0432\u044b\u0439\u0434\u0435\u0442 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 , \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 B.<\/p>\n<p>3-\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439.\u0415\u0441\u043b\u0438 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u043c \u0432\u0445\u043e\u0434\u0435 C \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 , \u0430 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 B \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 . \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0433\u0435\u0439\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0438 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A \u0432\u044b\u0439\u0434\u0435\u0442 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 , \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 B.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u0434\u0432\u0435\u0434\u0435\u043c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u0442\u043e\u0433. \u041d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u044b\u0445\u043e\u0434\u0430 A \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435   \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 B \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435  \u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 C \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 . \u0412\u043e \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0430 A \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 .<\/p>\n<p>\u0412\u043e\u0442 \u043c\u044b \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b\u0438 AND \u0432 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0433\u0435\u0439\u0442 CSWAP. \u041d\u043e, \u043a\u0440\u043e\u043c\u0435 \u0434\u0432\u0443\u0445 \u043a\u0443\u0431\u0438\u0442\u043e\u0432, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u0435\u0449\u0435 \u0442\u0440\u0435\u0442\u0438\u0439 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0443\u0431\u0438\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0437\u0430\u043a\u043e\u0440\u043e\u0442\u0438\u043b\u0438 \u043d\u0430 . \u0410 \u0432\u0442\u043e\u0440\u043e\u0439 \u043d\u044e\u0430\u043d\u0441, \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 AND \u0443 \u043d\u0430\u0441 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0435\u0449\u0435 2 \u043a\u0443\u0431\u0438\u0442\u0430 \u0441 &#171;\u043c\u0443\u0441\u043e\u0440\u043e\u043c&#187;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d. <\/p>\n<figure class=\"\"><\/figure>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u043e\u0431\u0449\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u0438 \u043e\u0442\u0432\u0435\u0442\u0438\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441, \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438. \u0414\u0430, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438  \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u0433\u0435\u0439\u0442\u044b. \u041d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c:<\/p>\n<ol>\n<li>\n<p>\u043d\u0430\u043c, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0445\u043e\u0434\u043e\u0432 \u0432 \u0441\u0445\u0435\u043c\u0443. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438\u0435 \u0432\u0445\u043e\u0434\u044b \u043f\u043e\u0434\u0430\u044e\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 .<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435, \u043a\u0440\u043e\u043c\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0435\u0449\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435   \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f &#171;\u043c\u0443\u0441\u043e\u0440&#187;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u043d\u043e \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f. \u041f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0438\u043d\u0443\u0442\u044c \u0438 \u0437\u0430\u0431\u044b\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0443\u0441\u043e\u0440 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u0432\u0435\u0434\u044c \u043a\u0443\u0431\u0438\u0442\u044b \u043d\u0430 \u043c\u0443\u0441\u043e\u0440\u043d\u044b\u0445 \u0432\u044b\u0445\u043e\u0434\u0430\u0445 \u0441\u043f\u0443\u0442\u0430\u043d\u044b \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0438 \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. <\/p>\n<figure class=\"\"><\/figure>\n<\/li>\n<\/ol>\n<p>\u0417\u0430\u0434\u0430\u0447\u0443 \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 &#171;\u043c\u0443\u0441\u043e\u0440\u0430&#187; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432 \u0440\u0435\u0448\u0438\u043b\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0438\u0437\u044f\u0449\u043d\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u043b\u044e\u0431\u043e\u0439 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0432\u043e\u0442 \u044d\u0442\u0443 \u0441\u0445\u0435\u043c\u0443: <\/p>\n<figure class=\"\"><\/figure>\n<p> \u041a\u0430\u043a\u0443\u044e \u0431\u044b \u043c\u044b \u043d\u0438 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e  \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0431\u044b\u0442\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f , \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435. \u0410 \u0437\u043d\u0430\u0447\u0438\u0442 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u043d\u0430 \u0432\u0445\u043e\u0434\u0435. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438  \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f , \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u0445\u043e\u0434\u044b. \u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u043c\u043e\u0436\u0435\u043c \u0443\u0442\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u043c), \u0432\u0441\u0435 \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b, \u044d\u0442\u0438 \u043a\u0443\u0431\u0438\u0442\u044b \u043d\u0438 \u0441 \u043a\u0435\u043c \u043d\u0435 \u0441\u043f\u0443\u0442\u0430\u043d\u044b. \u0415\u0441\u043b\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u044b \u043d\u0435 \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u044b \u0443\u0436\u0435 \u0440\u0430\u043d\u0435\u0435 \u0441\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0448 \u0441\u043b\u0443\u0447\u0430\u0439. <\/p>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u043d\u043e \u0432\u0435\u0434\u044c \u0438 \u043e\u0442\u0432\u0435\u0442, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438  \u043c\u044b \u0442\u043e\u0436\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0410 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u043e\u0442\u0432\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448 \u0441\u0442\u0430\u0440\u044b\u0439 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 \u0433\u0435\u0439\u0442 C-NOT. <\/p>\n<figure class=\"\"><\/figure>\n<p> \u0418 \u0432\u043e\u0442, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0438\u0437\u044f\u0449\u043d\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044e, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0441\u044f, \u0438 \u043c\u0443\u0441\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u043c \u043b\u0435\u0433\u043a\u043e \u0443\u0442\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u043d\u0435 \u0441\u043f\u0443\u0442\u0430\u043d \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c\u0438. <\/p>\n<p>\u0415\u0449\u0435 \u043f\u0430\u0440\u0430 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0439.<\/p>\n<p>\u0422\u0435 \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b, \u0447\u0442\u043e \u0432\u0445\u043e\u0434\u044f\u0442 \u0432  \u043e\u043d\u0438 \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0445 \u0432\u043e\u0448\u043b\u043e, \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0445 \u0438 \u0432\u044b\u0448\u043b\u043e, \u043e\u043d\u0438 \u043d\u0438 \u0441 \u043a\u0435\u043c \u043d\u0435 \u0441\u043f\u0443\u0442\u0430\u043b\u0438\u0441\u044c, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u043c \u0438\u0445 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u0445 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u043a\u0443\u0431\u0438\u0442\u043e\u0432, \u0447\u0442\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0447\u0435\u0440\u0435\u0437 CNOT: \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043d\u0430 \u044d\u0442\u0438 \u0432\u0445\u043e\u0434\u044b \u043f\u043e\u0434\u0430\u0442\u044c \u043a\u0443\u0431\u0438\u0442\u044b \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435? \u041d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e CNOT \u0441 \u044d\u0442\u0438\u043c \u043a\u0443\u0431\u0438\u0442\u0430\u043c\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445. \u0410 \u043c\u044b \u0432\u044b\u0448\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438 \u0447\u0442\u043e \u043f\u043e \u0441\u0443\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f CNOT \u044d\u0442\u043e \u0442\u043e\u0442 \u0436\u0435 xor. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u0430 \u043c\u0430\u0441\u043a\u0430 xor \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u043e\u0434\u0430\u0435\u043c \u043d\u0443\u043b\u0438, xor \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442, \u0438\u043c\u0435\u044f \u043d\u0443\u043b\u0435\u0432\u0443\u044e \u043c\u0430\u0441\u043a\u0443, \u0438 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0447\u0438\u0441\u0442\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u0427\u0430\u0441\u0442\u043e \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u0438 \u043d\u0430\u0434\u043e.<\/p>\n<p>\u041d\u043e \u0431\u044b\u0432\u0430\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0438 \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 xor \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u043a\u0430\u043a\u043e\u0439 \u0442\u043e \u043c\u0430\u0441\u043a\u043e\u0439. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u043c\u043e\u0436\u0435\u0442 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u043a\u0443\u0431\u0438\u0442 \u043d\u0443\u0436\u043d\u0443\u044e \u043c\u0430\u0441\u043a\u0443.<\/p>\n<p>\u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u044d\u0442\u0438\u0445 \u0434\u0432\u0443\u0445 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0439, \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u0443\u0435\u043c \u0441\u0445\u0435\u043c\u0443 \u0442\u0430\u043a: <\/p>\n<figure class=\"\"><\/figure>\n<p> \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e\u0439, \u043d\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0441 \u043d\u0435\u0439 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0442\u043e \u043a\u0440\u0430\u0442\u043a\u043e \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0435\u0435 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0442\u0430\u043a: <\/p>\n<figure class=\"\"><\/figure>\n<p> \u0412\u044b\u0432\u043e\u0434\u044b: <\/p>\n<ol>\n<li>\n<p>\u041a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u043c\u0438 \u0433\u0435\u0439\u0442\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 \u0442\u0430\u043a\u0438\u0435 \u0441\u0445\u0435\u043c\u044b \u043f\u043e\u0434\u0430\u044e\u0442\u0441\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0431\u0438\u0442, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0432\u043d\u043e \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u043c\u0435\u0442\u044c \u043c\u0430\u0441\u043a\u0443 XOR([\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438], [\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b])  \u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u0442\u044b \u044d\u0442\u043e \u043d\u0443\u043b\u0438, \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0447\u0438\u0441\u0442\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0442\u0430\u043a\u0438\u0435 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b. \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0432\u0435\u0434\u044c \u043e\u043d\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b\u0445 \u0433\u0435\u0439\u0442\u043e\u0432  \u0438 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0443\u044e \u0446\u0435\u043f\u044c, \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u044d\u0442\u0438 \u0433\u0435\u0439\u0442\u044b \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0410 \u0432\u0435\u0440\u043d\u0435\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u0433\u0435\u0439\u0442\u044b .<\/p>\n<\/li>\n<\/ol>\n<h2>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0434\u043b\u044f n-\u043a\u0443\u0431\u0438\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430<\/h2>\n<p>\u041a\u0430\u043a \u0432\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0432 <a href=\"https:\/\/habr.com\/ru\/articles\/748688\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0434\u0432\u0443\u0445\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0438 \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435, \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0433\u0435\u0439\u0442 \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f, n-\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430  \u0423\u0432\u0435\u0440\u0435\u043d, \u0432\u044b \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u043f\u043e\u0440\u0430 \u043d\u0430\u043c \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443.<\/p>\n<p>\u041a\u0430\u043a \u043c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u043f\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443, \u0442\u0430\u043a\u043e\u0439 n-\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e n \u043e\u0434\u043d\u043e\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0445 \u0433\u0435\u0439\u0442\u043e\u0432 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0432 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u0440\u043e\u0431\u043a\u0435: <\/p>\n<figure class=\"\"><\/figure>\n<p> \u0410 \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0434\u043d\u043e\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c: \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435  \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0433\u0435\u0439\u0442\u043e\u043c \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435  <\/p>\n<p>\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435  \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0433\u0435\u0439\u0442\u043e\u043c \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043a\u0430\u043a\u043e\u0439 \u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0443 \u043d\u0430\u0441 \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u043a\u0443\u0431\u0438\u0442\u043d\u044b\u0439 \u0433\u0435\u0439\u0442 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0438 \u043c\u044b \u0435\u043c\u0443 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043f\u043e\u0434\u0430\u0434\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <\/p>\n<p>\u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435?<\/p>\n<p>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439  \u0438  \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u043a\u0443\u0431\u0438\u0442\u043d\u043e\u0433\u043e \u0433\u0435\u0439\u0442\u0430 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<p>\u041f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0438\u043c, \u0440\u0430\u0441\u043a\u0440\u043e\u0435\u043c \u0441\u043a\u043e\u0431\u043a\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0430<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-353830","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/353830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=353830"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/353830\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=353830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=353830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=353830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}