{"id":505671,"date":"2026-12-02T06:33:29","date_gmt":"2026-12-02T03:33:29","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=505671"},"modified":"2026-12-02T06:33:29","modified_gmt":"2026-12-02T03:33:29","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=505671","title":{"rendered":"\u041a\u0430\u043a \u044f \u043f\u0438\u0441\u0430\u043b \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 BB84 \u043d\u0430 Qiskit: \u043e\u0442 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439 \u043d\u0430 SHA-256 \u0434\u043e \u0440\u0435\u0446\u0435\u043d\u0437\u0438\u0439 \u0438\u0437 \u041d\u0410\u041d \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438 \u0438 \u041c\u0424\u0422\u0418"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/47\/2f\/6c\/472f6c9372920c40f322776bcc5c92f4.png\" alt=\"\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\" title=\"\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\" width=\"1440\" height=\"865\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/47\/2f\/6c\/472f6c9372920c40f322776bcc5c92f4.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/47\/2f\/6c\/472f6c9372920c40f322776bcc5c92f4.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/figcaption><\/div>\n<\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0439 (QKD), \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b BB84 \u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0447\u043a\u043e\u0439 \u043d\u0430 \u043e\u0434\u0438\u043d \u0432\u0435\u0447\u0435\u0440. \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u0443\u043b\u0435\u0439 \u0438 \u0435\u0434\u0438\u043d\u0438\u0446, \u043d\u0430\u043a\u0438\u043d\u0443\u043b \u0432\u0435\u043d\u0442\u0438\u043b\u0438 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0432 IBM Qiskit, \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0447\u0438\u043a\u0430 \u0415\u0432\u0443 \u2014 \u0438 \u0433\u043e\u0442\u043e\u0432\u043e: \u043f\u0440\u0438 \u043f\u043e\u0434\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043e\u0448\u0438\u0431\u043e\u043a QBER \u043f\u043e\u0434\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u0435\u0442 \u0434\u043e 25%, \u043a\u043b\u044e\u0447 \u0431\u0440\u0430\u043a\u0443\u0435\u0442\u0441\u044f, \u043c\u0430\u0433\u0438\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>\u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u0434\u043e\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0440\u0438\u0441\u043a\u043d\u0443\u043b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0443\u044e \u043d\u0430\u0443\u0447\u043d\u0443\u044e \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0438\u0437\u0443 \u0444\u0438\u0437\u0438\u043a\u0430\u043c, \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043c\u043e\u0439 \u00ab\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u00bb \u043f\u043e\u043b\u043e\u043d \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043a\u0440\u0438\u0442\u0438\u043a\u0430 \u043e\u0442 \u0434\u043e\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430\u0443\u043a \u0438\u0437 \u0418\u043d\u0441\u0442\u0438\u0442\u0443\u0442\u0430 \u0444\u0438\u0437\u0438\u043a\u0438 \u041d\u0410\u041d \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438 \u0438 \u041c\u0424\u0422\u0418 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u043c\u0435\u043d\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u044e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043a\u0430\u043a\u0438\u0435 \u0431\u0430\u0433\u0438 \u044f \u043f\u043e\u0439\u043c\u0430\u043b \u0432 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u0445 \u0422\u0451\u043f\u043b\u0438\u0446\u0430 \u0438 \u043a\u0430\u043a \u0432 \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0431\u0440\u0430\u043b \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 <strong>QKD-BB84-Simulator-Qiskit<\/strong> (DOI: 10.5281\/zenodo.24649041).<\/p>\n<p><strong>\u0425\u043e\u043b\u043e\u0434\u043d\u044b\u0439 \u0434\u0443\u0448: \u0447\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0441 \u0443\u0447\u0435\u0431\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438 BB84<\/strong><\/p>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u043e\u0435\u0433\u043e \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0430 \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u0441\u043d\u0430\u0440\u0443\u0436\u0438 (\u0442\u0451\u043c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 <code>CustomTkinter<\/code>, \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043d\u0430 <code>Matplotlib<\/code>), \u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u043f\u0438\u0440\u0430\u043b\u0430\u0441\u044c \u043d\u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442. \u042d\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0435 \u0440\u0435\u0446\u0435\u043d\u0437\u0438\u0438 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0442 \u0432\u0435\u0434\u0443\u0449\u0435\u0433\u043e \u043d\u0430\u0443\u0447\u043d\u043e\u0433\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u0426\u0435\u043d\u0442\u0440\u0430 \u00ab\u041a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u043e\u043f\u0442\u0438\u043a\u0430 \u0438 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0430\u00bb \u0418\u043d\u0441\u0442\u0438\u0442\u0443\u0442\u0430 \u0444\u0438\u0437\u0438\u043a\u0438 \u0438\u043c. \u0411. \u0418. \u0421\u0442\u0435\u043f\u0430\u043d\u043e\u0432\u0430 \u041d\u0410\u041d \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438 \u0434.\u0444.-\u043c.\u043d. <strong>\u0410. \u0411. \u041c\u0438\u0445\u0430\u043b\u044b\u0447\u0435\u0432\u0430<\/strong> \u0438 \u0437\u0430\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0430 \u043f\u043e \u043d\u0430\u0443\u0447\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u041d\u0422\u0426 \u0422\u0435\u043b\u0435\u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0439 \u0418\u043d\u0441\u0442\u0438\u0442\u0443\u0442\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0433\u043e \u043d\u0435\u0431\u0430 \u041c\u0424\u0422\u0418 \u0434.\u0444.-\u043c.\u043d. <strong>\u0421. \u041d. \u0410\u043d\u0434\u0440\u0435\u0435\u0432\u0430<\/strong>.<\/p>\n<p>\u0412\u043e\u0442 \u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u043a\u043e\u0441\u0442\u044b\u043b\u044f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u0443\u043a\u0430\u0437\u0430\u043b\u0438:<\/p>\n<ol>\n<li>\n<p><strong>\u041f\u0443\u0442\u0430\u043d\u0438\u0446\u0430 \u0432 \u0443\u0433\u0440\u043e\u0437\u0430\u0445 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430.<\/strong> \u0412 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u044f \u043f\u043e \u0438\u043d\u0435\u0440\u0446\u0438\u0438 \u0441\u0432\u0430\u043b\u0438\u043b \u0432 \u043e\u0434\u043d\u0443 \u043a\u0443\u0447\u0443 RSA, ECC \u0438 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0439 AES. \u0420\u0435\u0446\u0435\u043d\u0437\u0435\u043d\u0442\u044b \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438 \u0431\u0430\u0437\u0443: \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0428\u043e\u0440\u0430 \u043b\u043e\u043c\u0430\u0435\u0442 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u0443\u044e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0438 \u043e\u0431\u043c\u0435\u043d \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0414\u0438\u0444\u0444\u0438 \u2014 \u0425\u0435\u043b\u043b\u043c\u0430\u043d\u0430, \u0430 \u0432\u043e\u0442 AES-256 \u043e\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0413\u0440\u043e\u0432\u0435\u0440\u0430 \u0442\u0435\u0440\u044f\u0435\u0442 \u043b\u0438\u0448\u044c \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0431\u0438\u0442\u043e\u0432\u043e\u0439 \u0441\u0442\u043e\u0439\u043a\u043e\u0441\u0442\u0438 (\u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f 128 \u0431\u0438\u0442) \u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u043c. BB84 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0439 \u043e\u0431\u043c\u0435\u043d \u043a\u043b\u044e\u0447\u0430\u043c\u0438, \u0430 \u043d\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0435\u0440\u0438\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u043a\u0443\u0443\u043c \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430.<\/strong> \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0448\u0443\u043c\u0430. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0444\u043e\u0442\u043e\u043d\u044b \u0437\u0430\u0442\u0443\u0445\u0430\u044e\u0442 \u0432 \u0432\u043e\u043b\u043e\u043a\u043d\u0435, \u0430 \u043e\u0434\u043d\u043e\u0444\u043e\u0442\u043e\u043d\u043d\u044b\u0435 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u044b \u0434\u0430\u044e\u0442 \u0442\u0435\u043c\u043d\u043e\u0432\u044b\u0435 \u043e\u0442\u0441\u0447\u0451\u0442\u044b. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 <em>\u00ab\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u0415\u0432\u0430!\u00bb<\/em> \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u043c \u0441\u043a\u0430\u0447\u043a\u0435 \u043e\u0448\u0438\u0431\u043e\u043a, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u0448\u0443\u043c\u0435 \u0442\u0440\u0430\u0441\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>\u042d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 Cascade.<\/strong> \u0414\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0438\u043b \u043a\u043b\u044e\u0447 \u043d\u0430 \u0431\u043b\u043e\u043a\u0438 \u043f\u043e 4 \u0431\u0438\u0442\u0430, \u0441\u0432\u0435\u0440\u044f\u043b \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u0438 \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438 \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b <em>\u043f\u0435\u0440\u0432\u044b\u0439<\/em> \u0431\u0438\u0442 \u0431\u043b\u043e\u043a\u0430. \u0415\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0442\u043e\u044f\u043b\u0430 \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0442\u0430\u043a\u043e\u0439 \u00ab\u0440\u0435\u043c\u043e\u043d\u0442\u00bb \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u043e\u0434\u0438\u043b \u043d\u043e\u0432\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>SHA-256 \u0432\u043c\u0435\u0441\u0442\u043e 2-\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/strong> \u041d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0441\u0442\u0438 (<em>Privacy Amplification<\/em>) \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u043b \u043a\u043b\u044e\u0447 \u0447\u0435\u0440\u0435\u0437 <code>hashlib.sha256<\/code>. \u0414\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u044d\u0442\u043e \u0441\u043e\u0439\u0434\u0451\u0442, \u043d\u043e \u0441\u0442\u0440\u043e\u0433\u043e\u0435 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e-\u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0442\u043e\u0439\u043a\u043e\u0441\u0442\u0438 \u043f\u043e \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u0428\u043e\u0440\u0430 \u2014 \u041f\u0440\u0435\u0441\u043a\u0438\u043b\u043b\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 2-\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u044d\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <strong>\u043c\u0430\u0442\u0440\u0438\u0446 \u0422\u0451\u043f\u043b\u0438\u0446\u0430<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e: \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u0440\u0430\u0437\u0440\u044f\u0434\u0430 \u00ab\u0438\u0433\u0440\u0443\u0448\u043a\u0430 \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438\u00bb \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0438\u0437\u0438\u043a\u043e-\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<p><strong>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u0442\u0440\u0430\u043a\u0442: \u0448\u0443\u043c \u043a\u0430\u043d\u0430\u043b\u0430 \u0438 \u0430\u0442\u0430\u043a\u0430 \u043f\u043e\u0434 \u0443\u0433\u043b\u043e\u043c 22.5\u00b0<\/strong><\/p>\n<p>\u0414\u043b\u044f \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0441\u0445\u0435\u043c \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <code>AerSimulator<\/code> \u0438\u0437 <code>qiskit-aer<\/code> \u0441 \u043c\u0435\u0442\u043e\u0434\u043e\u043c <code>stabilizer<\/code> \u2014 \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u0441\u0445\u0435\u043c\u044b \u043d\u0430 \u0441\u043e\u0442\u043d\u0438 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 \u0431\u0435\u0437 \u043f\u0440\u043e\u0441\u0430\u0434\u043e\u043a \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0439 \u0434\u0435\u043f\u043e\u043b\u044f\u0440\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u043a\u0430\u043d\u0430\u043b. \u0412 \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u0443\u0431\u0438\u0442\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"\\rho \" alt=\"\\rho \" src=\"https:\/\/habrastorage.org\/extt\/fa\/38\/08\/fa380873ac14e1d5e362ef71397c9abc.svg\" width=\"11\" height=\"13\" data-width=\"1.17\" data-height=\"1.489\" data-vertical-align=\"-0.489\" style=\"width: 1.17ex; height: 1.489ex; vertical-align: -0.489ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/fa\/38\/08\/fa380873ac14e1d5e362ef71397c9abc.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/fa\/38\/08\/fa380873ac14e1d5e362ef71397c9abc.svg 781w\" loading=\"lazy\" decode=\"async\"\/> \u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0448\u0438\u0431\u043a\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"p\" alt=\"p\" src=\"https:\/\/habrastorage.org\/extt\/68\/94\/a8\/6894a8b401de77b0e0460786e1018fb9.svg\" width=\"10\" height=\"13\" data-width=\"1.138\" data-height=\"1.439\" data-vertical-align=\"-0.439\" style=\"width: 1.138ex; height: 1.439ex; vertical-align: -0.439ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/68\/94\/a8\/6894a8b401de77b0e0460786e1018fb9.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/68\/94\/a8\/6894a8b401de77b0e0460786e1018fb9.svg 781w\" loading=\"lazy\" decode=\"async\"\/> \u043f\u043e\u0434\u0432\u0435\u0440\u0433\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u043e\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u043c\u0443 \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044e \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u041f\u0430\u0443\u043b\u0438 \u2014 \u0431\u0438\u0442\u043e\u0432\u043e\u0439 \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"X\" alt=\"X\" src=\"https:\/\/habrastorage.org\/extt\/f4\/10\/b0\/f410b0f31e7ecf4546c9cabe97d513e8.svg\" width=\"17\" height=\"14\" data-width=\"1.928\" data-height=\"1.545\" style=\"width: 1.928ex; height: 1.545ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/f4\/10\/b0\/f410b0f31e7ecf4546c9cabe97d513e8.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/f4\/10\/b0\/f410b0f31e7ecf4546c9cabe97d513e8.svg 781w\" loading=\"lazy\" decode=\"async\"\/>, \u0444\u0430\u0437\u043e\u0432\u043e\u043c\u0443 \u0441\u0434\u0432\u0438\u0433\u0443 <img decoding=\"async\" class=\"formula inline\" source=\"Z\" alt=\"Z\" src=\"https:\/\/habrastorage.org\/extt\/8e\/37\/e9\/8e37e997c13f4e143929e4a54900915f.svg\" width=\"15\" height=\"14\" data-width=\"1.636\" data-height=\"1.545\" style=\"width: 1.636ex; height: 1.545ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/8e\/37\/e9\/8e37e997c13f4e143929e4a54900915f.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/8e\/37\/e9\/8e37e997c13f4e143929e4a54900915f.svg 781w\" loading=\"lazy\" decode=\"async\"\/> \u0438\u043b\u0438 \u0438\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"Y\" alt=\"Y\" src=\"https:\/\/habrastorage.org\/extt\/52\/03\/54\/5203547c817f2094db5826ab6012be14.svg\" width=\"16\" height=\"14\" data-width=\"1.726\" data-height=\"1.545\" style=\"width: 1.726ex; height: 1.545ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/52\/03\/54\/5203547c817f2094db5826ab6012be14.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/52\/03\/54\/5203547c817f2094db5826ab6012be14.svg 781w\" loading=\"lazy\" decode=\"async\"\/>:<\/p>\n<p><img decoding=\"async\" class=\"formula inline\" source=\"\\rho \\rightarrow (1-p)\\rho +\\frac{p}{3}(X\\rho X+Y\\rho Y+Z\\rho Z)\" alt=\"\\rho \\rightarrow (1-p)\\rho +\\frac{p}{3}(X\\rho X+Y\\rho Y+Z\\rho Z)\" src=\"https:\/\/habrastorage.org\/extt\/1e\/f5\/52\/1ef5522f98f06590402d295c76ee5355.svg\" width=\"350\" height=\"37\" data-width=\"38.933\" data-height=\"4.131\" data-vertical-align=\"-1.602\" style=\"width: 38.933ex; height: 4.131ex; vertical-align: -1.602ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/1e\/f5\/52\/1ef5522f98f06590402d295c76ee5355.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/1e\/f5\/52\/1ef5522f98f06590402d295c76ee5355.svg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<p>\u0412 \u043a\u043e\u0434\u0435 Qiskit \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e\u043b\u0438\u043d\u0435\u0439\u043d\u043e, \u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u0443 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430: \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0436\u0435 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0447\u0438\u043a\u0430 \u0443 \u0410\u043b\u0438\u0441\u044b \u0438 \u0411\u043e\u0431\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043c\u0435\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u0442\u0430\u043a\u0438.<\/p>\n<pre><code class=\"python\">def apply_channel_noise(qc, noise_probability):    \"\"\"\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u0434\u0435\u043f\u043e\u043b\u044f\u0440\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0448\u0443\u043c\u0430 \u0412\u041e\u041b\u0421.\"\"\"    if noise_probability &lt;= 0:        return qc    for i in range(qc.num_qubits):        if np.random.rand() &lt; noise_probability:            error_type = np.random.randint(0, 3)            if error_type == 0:                qc.x(i)  # Bit-flip (\u041f\u0430\u0443\u043b\u0438-X)            elif error_type == 1:                qc.y(i)  # Bit-Phase-flip (\u041f\u0430\u0443\u043b\u0438-Y)            else:                qc.z(i)  # Phase-flip (\u041f\u0430\u0443\u043b\u0438-Z)    return qc<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u044c \u0436\u0438\u0437\u043d\u044c \u0410\u043b\u0438\u0441\u0435 \u0438 \u0411\u043e\u0431\u0443. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0430\u0442\u0430\u043a\u0430 <em>Intercept-Resend<\/em> (\u043a\u043e\u0433\u0434\u0430 \u0415\u0432\u0430 \u043c\u0435\u0440\u044f\u0435\u0442 \u0444\u043e\u0442\u043e\u043d \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u0431\u0430\u0437\u0438\u0441\u0435 BB84 \u0438 \u0448\u043b\u0451\u0442 \u043a\u043e\u043f\u0438\u044e \u0434\u0430\u043b\u044c\u0448\u0435) \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0433\u0440\u0443\u0431\u0430\u044f: \u043e\u043d\u0430 \u0434\u0430\u0451\u0442 <img decoding=\"async\" class=\"formula inline\" source=\"\\text{QBER}\\approx 25\\%\" alt=\"\\text{QBER}\\approx 25\\%\" src=\"https:\/\/habrastorage.org\/extt\/78\/61\/51\/7861518fb4b16b84f7fe195e8d3e70e6.svg\" width=\"124\" height=\"19\" data-width=\"13.732\" data-height=\"2.133\" data-vertical-align=\"-0.437\" style=\"width: 13.732ex; height: 2.133ex; vertical-align: -0.437ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/78\/61\/51\/7861518fb4b16b84f7fe195e8d3e70e6.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/78\/61\/51\/7861518fb4b16b84f7fe195e8d3e70e6.svg 781w\" loading=\"lazy\" decode=\"async\"\/>, \u0447\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u043f\u0430\u043b\u0438\u0442\u0441\u044f. \u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b <strong>\u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u0443\u044e \u0430\u0442\u0430\u043a\u0443 \u0411\u0440\u0435\u0439\u0434\u0431\u0430\u0440\u0434\u0430<\/strong>: \u0415\u0432\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u0441\u0444\u0435\u0440\u0435 \u0411\u043b\u043e\u0445\u0430 \u043d\u0430 \u0443\u0433\u043e\u043b <img decoding=\"async\" class=\"formula inline\" source=\"\\pi \/4\" alt=\"\\pi \/4\" src=\"https:\/\/habrastorage.org\/extt\/32\/a4\/6b\/32a46bf2c6ed31b5947cb848e48d5f12.svg\" width=\"32\" height=\"20\" data-width=\"3.552\" data-height=\"2.262\" data-vertical-align=\"-0.566\" style=\"width: 3.552ex; height: 2.262ex; vertical-align: -0.566ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/32\/a4\/6b\/32a46bf2c6ed31b5947cb848e48d5f12.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/32\/a4\/6b\/32a46bf2c6ed31b5947cb848e48d5f12.svg 781w\" loading=\"lazy\" decode=\"async\"\/> (\u0447\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 <img decoding=\"async\" class=\"formula inline\" source=\"22.5^{\\circ }\" alt=\"22.5^{\\circ }\" src=\"https:\/\/habrastorage.org\/extt\/e3\/cd\/23\/e3cd232270a718085840229bc58ce1cc.svg\" width=\"45\" height=\"15\" data-width=\"5.01\" data-height=\"1.694\" data-vertical-align=\"-0.05\" style=\"width: 5.01ex; height: 1.694ex; vertical-align: -0.05ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/e3\/cd\/23\/e3cd232270a718085840229bc58ce1cc.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/e3\/cd\/23\/e3cd232270a718085840229bc58ce1cc.svg 781w\" loading=\"lazy\" decode=\"async\"\/> \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u043f\u043e\u043b\u044f\u0440\u0438\u0437\u0430\u0446\u0438\u0439) \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0435\u043d\u0442\u0438\u043b\u044f <code>ry<\/code>, \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u0442 \u043a\u0443\u0431\u0438\u0442 \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u043c \u0431\u0430\u0437\u0438\u0441\u0435 \u0438 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043f\u0435\u0440\u0435\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u0411\u043e\u0431\u0443.<\/p>\n<pre><code class=\"python\">def eve_intercept_resend_22_5(qc_from_alice, num_qubits):    \"\"\"\u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u0430\u044f \u0430\u0442\u0430\u043a\u0430 \u0411\u0440\u0435\u0439\u0434\u0431\u0430\u0440\u0434\u0430 \u043f\u043e\u0434 \u0443\u0433\u043b\u043e\u043c 22.5 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432.\"\"\"    qc_copy = qc_from_alice.copy()    for i in range(num_qubits):        qc_copy.ry(-np.pi \/ 4, i)    eve_bases = np.zeros(num_qubits, dtype=int)    eve_measured_bits = measure_qubits(qc_copy, eve_bases)    qc_to_bob = QuantumCircuit(num_qubits, num_qubits)    for i in range(num_qubits):        if eve_measured_bits[i] == 1:            qc_to_bob.x(i)        qc_to_bob.ry(np.pi \/ 4, i)    return qc_to_bob, eve_bases, eve_measured_bits<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/36\/a1\/a4\/36a1a45fa5f1df534b724cb13df64b35.png\" alt=\"\u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u043c \u0431\u0430\u0437\u0438\u0441\u0435\" title=\"\u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u043c \u0431\u0430\u0437\u0438\u0441\u0435\" width=\"1130\" height=\"866\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/36\/a1\/a4\/36a1a45fa5f1df534b724cb13df64b35.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/36\/a1\/a4\/36a1a45fa5f1df534b724cb13df64b35.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u043c \u0431\u0430\u0437\u0438\u0441\u0435<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0430\u043a\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0432\u043d\u043e\u0441\u0438\u043c\u044b\u0439 \u0448\u0443\u043c \u0434\u043e <img decoding=\"async\" class=\"formula inline\" source=\"\\text{QBER}\\approx 14.6\\%\" alt=\"\\text{QBER}\\approx 14.6\\%\" src=\"https:\/\/habrastorage.org\/extt\/46\/0e\/f4\/460ef413ec4196bf689501c966269c76.svg\" width=\"139\" height=\"19\" data-width=\"15.492\" data-height=\"2.133\" data-vertical-align=\"-0.437\" style=\"width: 15.492ex; height: 2.133ex; vertical-align: -0.437ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/46\/0e\/f4\/460ef413ec4196bf689501c966269c76.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/46\/0e\/f4\/460ef413ec4196bf689501c966269c76.svg 781w\" loading=\"lazy\" decode=\"async\"\/>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0415\u0432\u0435 \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441\u0440\u0430\u0437\u0443 \u043e \u0434\u0432\u0443\u0445 \u0431\u0430\u0437\u0438\u0441\u0430\u0445. \u041d\u0430 \u043c\u0430\u043b\u044b\u0445 \u0432\u044b\u0431\u043e\u0440\u043a\u0430\u0445 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 \u0442\u0430\u043a\u043e\u0439 \u0432\u0441\u043f\u043b\u0435\u0441\u043a \u043b\u0435\u0433\u043a\u043e \u0441\u043f\u0443\u0442\u0430\u0442\u044c \u0441 \u0441\u0438\u043b\u044c\u043d\u044b\u043c \u0448\u0443\u043c\u043e\u043c \u043b\u0438\u043d\u0438\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0435\u0437 \u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c.<\/p>\n<p><strong>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438 \u0433\u0440\u0430\u0431\u043b\u0438 \u0441 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u043c\u0438 \u0422\u0451\u043f\u043b\u0438\u0446\u0430<\/strong><\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e \u0441\u0432\u0435\u0440\u0438\u043b\u0438 \u0431\u0430\u0437\u0438\u0441\u044b (<em>Sifting<\/em>), \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0447\u0438\u0441\u0442\u0430\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f<img decoding=\"async\" class=\"formula inline\" source=\" \\text{QBER}\" alt=\" \\text{QBER}\" src=\"https:\/\/habrastorage.org\/extt\/62\/d6\/dd\/62d6ddc2791a36921c7917a8f3e2b96c.svg\" width=\"59\" height=\"18\" data-width=\"6.568\" data-height=\"2.032\" data-vertical-align=\"-0.437\" style=\"width: 6.568ex; height: 2.032ex; vertical-align: -0.437ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/62\/d6\/dd\/62d6ddc2791a36921c7917a8f3e2b96c.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/62\/d6\/dd\/62d6ddc2791a36921c7917a8f3e2b96c.svg 781w\" loading=\"lazy\" decode=\"async\"\/> \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0432\u044b\u0431\u043e\u0440\u043a\u0435 \u0431\u0438\u0442\u043e\u0432 (\u044d\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u0447\u043d\u044b\u0435 \u0431\u0438\u0442\u044b \u0441\u0440\u0430\u0437\u0443 \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u0438\u0437 \u043a\u043b\u044e\u0447\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u0432\u0435\u0442\u0438\u0442\u044c \u0438\u0445 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435). \u0415\u0441\u043b\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"\\text{QBER}\\ge 11.0%\" alt=\"\\text{QBER}\\ge 11.0%\" src=\"https:\/\/habrastorage.org\/extt\/1a\/d5\/fd\/1ad5fdcc237c71d95c0cb3b1535337a1.svg\" width=\"122\" height=\"18\" data-width=\"13.608\" data-height=\"2.032\" data-vertical-align=\"-0.437\" style=\"width: 13.608ex; height: 2.032ex; vertical-align: -0.437ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/1a\/d5\/fd\/1ad5fdcc237c71d95c0cb3b1535337a1.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/1a\/d5\/fd\/1ad5fdcc237c71d95c0cb3b1535337a1.svg 781w\" loading=\"lazy\" decode=\"async\"\/>, \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 <strong>\u043f\u043e\u0440\u043e\u0433 \u0428\u043e\u0440\u0430 \u2014 \u041f\u0440\u0435\u0441\u043a\u0438\u043b\u043b\u0430<\/strong>: \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0415\u0432\u0430 \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0437\u043d\u0430\u0442\u044c \u043e \u043a\u043b\u044e\u0447\u0435 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u0432\u044b\u0447\u0438\u0441\u0442\u0438\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0435\u0430\u043d\u0441 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u0438\u0436\u0435 11%, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u043a\u0430 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432:<\/p>\n<ol>\n<li>\n<p><strong>\u041c\u043d\u043e\u0433\u043e\u0438\u0442\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 Cascade.<\/strong> \u041a\u043b\u044e\u0447 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u0431\u043b\u043e\u043a\u0438 (\u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 \u0438 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u043e\u0432 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 QBER), \u0438 \u043f\u0440\u0438 \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438 \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u0438 \u0431\u043b\u043e\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0449\u0435\u0442\u0441\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c \u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u043f\u043e\u043b\u0430\u043c. \u041a\u0430\u0436\u0434\u044b\u0439 \u0431\u0438\u0442 \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0410\u043b\u0438\u0441\u0430 \u0438 \u0411\u043e\u0431 \u043f\u0435\u0440\u0435\u0441\u043b\u0430\u043b\u0438 \u043f\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443, \u043f\u043b\u044e\u0441\u0443\u0435\u0442\u0441\u044f \u0432 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0443\u0442\u0435\u0447\u043a\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"\\text{leak}_{\\text{EC}}\" alt=\"\\text{leak}_{\\text{EC}}\" src=\"https:\/\/habrastorage.org\/extt\/04\/5c\/22\/045c229a7dcd146cd12b9aed367f1ad5.svg\" width=\"58\" height=\"17\" data-width=\"6.392\" data-height=\"1.943\" data-vertical-align=\"-0.373\" style=\"width: 6.392ex; height: 1.943ex; vertical-align: -0.373ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/04\/5c\/22\/045c229a7dcd146cd12b9aed367f1ad5.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/04\/5c\/22\/045c229a7dcd146cd12b9aed367f1ad5.svg 781w\" loading=\"lazy\" decode=\"async\"\/>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u0441\u0438\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u0445 \u0422\u0451\u043f\u043b\u0438\u0446\u0430.<\/strong> \u0427\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u0443\u043b\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0415\u0432\u044b, \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043b\u0438\u043d\u044b n \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e 2 \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0431\u0438\u043d\u0430\u0440\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0422\u0451\u043f\u043b\u0438\u0446\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c <img decoding=\"async\" class=\"formula inline\" source=\"m\\times n\" alt=\"m\\times n\" src=\"https:\/\/habrastorage.org\/extt\/ec\/b4\/1b\/ecb41bd9de6e3113a9a5f34a45ab7054.svg\" width=\"55\" height=\"10\" data-width=\"6.11\" data-height=\"1.136\" data-vertical-align=\"-0.025\" style=\"width: 6.11ex; height: 1.136ex; vertical-align: -0.025ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/ec\/b4\/1b\/ecb41bd9de6e3113a9a5f34a45ab7054.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/ec\/b4\/1b\/ecb41bd9de6e3113a9a5f34a45ab7054.svg 781w\" loading=\"lazy\" decode=\"async\"\/>, \u0433\u0434\u0435 \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 m \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0439 \u044d\u043d\u0442\u0440\u043e\u043f\u0438\u0438 \u0428\u0435\u043d\u043d\u043e\u043d\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"H_{2}(p)=-p\\log {2}(p)-(1-p)\\log {2}(1-p)\" alt=\"H_{2}(p)=-p\\log {2}(p)-(1-p)\\log {2}(1-p)\" src=\"https:\/\/habrastorage.org\/extt\/f2\/26\/a6\/f226a6c9f87a51476ce526d73d296392.svg\" width=\"364\" height=\"20\" data-width=\"40.489\" data-height=\"2.262\" data-vertical-align=\"-0.566\" style=\"width: 40.489ex; height: 2.262ex; vertical-align: -0.566ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/f2\/26\/a6\/f226a6c9f87a51476ce526d73d296392.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/f2\/26\/a6\/f226a6c9f87a51476ce526d73d296392.svg 781w\" loading=\"lazy\" decode=\"async\"\/>:<\/p>\n<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"formula inline\" source=\"m=\\Big\\lfloor n\\cdot \\big(1-2H_{2}(\\text{QBER})\\big)-\\text{leak}_{\\text{EC}}\\Big\\rfloor\" alt=\"m=\\Big\\lfloor n\\cdot \\big(1-2H_{2}(\\text{QBER})\\big)-\\text{leak}_{\\text{EC}}\\Big\\rfloor\" src=\"https:\/\/habrastorage.org\/extt\/19\/31\/6f\/19316f06d473f9c5cb039f7c088c17a9.svg\" width=\"341\" height=\"37\" data-width=\"37.838\" data-height=\"4.07\" data-vertical-align=\"-1.469\" style=\"width: 37.838ex; height: 4.07ex; vertical-align: -1.469ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/19\/31\/6f\/19316f06d473f9c5cb039f7c088c17a9.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/19\/31\/6f\/19316f06d473f9c5cb039f7c088c17a9.svg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<p>\u0418 \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u044f \u043f\u043e\u0439\u043c\u0430\u043b \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0431\u0430\u0433, \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0434\u043e\u043b\u0433\u043e \u043b\u043e\u043c\u0430\u043b \u0433\u043e\u043b\u043e\u0432\u0443. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0433\u043e\u043d\u0430 Cascade \u043a\u043b\u044e\u0447\u0438 \u0410\u043b\u0438\u0441\u044b \u0438 \u0411\u043e\u0431\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b\u0438 \u0431\u0438\u0442 \u0432 \u0431\u0438\u0442 (\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 <code>0.0000<\/code>). \u041d\u043e \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u0438\u0445 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u043f\u043e\u0441\u043b\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0422\u0451\u043f\u043b\u0438\u0446\u0430 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c <strong>\u0440\u0430\u0437\u043d\u044b\u043c\u0438<\/strong>!<\/p>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0445\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b <code>rng<\/code>:<\/p>\n<pre><code class=\"python\"># \u041a\u0430\u043a \u0431\u044b\u043b\u043e (\u0441 \u0431\u0430\u0433\u043e\u043c): \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0441\u0434\u0432\u0438\u0433\u0430\u043b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 rng, \u0438 \u0411\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u0434\u0440\u0443\u0433\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443amp_alice_bits, amp_alice_hex, final_len = privacy_amplification(corrected_alice, ..., rng=rng)amp_bob_bits, amp_bob_hex, _ = privacy_amplification(corrected_bob, ..., rng=rng)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0422\u0451\u043f\u043b\u0438\u0446\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0437\u0435\u0440\u043d\u0430 (<em>seed<\/em>), \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0410\u043b\u0438\u0441\u0430 \u0438 \u0411\u043e\u0431 \u0441\u043e\u0433\u043b\u0430\u0441\u0443\u044e\u0442 \u043f\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443 (\u0437\u043d\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0415\u0432\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0430\u0451\u0442, \u043f\u043e\u043a\u0430 \u043e\u043d\u0430 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0432\u0435\u043a\u0442\u043e\u0440 \u043a\u043b\u044e\u0447\u0430). \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u044f \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u0435\u0434\u0438\u043d\u044b\u0439 <code>toeplitz_seed<\/code> \u043d\u0430 \u0440\u0430\u0443\u043d\u0434 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432, \u043a\u043b\u044e\u0447\u0438 \u043d\u0430\u0447\u0430\u043b\u0438 \u0441\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e:<\/p>\n<pre><code class=\"python\">def toeplitz_hash(key_bits, target_length, rng=None):    \"\"\"\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435 \u0445\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043c\u0430\u0442\u0440\u0438\u0446 \u0422\u0451\u043f\u043b\u0438\u0446\u0430 (Hayashi &amp; Tsurumaru, 2016).\"\"\"    if rng is None:        rng = np.random.default_rng()    n, m = len(key_bits), target_length    if m &lt;= 0 or n == 0:        return np.array([], dtype=int), \"\"    row = rng.integers(0, 2, size=n)    col = rng.integers(0, 2, size=m)    col[0] = row[0]    toeplitz_matrix = np.zeros((m, n), dtype=int)    for i in range(m):        for j in range(n):            toeplitz_matrix[i, j] = col[i - j] if i &gt;= j else row[j - i]    compressed_key = np.dot(toeplitz_matrix, key_bits) % 2    bit_str = \"\".join(map(str, compressed_key))    bit_str_padded = bit_str.zfill((len(bit_str) + 7) \/\/ 8 * 8)    byte_vals = bytes(int(bit_str_padded[i:i+8], 2) for i in range(0, len(bit_str_padded), 8))    hex_str = hashlib.sha256(byte_vals).hexdigest()[: min(64, max(8, m \/\/ 4))]    return compressed_key, hex_str<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/ab\/73\/d1\/ab73d1a64acee2939f286c7d72adaecb.png\" alt=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0432\u044f\u0437\u043a\u0438 Cascade + \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0422\u0451\u043f\u043b\u0438\u0446\u0430: \u043a\u043b\u044e\u0447\u0438 \u0410\u043b\u0438\u0441\u044b \u0438 \u0411\u043e\u0431\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043f\u0430\u043b\u0438\" title=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0432\u044f\u0437\u043a\u0438 Cascade + \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0422\u0451\u043f\u043b\u0438\u0446\u0430: \u043a\u043b\u044e\u0447\u0438 \u0410\u043b\u0438\u0441\u044b \u0438 \u0411\u043e\u0431\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043f\u0430\u043b\u0438\" width=\"1061\" height=\"636\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/ab\/73\/d1\/ab73d1a64acee2939f286c7d72adaecb.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/ab\/73\/d1\/ab73d1a64acee2939f286c7d72adaecb.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0432\u044f\u0437\u043a\u0438 Cascade + \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0422\u0451\u043f\u043b\u0438\u0446\u0430: \u043a\u043b\u044e\u0447\u0438 \u0410\u043b\u0438\u0441\u044b \u0438 \u0411\u043e\u0431\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043f\u0430\u043b\u0438<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u041e\u0442 \u0438\u0433\u0440\u0443\u0448\u0435\u0447\u043d\u044b\u0445 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0438\u0437\u0438\u043a\u0435 \u0412\u041e\u041b\u0421 \u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 PLOB<\/strong><\/p>\n<p>\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c 100\u2013200 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0432\u0435\u043d\u0442\u0438\u043b\u0435\u0439 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043d\u043e \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0438 \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0433\u043e\u0440\u043e\u0434\u0430\u043c\u0438 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043b\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u044f \u0432\u044b\u043d\u0435\u0441 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0432\u043e\u043b\u043e\u043a\u043e\u043d\u043d\u043e-\u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0440\u0430\u0441\u0441.<\/p>\n<p>\u041e\u043d \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u043d\u0438\u0435 \u0432\u043e\u043b\u043e\u043a\u043d\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"T=10^{-\\alpha L\/10}\" alt=\"T=10^{-\\alpha L\/10}\" src=\"https:\/\/habrastorage.org\/extt\/33\/f3\/56\/33f356c6c4231dd42e564ac713acbed9.svg\" width=\"115\" height=\"21\" data-width=\"12.818\" data-height=\"2.32\" data-vertical-align=\"-0.186\" style=\"width: 12.818ex; height: 2.32ex; vertical-align: -0.186ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/33\/f3\/56\/33f356c6c4231dd42e564ac713acbed9.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/33\/f3\/56\/33f356c6c4231dd42e564ac713acbed9.svg 781w\" loading=\"lazy\" decode=\"async\"\/> (\u043f\u0440\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u0437\u0430\u0442\u0443\u0445\u0430\u043d\u0438\u0438<img decoding=\"async\" class=\"formula inline\" source=\" (\\alpha =0.20\\text{ \u0434\u0411\/\u043a\u043c})\" alt=\" (\\alpha =0.20\\text{ \u0434\u0411\/\u043a\u043c})\" src=\"https:\/\/habrastorage.org\/extt\/4d\/18\/46\/4d1846d0b3cc66b641072cf50ff0cdcb.svg\" width=\"156\" height=\"20\" data-width=\"17.375\" data-height=\"2.262\" data-vertical-align=\"-0.566\" style=\"width: 17.375ex; height: 2.262ex; vertical-align: -0.566ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/4d\/18\/46\/4d1846d0b3cc66b641072cf50ff0cdcb.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/4d\/18\/46\/4d1846d0b3cc66b641072cf50ff0cdcb.svg 781w\" loading=\"lazy\" decode=\"async\"\/> \u043d\u0430 \u0434\u043b\u0438\u043d\u0435 \u0432\u043e\u043b\u043d\u044b <img decoding=\"async\" class=\"formula inline\" source=\"1550\\text{ \u043d\u043c}\" alt=\"1550\\text{ \u043d\u043c}\" src=\"https:\/\/habrastorage.org\/extt\/63\/7b\/80\/637b80cfd665e1df47f090afb45a028b.svg\" width=\"70\" height=\"19\" data-width=\"7.805\" data-height=\"2.149\" data-vertical-align=\"-0.452\" style=\"width: 7.805ex; height: 2.149ex; vertical-align: -0.452ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/63\/7b\/80\/637b80cfd665e1df47f090afb45a028b.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/63\/7b\/80\/637b80cfd665e1df47f090afb45a028b.svg 781w\" loading=\"lazy\" decode=\"async\"\/>, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043e\u0448\u0438\u0431\u043e\u043a \u043e\u0442 \u0442\u0435\u043c\u043d\u043e\u0432\u044b\u0445 \u043e\u0442\u0441\u0447\u0451\u0442\u043e\u0432 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"P_{\\text{dark}}\" alt=\"P_{\\text{dark}}\" src=\"https:\/\/habrastorage.org\/extt\/97\/71\/a2\/9771a227cc95b37c3c3541a552fcec7b.svg\" width=\"43\" height=\"17\" data-width=\"4.801\" data-height=\"1.902\" data-vertical-align=\"-0.357\" style=\"width: 4.801ex; height: 1.902ex; vertical-align: -0.357ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/97\/71\/a2\/9771a227cc95b37c3c3541a552fcec7b.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/97\/71\/a2\/9771a227cc95b37c3c3541a552fcec7b.svg 781w\" loading=\"lazy\" decode=\"async\"\/> \u0438 \u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 <img decoding=\"async\" class=\"formula inline\" source=\"(\\epsilon _{\\text{optics}})\" alt=\"(\\epsilon _{\\text{optics}})\" src=\"https:\/\/habrastorage.org\/extt\/8b\/9e\/cd\/8b9ecd7ade81cb91b6be91ae5a881790.svg\" width=\"63\" height=\"21\" data-width=\"6.964\" data-height=\"2.347\" data-vertical-align=\"-0.65\" style=\"width: 6.964ex; height: 2.347ex; vertical-align: -0.65ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/8b\/9e\/cd\/8b9ecd7ade81cb91b6be91ae5a881790.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/8b\/9e\/cd\/8b9ecd7ade81cb91b6be91ae5a881790.svg 781w\" loading=\"lazy\" decode=\"async\"\/>:<\/p>\n<p><img decoding=\"async\" class=\"formula inline\" source=\"\\text{QBER}_{\\text{phys}}=\\frac{P_{\\text{dark}}}{2(T\\cdot \\eta {\\text{det}}\\cdot \\mu +P{\\text{dark}})}+\\epsilon _{\\text{optics}}\" alt=\"\\text{QBER}_{\\text{phys}}=\\frac{P_{\\text{dark}}}{2(T\\cdot \\eta {\\text{det}}\\cdot \\mu +P{\\text{dark}})}+\\epsilon _{\\text{optics}}\" src=\"https:\/\/habrastorage.org\/extt\/94\/ff\/aa\/94ffaa7f71a0332953563f06effc4556.svg\" width=\"399\" height=\"47\" data-width=\"44.311\" data-height=\"5.247\" data-vertical-align=\"-2.172\" style=\"width: 44.311ex; height: 5.247ex; vertical-align: -2.172ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/94\/ff\/aa\/94ffaa7f71a0332953563f06effc4556.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/94\/ff\/aa\/94ffaa7f71a0332953563f06effc4556.svg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0433\u0440\u0430\u0444\u0438\u043a \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0430\u0441\u0438\u043c\u043f\u0442\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 (<img decoding=\"async\" class=\"formula inline\" source=\"r_{\\text{SKR}}\" alt=\"r_{\\text{SKR}}\" src=\"https:\/\/habrastorage.org\/extt\/85\/35\/d9\/8535d98875dc374e82064cfb234c016c.svg\" width=\"41\" height=\"12\" data-width=\"4.52\" data-height=\"1.375\" data-vertical-align=\"-0.375\" style=\"width: 4.52ex; height: 1.375ex; vertical-align: -0.375ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/85\/35\/d9\/8535d98875dc374e82064cfb234c016c.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/85\/35\/d9\/8535d98875dc374e82064cfb234c016c.svg 781w\" loading=\"lazy\" decode=\"async\"\/>) \u043e\u0442 \u0434\u043b\u0438\u043d\u044b \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u0432 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430\u0445 \u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 <strong>\u043f\u0440\u0435\u0434\u0435\u043b \u041f\u0438\u0440\u0430\u043d\u0434\u043e\u043b\u044b \u2014 \u041b\u043e\u0440\u0435\u043d\u0446\u044b \u2014 \u041e\u0442\u0442\u0430\u0432\u0438\u0430\u043d\u0438 \u2014 \u0411\u044d\u0439\u043d\u0441\u0430 (PLOB bound)<\/strong> \u2014 \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0442\u043e\u043b\u043e\u043a \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u0431\u0435\u0437 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435\u043b\u0435\u0439:<\/p>\n<p><img decoding=\"async\" class=\"formula inline\" source=\"\\text{SKR}_{\\text{PLOB}}=-\\log {2}(1-T)\\cdot \\frac{f{\\text{rep}}}{2}\\\" alt=\"\\text{SKR}_{\\text{PLOB}}=-\\log {2}(1-T)\\cdot \\frac{f{\\text{rep}}}{2}\\\" src=\"https:\/\/habrastorage.org\/extt\/20\/93\/8d\/20938da862214b5e8f492ec5be871599.svg\" width=\"304\" height=\"42\" data-width=\"33.731\" data-height=\"4.676\" data-vertical-align=\"-1.552\" style=\"width: 33.731ex; height: 4.676ex; vertical-align: -1.552ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/20\/93\/8d\/20938da862214b5e8f492ec5be871599.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/20\/93\/8d\/20938da862214b5e8f492ec5be871599.svg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<p>\u041d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u043d\u0430 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u044f\u0445 \u0441\u0432\u044b\u0448\u0435 100\u2013120 \u043a\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u0437\u0430\u0442\u0443\u0445\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e, \u0447\u0442\u043e \u0442\u0435\u043c\u043d\u043e\u0432\u044b\u0435 \u0448\u0443\u043c\u044b \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u0430 SPAD \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c, <img decoding=\"async\" class=\"formula inline\" source=\"\\text{QBER}_{\\text{phys}}\" alt=\"\\text{QBER}_{\\text{phys}}\" src=\"https:\/\/habrastorage.org\/extt\/73\/0a\/7f\/730a7f34d0727b25206911abb1b80698.svg\" width=\"90\" height=\"22\" data-width=\"10.01\" data-height=\"2.438\" data-vertical-align=\"-0.843\" style=\"width: 10.01ex; height: 2.438ex; vertical-align: -0.843ex\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/extt\/73\/0a\/7f\/730a7f34d0727b25206911abb1b80698.svg 780w,&#10;       https:\/\/habrastorage.org\/extt\/73\/0a\/7f\/730a7f34d0727b25206911abb1b80698.svg 781w\" loading=\"lazy\" decode=\"async\"\/>\u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0442\u043e\u043b\u043e\u043a \u0428\u043e\u0440\u0430 \u2014 \u041f\u0440\u0435\u0441\u043a\u0438\u043b\u043b\u0430 (11%), \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0440\u0435\u0437\u043a\u043e \u043e\u0431\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u043b\u044c.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/09\/33\/09\/09330944417d0ac755a872d8d07b2fcc.png\" alt=\"\u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 (SKR) \u043e\u0442 \u0434\u043b\u0438\u043d\u044b \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430 PLOB\" title=\"\u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 (SKR) \u043e\u0442 \u0434\u043b\u0438\u043d\u044b \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430 PLOB\" width=\"1440\" height=\"866\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/09\/33\/09\/09330944417d0ac755a872d8d07b2fcc.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/09\/33\/09\/09330944417d0ac755a872d8d07b2fcc.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 (SKR) \u043e\u0442 \u0434\u043b\u0438\u043d\u044b \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430 PLOB<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u0418\u0442\u043e\u0433\u0438 \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043e\u0434<\/strong><\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0438\u0437 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441 \u0441 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u0432 \u043f\u043e\u0434 Windows \u0438 Linux \u0447\u0435\u0440\u0435\u0437 GitHub Actions \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u043c \u043d\u0430\u0443\u0447\u043d\u044b\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 CERN Zenodo.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0437\u0443\u0447\u0430\u0435\u0442\u0435 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0443\u044e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e, \u043f\u0438\u0448\u0435\u0442\u0435 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u044b\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043b\u0438\u043d\u0438\u0439 \u0412\u041e\u041b\u0421 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0422\u0451\u043f\u043b\u0438\u0446\u0430 \u0432\u044b\u0447\u0438\u0449\u0430\u044e\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0447\u0438\u043a\u0430 \u2014 \u043a\u043e\u0434 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043a\u0440\u044b\u0442 \u043f\u043e\u0434 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 <strong>GNU GPLv3<\/strong>:<\/p>\n<ul>\n<li>\n<p><strong>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0438 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 (Windows \/ Linux):<\/strong> <a href=\"https:\/\/github.com\/romaprogrammist\/QKD-BB84-Simulator-Qiskit\" rel=\"noopener nofollow\">https:\/\/github.com\/romaprogrammist\/QKD-BB84-Simulator-Qiskit<\/a><\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0440\u0445\u0438\u0432 \u0440\u0435\u043b\u0438\u0437\u0430 \u0438 \u0446\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (CERN Zenodo):<\/strong> <a href=\"http:\/\/doi.org\/10.5281\/zenodo.24649041\" rel=\"noopener nofollow\">doi.org\/10.5281\/zenodo.24649041<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043a\u0440\u0438\u0442\u0438\u043a\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e \u0447\u0430\u0441\u0442\u0438 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0430\u0442\u0430\u043a \u043d\u0430 \u043d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, PNS-\u0430\u0442\u0430\u043a \u043d\u0430 \u043e\u0441\u043b\u0430\u0431\u043b\u0435\u043d\u043d\u044b\u0445 \u043b\u0430\u0437\u0435\u0440\u043d\u044b\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430\u0445), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445.<\/p>\n<\/div>\n<p>\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\/1114796\/\">https:\/\/habr.com\/ru\/articles\/1114796\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u041a\u043e\u0433\u0434\u0430 \u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0439 (QKD), \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b BB84 \u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0447\u043a\u043e\u0439 \u043d\u0430 \u043e\u0434\u0438\u043d \u0432\u0435\u0447\u0435\u0440. \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u0443\u043b\u0435\u0439 \u0438 \u0435\u0434\u0438\u043d\u0438\u0446, \u043d\u0430\u043a\u0438\u043d\u0443\u043b \u0432\u0435\u043d\u0442\u0438\u043b\u0438 \u0410\u0434\u0430\u043c\u0430\u0440\u0430 \u0432 IBM Qiskit, \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0447\u0438\u043a\u0430 \u0415\u0432\u0443 \u2014 \u0438 \u0433\u043e\u0442\u043e\u0432\u043e: \u043f\u0440\u0438 \u043f\u043e\u0434\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043e\u0448\u0438\u0431\u043e\u043a QBER \u043f\u043e\u0434\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u0435\u0442 \u0434\u043e 25%, \u043a\u043b\u044e\u0447 \u0431\u0440\u0430\u043a\u0443\u0435\u0442\u0441\u044f, \u043c\u0430\u0433\u0438\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.\u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u0434\u043e\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0440\u0438\u0441\u043a\u043d\u0443\u043b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0443\u044e \u043d\u0430\u0443\u0447\u043d\u0443\u044e \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0438\u0437\u0443 \u0444\u0438\u0437\u0438\u043a\u0430\u043c, \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043c\u043e\u0439 \u00ab\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u00bb \u043f\u043e\u043b\u043e\u043d \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043a\u0440\u0438\u0442\u0438\u043a\u0430 \u043e\u0442 \u0434\u043e\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430\u0443\u043a \u0438\u0437 \u0418\u043d\u0441\u0442\u0438\u0442\u0443\u0442\u0430 \u0444\u0438\u0437\u0438\u043a\u0438 \u041d\u0410\u041d \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438 \u0438 \u041c\u0424\u0422\u0418 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u043c\u0435\u043d\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u044e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043a\u0430\u043a\u0438\u0435 \u0431\u0430\u0433\u0438 \u044f \u043f\u043e\u0439\u043c\u0430\u043b \u0432 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u0445 \u0422\u0451\u043f\u043b\u0438\u0446\u0430 \u0438 \u043a\u0430\u043a \u0432 \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0431\u0440\u0430\u043b \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 QKD-BB84-Simulator-Qiskit (DOI: 10.5281\/zenodo.24649041).\u0425\u043e\u043b\u043e\u0434\u043d\u044b\u0439 \u0434\u0443\u0448: \u0447\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0441 \u0443\u0447\u0435\u0431\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438 BB84\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u043e\u0435\u0433\u043e \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0430 \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u0441\u043d\u0430\u0440\u0443\u0436\u0438 (\u0442\u0451\u043c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 CustomTkinter, \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043d\u0430 Matplotlib), \u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u043f\u0438\u0440\u0430\u043b\u0430\u0441\u044c \u043d\u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442. \u042d\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0435 \u0440\u0435\u0446\u0435\u043d\u0437\u0438\u0438 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0442 \u0432\u0435\u0434\u0443\u0449\u0435\u0433\u043e \u043d\u0430\u0443\u0447\u043d\u043e\u0433\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u0426\u0435\u043d\u0442\u0440\u0430 \u00ab\u041a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u043e\u043f\u0442\u0438\u043a\u0430 \u0438 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0430\u00bb \u0418\u043d\u0441\u0442\u0438\u0442\u0443\u0442\u0430 \u0444\u0438\u0437\u0438\u043a\u0438 \u0438\u043c. \u0411. \u0418. \u0421\u0442\u0435\u043f\u0430\u043d\u043e\u0432\u0430 \u041d\u0410\u041d \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438 \u0434.\u0444.-\u043c.\u043d. \u0410. \u0411. \u041c\u0438\u0445\u0430\u043b\u044b\u0447\u0435\u0432\u0430 \u0438 \u0437\u0430\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0430 \u043f\u043e \u043d\u0430\u0443\u0447\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u041d\u0422\u0426 \u0422\u0435\u043b\u0435\u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0439 \u0418\u043d\u0441\u0442\u0438\u0442\u0443\u0442\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0433\u043e \u043d\u0435\u0431\u0430 \u041c\u0424\u0422\u0418 \u0434.\u0444.-\u043c.\u043d. \u0421. \u041d. \u0410\u043d\u0434\u0440\u0435\u0435\u0432\u0430.\u0412\u043e\u0442 \u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u043a\u043e\u0441\u0442\u044b\u043b\u044f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u0443\u043a\u0430\u0437\u0430\u043b\u0438:\u041f\u0443\u0442\u0430\u043d\u0438\u0446\u0430 \u0432 \u0443\u0433\u0440\u043e\u0437\u0430\u0445 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u0412 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u044f \u043f\u043e \u0438\u043d\u0435\u0440\u0446\u0438\u0438 \u0441\u0432\u0430\u043b\u0438\u043b \u0432 \u043e\u0434\u043d\u0443 \u043a\u0443\u0447\u0443 RSA, ECC \u0438 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0439 AES. \u0420\u0435\u0446\u0435\u043d\u0437\u0435\u043d\u0442\u044b \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438 \u0431\u0430\u0437\u0443: \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0428\u043e\u0440\u0430 \u043b\u043e\u043c\u0430\u0435\u0442 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u0443\u044e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0438 \u043e\u0431\u043c\u0435\u043d \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0414\u0438\u0444\u0444\u0438 \u2014 \u0425\u0435\u043b\u043b\u043c\u0430\u043d\u0430, \u0430 \u0432\u043e\u0442 AES-256 \u043e\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0413\u0440\u043e\u0432\u0435\u0440\u0430 \u0442\u0435\u0440\u044f\u0435\u0442 \u043b\u0438\u0448\u044c \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0431\u0438\u0442\u043e\u0432\u043e\u0439 \u0441\u0442\u043e\u0439\u043a\u043e\u0441\u0442\u0438 (\u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f 128 \u0431\u0438\u0442) \u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u043c. BB84 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0439 \u043e\u0431\u043c\u0435\u043d \u043a\u043b\u044e\u0447\u0430\u043c\u0438, \u0430 \u043d\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435.\u0421\u0442\u0435\u0440\u0438\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u043a\u0443\u0443\u043c \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430. \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0448\u0443\u043c\u0430. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0444\u043e\u0442\u043e\u043d\u044b \u0437\u0430\u0442\u0443\u0445\u0430\u044e\u0442 \u0432 \u0432\u043e\u043b\u043e\u043a\u043d\u0435, \u0430 \u043e\u0434\u043d\u043e\u0444\u043e\u0442\u043e\u043d\u043d\u044b\u0435 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u044b \u0434\u0430\u044e\u0442 \u0442\u0435\u043c\u043d\u043e\u0432\u044b\u0435 \u043e\u0442\u0441\u0447\u0451\u0442\u044b. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u00ab\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u0415\u0432\u0430!\u00bb \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u043c \u0441\u043a\u0430\u0447\u043a\u0435 \u043e\u0448\u0438\u0431\u043e\u043a, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u0448\u0443\u043c\u0435 \u0442\u0440\u0430\u0441\u0441\u044b.\u042d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 Cascade. \u0414\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0438\u043b \u043a\u043b\u044e\u0447 \u043d\u0430 \u0431\u043b\u043e\u043a\u0438 \u043f\u043e 4 \u0431\u0438\u0442\u0430, \u0441\u0432\u0435\u0440\u044f\u043b \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u0438 \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438 \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u0439 \u0431\u0438\u0442 \u0431\u043b\u043e\u043a\u0430. \u0415\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0442\u043e\u044f\u043b\u0430 \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0442\u0430\u043a\u043e\u0439 \u00ab\u0440\u0435\u043c\u043e\u043d\u0442\u00bb \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u043e\u0434\u0438\u043b \u043d\u043e\u0432\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438.SHA-256 \u0432\u043c\u0435\u0441\u0442\u043e 2-\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0441\u0442\u0438 (Privacy Amplification) \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u043b \u043a\u043b\u044e\u0447 \u0447\u0435\u0440\u0435\u0437 hashlib.sha256. \u0414\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u044d\u0442\u043e \u0441\u043e\u0439\u0434\u0451\u0442, \u043d\u043e \u0441\u0442\u0440\u043e\u0433\u043e\u0435 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e-\u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0442\u043e\u0439\u043a\u043e\u0441\u0442\u0438 \u043f\u043e \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u0428\u043e\u0440\u0430 \u2014 \u041f\u0440\u0435\u0441\u043a\u0438\u043b\u043b\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 2-\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u044d\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0430\u0442\u0440\u0438\u0446 \u0422\u0451\u043f\u043b\u0438\u0446\u0430.\u041f\u043e\u0441\u043b\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e: \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u0440\u0430\u0437\u0440\u044f\u0434\u0430 \u00ab\u0438\u0433\u0440\u0443\u0448\u043a\u0430 \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438\u00bb \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0438\u0437\u0438\u043a\u043e-\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0439 \u0442\u0440\u0430\u043a\u0442: \u0448\u0443\u043c \u043a\u0430\u043d\u0430\u043b\u0430 \u0438 \u0430\u0442\u0430\u043a\u0430 \u043f\u043e\u0434 \u0443\u0433\u043b\u043e\u043c 22.5\u00b0\u0414\u043b\u044f \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0441\u0445\u0435\u043c \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b AerSimulator \u0438\u0437 qiskit-aer \u0441 \u043c\u0435\u0442\u043e\u0434\u043e\u043c stabilizer \u2014 \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u0441\u0445\u0435\u043c\u044b \u043d\u0430 \u0441\u043e\u0442\u043d\u0438 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 \u0431\u0435\u0437 \u043f\u0440\u043e\u0441\u0430\u0434\u043e\u043a \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438.\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0439 \u0434\u0435\u043f\u043e\u043b\u044f\u0440\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u043a\u0430\u043d\u0430\u043b. \u0412 \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u0443\u0431\u0438\u0442\u0430  \u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0448\u0438\u0431\u043a\u0438  \u043f\u043e\u0434\u0432\u0435\u0440\u0433\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u043e\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u043c\u0443 \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044e \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u041f\u0430\u0443\u043b\u0438 \u2014 \u0431\u0438\u0442\u043e\u0432\u043e\u0439 \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u0438 , \u0444\u0430\u0437\u043e\u0432\u043e\u043c\u0443 \u0441\u0434\u0432\u0438\u0433\u0443  \u0438\u043b\u0438 \u0438\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 :\u0412 \u043a\u043e\u0434\u0435 Qiskit \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e\u043b\u0438\u043d\u0435\u0439\u043d\u043e, \u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u0443 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430: \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0436\u0435 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0447\u0438\u043a\u0430 \u0443 \u0410\u043b\u0438\u0441\u044b \u0438 \u0411\u043e\u0431\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043c\u0435\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u0442\u0430\u043a\u0438.def apply_channel_noise(qc, noise_probability):    &#171;&#187;&#187;\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u0434\u0435\u043f\u043e\u043b\u044f\u0440\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0448\u0443\u043c\u0430 \u0412\u041e\u041b\u0421.&#187;&#187;&#187;    if noise_probability &lt;= 0:        return qc    for i in range(qc.num_qubits):        if np.random.rand() &lt; noise_probability:            error_type = np.random.randint(0, 3)            if error_type == 0:                qc.x(i)  # Bit-flip (\u041f\u0430\u0443\u043b\u0438-X)            elif error_type == 1:                qc.y(i)  # Bit-Phase-flip (\u041f\u0430\u0443\u043b\u0438-Y)            else:                qc.z(i)  # Phase-flip (\u041f\u0430\u0443\u043b\u0438-Z)    return qc\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u044c \u0436\u0438\u0437\u043d\u044c \u0410\u043b\u0438\u0441\u0435 \u0438 \u0411\u043e\u0431\u0443. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0430\u0442\u0430\u043a\u0430 Intercept-Resend (\u043a\u043e\u0433\u0434\u0430 \u0415\u0432\u0430 \u043c\u0435\u0440\u044f\u0435\u0442 \u0444\u043e\u0442\u043e\u043d \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u0431\u0430\u0437\u0438\u0441\u0435 BB84 \u0438 \u0448\u043b\u0451\u0442 \u043a\u043e\u043f\u0438\u044e \u0434\u0430\u043b\u044c\u0448\u0435) \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0433\u0440\u0443\u0431\u0430\u044f: \u043e\u043d\u0430 \u0434\u0430\u0451\u0442 , \u0447\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u043f\u0430\u043b\u0438\u0442\u0441\u044f. \u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u0443\u044e \u0430\u0442\u0430\u043a\u0443 \u0411\u0440\u0435\u0439\u0434\u0431\u0430\u0440\u0434\u0430: \u0415\u0432\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u0441\u0444\u0435\u0440\u0435 \u0411\u043b\u043e\u0445\u0430 \u043d\u0430 \u0443\u0433\u043e\u043b  (\u0447\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442  \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u043f\u043e\u043b\u044f\u0440\u0438\u0437\u0430\u0446\u0438\u0439) \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0435\u043d\u0442\u0438\u043b\u044f ry, \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u0442 \u043a\u0443\u0431\u0438\u0442 \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u043c \u0431\u0430\u0437\u0438\u0441\u0435 \u0438 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043f\u0435\u0440\u0435\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u0411\u043e\u0431\u0443.def eve_intercept_resend_22_5(qc_from_alice, num_qubits):    &#171;&#187;&#187;\u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u0430\u044f \u0430\u0442\u0430\u043a\u0430 \u0411\u0440\u0435\u0439\u0434\u0431\u0430\u0440\u0434\u0430 \u043f\u043e\u0434 \u0443\u0433\u043b\u043e\u043c 22.5 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432.&#187;&#187;&#187;    qc_copy = qc_from_alice.copy()    for i in range(num_qubits):        qc_copy.ry(-np.pi \/ 4, i)    eve_bases = np.zeros(num_qubits, dtype=int)    eve_measured_bits = measure_qubits(qc_copy, eve_bases)    qc_to_bob = QuantumCircuit(num_qubits, num_qubits)    for i in range(num_qubits):        if eve_measured_bits[i] == 1:            qc_to_bob.x(i)        qc_to_bob.ry(np.pi \/ 4, i)    return qc_to_bob, eve_bases, eve_measured_bits\u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u043c \u0431\u0430\u0437\u0438\u0441\u0435\u0422\u0430\u043a\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0432\u043d\u043e\u0441\u0438\u043c\u044b\u0439 \u0448\u0443\u043c \u0434\u043e , \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0415\u0432\u0435 \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441\u0440\u0430\u0437\u0443 \u043e \u0434\u0432\u0443\u0445 \u0431\u0430\u0437\u0438\u0441\u0430\u0445. \u041d\u0430 \u043c\u0430\u043b\u044b\u0445 \u0432\u044b\u0431\u043e\u0440\u043a\u0430\u0445 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 \u0442\u0430\u043a\u043e\u0439 \u0432\u0441\u043f\u043b\u0435\u0441\u043a \u043b\u0435\u0433\u043a\u043e \u0441\u043f\u0443\u0442\u0430\u0442\u044c \u0441 \u0441\u0438\u043b\u044c\u043d\u044b\u043c \u0448\u0443\u043c\u043e\u043c \u043b\u0438\u043d\u0438\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0435\u0437 \u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c.\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438 \u0433\u0440\u0430\u0431\u043b\u0438 \u0441 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u043c\u0438 \u0422\u0451\u043f\u043b\u0438\u0446\u0430\u041a\u043e\u0433\u0434\u0430 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e \u0441\u0432\u0435\u0440\u0438\u043b\u0438 \u0431\u0430\u0437\u0438\u0441\u044b (Sifting), \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0447\u0438\u0441\u0442\u0430\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0432\u044b\u0431\u043e\u0440\u043a\u0435 \u0431\u0438\u0442\u043e\u0432 (\u044d\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u0447\u043d\u044b\u0435 \u0431\u0438\u0442\u044b \u0441\u0440\u0430\u0437\u0443 \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u0438\u0437 \u043a\u043b\u044e\u0447\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u0432\u0435\u0442\u0438\u0442\u044c \u0438\u0445 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435). \u0415\u0441\u043b\u0438 , \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0440\u043e\u0433 \u0428\u043e\u0440\u0430 \u2014 \u041f\u0440\u0435\u0441\u043a\u0438\u043b\u043b\u0430: \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0415\u0432\u0430 \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0437\u043d\u0430\u0442\u044c \u043e \u043a\u043b\u044e\u0447\u0435 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u0432\u044b\u0447\u0438\u0441\u0442\u0438\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0435\u0430\u043d\u0441 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f.\u0415\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u0438\u0436\u0435 11%, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u043a\u0430 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432:\u041c\u043d\u043e\u0433\u043e\u0438\u0442\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 Cascade. \u041a\u043b\u044e\u0447 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u0431\u043b\u043e\u043a\u0438 (\u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 \u0438 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u043e\u0432 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 QBER), \u0438 \u043f\u0440\u0438 \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438 \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u0438 \u0431\u043b\u043e\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0449\u0435\u0442\u0441\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c \u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u043f\u043e\u043b\u0430\u043c. \u041a\u0430\u0436\u0434\u044b\u0439 \u0431\u0438\u0442 \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0410\u043b\u0438\u0441\u0430 \u0438 \u0411\u043e\u0431 \u043f\u0435\u0440\u0435\u0441\u043b\u0430\u043b\u0438 \u043f\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443, \u043f\u043b\u044e\u0441\u0443\u0435\u0442\u0441\u044f \u0432 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0443\u0442\u0435\u0447\u043a\u0438 .\u0423\u0441\u0438\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u0445 \u0422\u0451\u043f\u043b\u0438\u0446\u0430. \u0427\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u0443\u043b\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0415\u0432\u044b, \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043b\u0438\u043d\u044b n \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e 2 \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0431\u0438\u043d\u0430\u0440\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0422\u0451\u043f\u043b\u0438\u0446\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c , \u0433\u0434\u0435 \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 m \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0439 \u044d\u043d\u0442\u0440\u043e\u043f\u0438\u0438 \u0428\u0435\u043d\u043d\u043e\u043d\u0430 :\u0418 \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u044f \u043f\u043e\u0439\u043c\u0430\u043b \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0431\u0430\u0433, \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0434\u043e\u043b\u0433\u043e \u043b\u043e\u043c\u0430\u043b \u0433\u043e\u043b\u043e\u0432\u0443. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0433\u043e\u043d\u0430 Cascade \u043a\u043b\u044e\u0447\u0438 \u0410\u043b\u0438\u0441\u044b \u0438 \u0411\u043e\u0431\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b\u0438 \u0431\u0438\u0442 \u0432 \u0431\u0438\u0442 (\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 0.0000). \u041d\u043e \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u0438\u0445 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u043f\u043e\u0441\u043b\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0422\u0451\u043f\u043b\u0438\u0446\u0430 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0440\u0430\u0437\u043d\u044b\u043c\u0438!\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0445\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b rng:# \u041a\u0430\u043a \u0431\u044b\u043b\u043e (\u0441 \u0431\u0430\u0433\u043e\u043c): \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0441\u0434\u0432\u0438\u0433\u0430\u043b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 rng, \u0438 \u0411\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u0434\u0440\u0443\u0433\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443amp_alice_bits, amp_alice_hex, final_len = privacy_amplification(corrected_alice, &#8230;, rng=rng)amp_bob_bits, amp_bob_hex, _ = privacy_amplification(corrected_bob, &#8230;, rng=rng)\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0422\u0451\u043f\u043b\u0438\u0446\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0437\u0435\u0440\u043d\u0430 (seed), \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0410\u043b\u0438\u0441\u0430 \u0438 \u0411\u043e\u0431 \u0441\u043e\u0433\u043b\u0430\u0441\u0443\u044e\u0442 \u043f\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443 (\u0437\u043d\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0415\u0432\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0430\u0451\u0442, \u043f\u043e\u043a\u0430 \u043e\u043d\u0430 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0432\u0435\u043a\u0442\u043e\u0440 \u043a\u043b\u044e\u0447\u0430). \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u044f \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u0435\u0434\u0438\u043d\u044b\u0439 toeplitz_seed \u043d\u0430 \u0440\u0430\u0443\u043d\u0434 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432, \u043a\u043b\u044e\u0447\u0438 \u043d\u0430\u0447\u0430\u043b\u0438 \u0441\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e:def toeplitz_hash(key_bits, target_length, rng=None):    &#171;&#187;&#187;\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435 \u0445\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043c\u0430\u0442\u0440\u0438\u0446 \u0422\u0451\u043f\u043b\u0438\u0446\u0430 (Hayashi &amp; Tsurumaru, 2016).&#187;&#187;&#187;    if rng is None:        rng = np.random.default_rng()    n, m = len(key_bits), target_length    if m &lt;= 0 or n == 0:        return np.array([], dtype=int), &#171;&#187;    row = rng.integers(0, 2, size=n)    col = rng.integers(0, 2, size=m)    col[0] = row[0]    toeplitz_matrix = np.zeros((m, n), dtype=int)    for i in range(m):        for j in range(n):            toeplitz_matrix[i, j] = col[i &#8212; j] if i &gt;= j else row[j &#8212; i]    compressed_key = np.dot(toeplitz_matrix, key_bits) % 2    bit_str = &#171;&#187;.join(map(str, compressed_key))    bit_str_padded = bit_str.zfill((len(bit_str) + 7) \/\/ 8 * 8)    byte_vals = bytes(int(bit_str_padded[i:i+8], 2) for i in range(0, len(bit_str_padded), 8))    hex_str = hashlib.sha256(byte_vals).hexdigest()[: min(64, max(8, m \/\/ 4))]    return compressed_key, hex_str\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0432\u044f\u0437\u043a\u0438 Cascade + \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0422\u0451\u043f\u043b\u0438\u0446\u0430: \u043a\u043b\u044e\u0447\u0438 \u0410\u043b\u0438\u0441\u044b \u0438 \u0411\u043e\u0431\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043f\u0430\u043b\u0438\u041e\u0442 \u0438\u0433\u0440\u0443\u0448\u0435\u0447\u043d\u044b\u0445 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0438\u0437\u0438\u043a\u0435 \u0412\u041e\u041b\u0421 \u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 PLOB\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c 100\u2013200 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u0432\u0435\u043d\u0442\u0438\u043b\u0435\u0439 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043d\u043e \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0438 \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0433\u043e\u0440\u043e\u0434\u0430\u043c\u0438 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043b\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u044f \u0432\u044b\u043d\u0435\u0441 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0432\u043e\u043b\u043e\u043a\u043e\u043d\u043d\u043e-\u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0440\u0430\u0441\u0441.\u041e\u043d \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u043d\u0438\u0435 \u0432\u043e\u043b\u043e\u043a\u043d\u0430  (\u043f\u0440\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u0437\u0430\u0442\u0443\u0445\u0430\u043d\u0438\u0438 \u043d\u0430 \u0434\u043b\u0438\u043d\u0435 \u0432\u043e\u043b\u043d\u044b , \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043e\u0448\u0438\u0431\u043e\u043a \u043e\u0442 \u0442\u0435\u043c\u043d\u043e\u0432\u044b\u0445 \u043e\u0442\u0441\u0447\u0451\u0442\u043e\u0432 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u0430  \u0438 \u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 :\u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0433\u0440\u0430\u0444\u0438\u043a \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0430\u0441\u0438\u043c\u043f\u0442\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 () \u043e\u0442 \u0434\u043b\u0438\u043d\u044b \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u0432 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430\u0445 \u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0435\u0434\u0435\u043b \u041f\u0438\u0440\u0430\u043d\u0434\u043e\u043b\u044b \u2014 \u041b\u043e\u0440\u0435\u043d\u0446\u044b \u2014 \u041e\u0442\u0442\u0430\u0432\u0438\u0430\u043d\u0438 \u2014 \u0411\u044d\u0439\u043d\u0441\u0430 (PLOB bound) \u2014 \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0442\u043e\u043b\u043e\u043a \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u0431\u0435\u0437 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435\u043b\u0435\u0439:\u041d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u043d\u0430 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u044f\u0445 \u0441\u0432\u044b\u0448\u0435 100\u2013120 \u043a\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u0437\u0430\u0442\u0443\u0445\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e, \u0447\u0442\u043e \u0442\u0435\u043c\u043d\u043e\u0432\u044b\u0435 \u0448\u0443\u043c\u044b \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u0430 SPAD \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0442\u043e\u043b\u043e\u043a \u0428\u043e\u0440\u0430 \u2014 \u041f\u0440\u0435\u0441\u043a\u0438\u043b\u043b\u0430 (11%), \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0440\u0435\u0437\u043a\u043e \u043e\u0431\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u043b\u044c.\u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 (SKR) \u043e\u0442 \u0434\u043b\u0438\u043d\u044b \u043e\u043f\u0442\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430 PLOB\u0418\u0442\u043e\u0433\u0438 \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043e\u0434\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0438\u0437 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441 \u0441 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u0432 \u043f\u043e\u0434 Windows \u0438 Linux \u0447\u0435\u0440\u0435\u0437 GitHub Actions \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u043c \u043d\u0430\u0443\u0447\u043d\u044b\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 CERN Zenodo.\u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0437\u0443\u0447\u0430\u0435\u0442\u0435&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-505671","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/505671","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=505671"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/505671\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=505671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=505671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=505671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}