<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@Introduction_to_quantum_key_distribution_-_history" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">Introduction to quantum key distribution - history</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Introduction to quantum key distribution - history</h3>
<div
id="video_U3L7a"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:lKl6XpgH0-g", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7a"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a_bennett">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a_bennett" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">The fathers of quantum cryptography - Charles Bennett</h3>
<div
id="video_U3L7a_bennett"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a_bennett/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a_bennett/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a_bennett/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7a_bennett/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:0fr-N-Kf2qU", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7a_bennett"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-2" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box1">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box1" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@The_Bennett-Brassard_84_QKD_protocol" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">The Bennett-Brassard 84 QKD protocol</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7b">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7b" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">The Bennett-Brassard 84 QKD protocol</h3>
<div
id="video_U3L7b"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7b/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7b/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7b/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7b/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:C_Gf0T8TVKI", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7b"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box2">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box2" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@BB84_QKD_assumptions_and_real-world_issues" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">BB84 QKD: assumptions and real-world issues</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7c">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7c" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">BB84 QKD: assumptions and real-world issues</h3>
<div
id="video_U3L7c"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7c/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7c/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7c/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7c/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:4lgx888bnIs", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7c"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box3">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box3" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@BB84_QKD_classical_post-processing_for_noise_and_privacy_amplification" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">BB84 QKD: classical post-processing for noise and privacy amplification</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7d">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7d" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">BB84 QKD: classical post-processing for noise and privacy amplification</h3>
<div
id="video_U3L7d"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7d/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7d/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7d/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7d/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:paUQXI6hY9A", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7d"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box4">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box4" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@On_the_security_of_BB84_QKD" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">On the security of BB84 QKD</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7e">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7e" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">On the security of BB84 QKD</h3>
<div
id="video_U3L7e"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7e/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7e/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7e/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7e/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:XZaZLJzC1oo", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7e"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box5">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box5" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@CQ_The_BB84_quantum_key_distribution_protocol" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">CQ: The BB84 quantum key distribution protocol</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="problem" data-has-score="True" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_u3_7_cq_bb84" class="problems-wrapper" role="group"
aria-labelledby="u3_7_cq_bb84-problem-title"
data-problem-id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84" data-url="/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84/handler/xmodule_handler"
data-problem-score="0"
data-problem-total-possible="1"
data-attempts-used="0"
data-content="
<h3 class="hd hd-3 problem-header" id="u3_7_cq_bb84-problem-title" aria-describedby="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84-problem-progress" tabindex="-1">
The BB84 quantum key distribution protocol
</h3>
<div class="problem-progress" id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84-problem-progress"></div>
<div class="problem">
<div>
<p>
This is a concept question, provided to double-check your understanding of the previous video clip. </p>
<p>
Which of the following statements about the BB84 <a href="https://en.wikipedia.org/wiki/Quantum_key_distribution" target="_blank">quantum key distribution protocol</a> are correct? Check all that apply: </p>
<p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div class="choicegroup capa_inputtype" id="inputtype_u3_7_cq_bb84_2_1">
<fieldset aria-describedby="status_u3_7_cq_bb84_2_1">
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_2_1[]" id="input_u3_7_cq_bb84_2_1_choice_0" class="field-input input-checkbox" value="choice_0"/><label id="u3_7_cq_bb84_2_1-choice_0-label" for="input_u3_7_cq_bb84_2_1_choice_0" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_2_1">
<text>The security of BB84 relies on the fact that an evesdropper cannot measure an unknown quantum state without disturbing it</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_2_1[]" id="input_u3_7_cq_bb84_2_1_choice_1" class="field-input input-checkbox" value="choice_1"/><label id="u3_7_cq_bb84_2_1-choice_1-label" for="input_u3_7_cq_bb84_2_1_choice_1" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_2_1">
<text>The security of BB84 relies on the fact that entangled quantum states have super-classical correlations</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_2_1[]" id="input_u3_7_cq_bb84_2_1_choice_2" class="field-input input-checkbox" value="choice_2"/><label id="u3_7_cq_bb84_2_1-choice_2-label" for="input_u3_7_cq_bb84_2_1_choice_2" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_2_1">
<text>The security of BB84 relies on the fact that Alice transmits photons in non-orthogonal bases and the evesdropper does not know which basis to use for measurement</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_2_1[]" id="input_u3_7_cq_bb84_2_1_choice_3" class="field-input input-checkbox" value="choice_3"/><label id="u3_7_cq_bb84_2_1-choice_3-label" for="input_u3_7_cq_bb84_2_1_choice_3" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_2_1">
<text>BB84 only requires one party to send qubits to the receiving party, with no additional classical bits needed</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_2_1[]" id="input_u3_7_cq_bb84_2_1_choice_4" class="field-input input-checkbox" value="choice_4"/><label id="u3_7_cq_bb84_2_1-choice_4-label" for="input_u3_7_cq_bb84_2_1_choice_4" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_2_1">
<text>BB84 requires one party to send classical bits to the other, in addition to sending encoded qubits</text>
</label>
</div>
<span id="answer_u3_7_cq_bb84_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_u3_7_cq_bb84_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div></div>
</p>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="The BB84 quantum key distribution protocol" />
<div class="submit-attempt-container">
<button type="button" class="submit btn-brand" data-submitting="Submitting" data-value="Submit" data-should-enable-submit-button="True" aria-describedby="submission_feedback_u3_7_cq_bb84" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_u3_7_cq_bb84">
<span class="sr">Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.</span>
</div>
</div>
<div class="problem-action-buttons-wrapper">
<span class="problem-action-button-wrapper">
<button type="button" class="save problem-action-btn btn-default btn-small" data-value="Save">
<span class="icon fa fa-floppy-o" aria-hidden="true"></span>
<span aria-hidden="true">Save</span>
<span class="sr">Save your answer</span>
</button>
</span>
</div>
</div>
<div class="notification warning notification-gentle-alert
is-hidden"
tabindex="-1">
<span class="icon fa fa-exclamation-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="u3_7_cq_bb84-problem-title">
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification warning notification-save
is-hidden"
tabindex="-1">
<span class="icon fa fa-save" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="u3_7_cq_bb84-problem-title">None
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification general notification-show-answer
is-hidden"
tabindex="-1">
<span class="icon fa fa-info-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="u3_7_cq_bb84-problem-title">Answers are displayed within the problem
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
</div>
"
data-graded="True">
<p class="loading-spinner">
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr">Loading…</span>
</p>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@html_site_search_box1">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@html_site_search_box1" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@The_Ekert-Chao-Lo_entanglement-based_QKD_protocol" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">The Ekert-Chao-Lo entanglement-based QKD protocol</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7f">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7f" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">The Ekert-Chao-Lo entanglement-based QKD protocol</h3>
<div
id="video_U3L7f"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7f/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7f/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7f/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7f/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:NLnlRnRJSPM", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7f"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box6">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box6" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@A_story_of_QKD_implementations_BB84_vs_entanglement-based_QKD" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">A story of QKD implementations: BB84 vs entanglement-based QKD</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7g">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7g" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">A story of QKD implementations: BB84 vs entanglement-based QKD</h3>
<div
id="video_U3L7g"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7g/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7g/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7g/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7g/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:nn-k4z8WOVI", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7g"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box7">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box7" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@CQ_BB84_versus_Ekert91_QKD" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">CQ: BB84 versus Ekert91 QKD</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84_e91">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="problem" data-has-score="True" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84_e91" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_u3_7_cq_bb84_e91" class="problems-wrapper" role="group"
aria-labelledby="u3_7_cq_bb84_e91-problem-title"
data-problem-id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84_e91" data-url="/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84_e91/handler/xmodule_handler"
data-problem-score="0"
data-problem-total-possible="1"
data-attempts-used="0"
data-content="
<h3 class="hd hd-3 problem-header" id="u3_7_cq_bb84_e91-problem-title" aria-describedby="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84_e91-problem-progress" tabindex="-1">
BB84 versus Ekert91 QKD
</h3>
<div class="problem-progress" id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_bb84_e91-problem-progress"></div>
<div class="problem">
<div>
<p>
This is a concept question, provided to double-check your understanding of the previous video clip. </p>
<p>
Prof. Shor compares the BB84 <a href="https://en.wikipedia.org/wiki/Quantum_key_distribution" target="_blank">quantum key distribution protocol</a> with a cleaned version of the Ekert91 protocol, in lecture (credited to Ekert, Chao, and Lo). Which of the following statements about these two QKD protocols is correct? Check all that apply: </p>
<p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div class="choicegroup capa_inputtype" id="inputtype_u3_7_cq_bb84_e91_2_1">
<fieldset aria-describedby="status_u3_7_cq_bb84_e91_2_1">
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_e91_2_1[]" id="input_u3_7_cq_bb84_e91_2_1_choice_0" class="field-input input-checkbox" value="choice_0"/><label id="u3_7_cq_bb84_e91_2_1-choice_0-label" for="input_u3_7_cq_bb84_e91_2_1_choice_0" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_e91_2_1">
<text>The Ekert91 protocol does not require entanglement, but BB84 does</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_e91_2_1[]" id="input_u3_7_cq_bb84_e91_2_1_choice_1" class="field-input input-checkbox" value="choice_1"/><label id="u3_7_cq_bb84_e91_2_1-choice_1-label" for="input_u3_7_cq_bb84_e91_2_1_choice_1" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_e91_2_1">
<text>BB84 does not require entanglement, but Ekert91 does</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_e91_2_1[]" id="input_u3_7_cq_bb84_e91_2_1_choice_2" class="field-input input-checkbox" value="choice_2"/><label id="u3_7_cq_bb84_e91_2_1-choice_2-label" for="input_u3_7_cq_bb84_e91_2_1_choice_2" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_e91_2_1">
<text>Both Ekert91 and BB84 require entanglement</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_e91_2_1[]" id="input_u3_7_cq_bb84_e91_2_1_choice_3" class="field-input input-checkbox" value="choice_3"/><label id="u3_7_cq_bb84_e91_2_1-choice_3-label" for="input_u3_7_cq_bb84_e91_2_1_choice_3" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_e91_2_1">
<text>BB84 requires Alice to use some of the sent qubits to test for eavesdropping, but Ekert91 does not</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_e91_2_1[]" id="input_u3_7_cq_bb84_e91_2_1_choice_4" class="field-input input-checkbox" value="choice_4"/><label id="u3_7_cq_bb84_e91_2_1-choice_4-label" for="input_u3_7_cq_bb84_e91_2_1_choice_4" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_e91_2_1">
<text>Ekert91 requires Alice to use some of the sent qubits to test for eavesdropping, but BB84 does not</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_bb84_e91_2_1[]" id="input_u3_7_cq_bb84_e91_2_1_choice_5" class="field-input input-checkbox" value="choice_5"/><label id="u3_7_cq_bb84_e91_2_1-choice_5-label" for="input_u3_7_cq_bb84_e91_2_1_choice_5" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_bb84_e91_2_1">
<text>Both BB84 and Ekerg91 require Alice to use some of the sent qubits to test for eavesdropping</text>
</label>
</div>
<span id="answer_u3_7_cq_bb84_e91_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_u3_7_cq_bb84_e91_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div></div>
</p>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="BB84 versus Ekert91 QKD" />
<div class="submit-attempt-container">
<button type="button" class="submit btn-brand" data-submitting="Submitting" data-value="Submit" data-should-enable-submit-button="True" aria-describedby="submission_feedback_u3_7_cq_bb84_e91" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_u3_7_cq_bb84_e91">
<span class="sr">Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.</span>
</div>
</div>
<div class="problem-action-buttons-wrapper">
<span class="problem-action-button-wrapper">
<button type="button" class="save problem-action-btn btn-default btn-small" data-value="Save">
<span class="icon fa fa-floppy-o" aria-hidden="true"></span>
<span aria-hidden="true">Save</span>
<span class="sr">Save your answer</span>
</button>
</span>
</div>
</div>
<div class="notification warning notification-gentle-alert
is-hidden"
tabindex="-1">
<span class="icon fa fa-exclamation-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="u3_7_cq_bb84_e91-problem-title">
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification warning notification-save
is-hidden"
tabindex="-1">
<span class="icon fa fa-save" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="u3_7_cq_bb84_e91-problem-title">None
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification general notification-show-answer
is-hidden"
tabindex="-1">
<span class="icon fa fa-info-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="u3_7_cq_bb84_e91-problem-title">Answers are displayed within the problem
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
</div>
"
data-graded="True">
<p class="loading-spinner">
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr">Loading…</span>
</p>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@html_site_search_box2">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@html_site_search_box2" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@The_Shor-Preskill_proof_of_security_of_QKD_Step_1_-_random_CSS_codes" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">The Shor-Preskill proof of security of QKD: Step 1 - random CSS codes</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7h">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7h" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">The Shor-Preskill proof of security of QKD: Step 1 - random CSS codes</h3>
<div
id="video_U3L7h"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7h/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7h/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7h/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7h/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:wXHuL4sCKvU", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7h"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box8">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box8" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@The_Shor-Preskill_proof_of_security_of_QKD_Step_2_-_no_quantum_computer_needed" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">The Shor-Preskill proof of security of QKD: Step 2 - no quantum computer needed</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7j">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7j" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">The Shor-Preskill proof of security of QKD: Step 2 - no quantum computer needed</h3>
<div
id="video_U3L7j"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7j/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7j/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7j/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7j/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:ytn6IRgbn9I", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7j"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box9">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box9" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@The_secure_BB84_protocol_-_BB84_in_terms_of_CSS_codes" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">The secure BB84 protocol - BB84 in terms of CSS codes</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7k">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7k" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">The secure BB84 protocol - BB84 in terms of CSS codes</h3>
<div
id="video_U3L7k"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7k/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7k/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7k/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7k/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:11-T9dtOq7s", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7k"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box10">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box10" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@CQ_Proof_of_security_of_quantum_key_distribution" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">CQ: Proof of security of quantum key distribution</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_qkd_sec">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="problem" data-has-score="True" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_qkd_sec" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_u3_7_cq_qkd_sec" class="problems-wrapper" role="group"
aria-labelledby="u3_7_cq_qkd_sec-problem-title"
data-problem-id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_qkd_sec" data-url="/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_qkd_sec/handler/xmodule_handler"
data-problem-score="0"
data-problem-total-possible="1"
data-attempts-used="0"
data-content="
<h3 class="hd hd-3 problem-header" id="u3_7_cq_qkd_sec-problem-title" aria-describedby="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_qkd_sec-problem-progress" tabindex="-1">
Proof of security of quantum key distribution
</h3>
<div class="problem-progress" id="block-v1:MITx+8.370.3x+1T2018+type@problem+block@u3_7_cq_qkd_sec-problem-progress"></div>
<div class="problem">
<div>
<p>
This is a concept question, provided to double-check your understanding of the previous video clip. </p>
<p>
Prof. Shor presents the proof of security of quantum key distribution in lecture, by employing CSS codes to show how BB84 is actually equivalent to the Lo-Chau modification of Ekert91, which is manifestly secure. Which of the following statements about this proof are correct? Check all that apply: </p>
<p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div class="choicegroup capa_inputtype" id="inputtype_u3_7_cq_qkd_sec_2_1">
<fieldset aria-describedby="status_u3_7_cq_qkd_sec_2_1">
<div class="field">
<input type="checkbox" name="input_u3_7_cq_qkd_sec_2_1[]" id="input_u3_7_cq_qkd_sec_2_1_choice_0" class="field-input input-checkbox" value="choice_0"/><label id="u3_7_cq_qkd_sec_2_1-choice_0-label" for="input_u3_7_cq_qkd_sec_2_1_choice_0" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_qkd_sec_2_1">
<text>By virtue of this proof, QKD is secure, but only if Alice and Bob have a quantum computer to perform quantum error correction</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_qkd_sec_2_1[]" id="input_u3_7_cq_qkd_sec_2_1_choice_1" class="field-input input-checkbox" value="choice_1"/><label id="u3_7_cq_qkd_sec_2_1-choice_1-label" for="input_u3_7_cq_qkd_sec_2_1_choice_1" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_qkd_sec_2_1">
<text>By virtue of this proof, QKD is secure, and Alice and Bob do NOT need a quantum computer for the protocol to be secure</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_qkd_sec_2_1[]" id="input_u3_7_cq_qkd_sec_2_1_choice_2" class="field-input input-checkbox" value="choice_2"/><label id="u3_7_cq_qkd_sec_2_1-choice_2-label" for="input_u3_7_cq_qkd_sec_2_1_choice_2" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_qkd_sec_2_1">
<text>By virtue of this proof, QKD is secure, but the security requires Bob to have a quantum memory to keep received qubits until after Alice completes transmission of qubits</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_qkd_sec_2_1[]" id="input_u3_7_cq_qkd_sec_2_1_choice_3" class="field-input input-checkbox" value="choice_3"/><label id="u3_7_cq_qkd_sec_2_1-choice_3-label" for="input_u3_7_cq_qkd_sec_2_1_choice_3" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_qkd_sec_2_1">
<text>By virtue of this proof, QKD is secure, but the security requires Bob to have a quantum memory to keep received qubits until after Alice reveals the basis in which they were encoded</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u3_7_cq_qkd_sec_2_1[]" id="input_u3_7_cq_qkd_sec_2_1_choice_4" class="field-input input-checkbox" value="choice_4"/><label id="u3_7_cq_qkd_sec_2_1-choice_4-label" for="input_u3_7_cq_qkd_sec_2_1_choice_4" class="response-label field-label label-inline" aria-describedby="status_u3_7_cq_qkd_sec_2_1">
<text>By virtue of this proof, QKD is secure, and does not require Bob to have a quantum memory, because he can measure each qubit when he receives it</text>
</label>
</div>
<span id="answer_u3_7_cq_qkd_sec_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_u3_7_cq_qkd_sec_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div></div>
</p>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="Proof of security of quantum key distribution" />
<div class="submit-attempt-container">
<button type="button" class="submit btn-brand" data-submitting="Submitting" data-value="Submit" data-should-enable-submit-button="True" aria-describedby="submission_feedback_u3_7_cq_qkd_sec" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_u3_7_cq_qkd_sec">
<span class="sr">Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.</span>
</div>
</div>
<div class="problem-action-buttons-wrapper">
<span class="problem-action-button-wrapper">
<button type="button" class="save problem-action-btn btn-default btn-small" data-value="Save">
<span class="icon fa fa-floppy-o" aria-hidden="true"></span>
<span aria-hidden="true">Save</span>
<span class="sr">Save your answer</span>
</button>
</span>
</div>
</div>
<div class="notification warning notification-gentle-alert
is-hidden"
tabindex="-1">
<span class="icon fa fa-exclamation-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="u3_7_cq_qkd_sec-problem-title">
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification warning notification-save
is-hidden"
tabindex="-1">
<span class="icon fa fa-save" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="u3_7_cq_qkd_sec-problem-title">None
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification general notification-show-answer
is-hidden"
tabindex="-1">
<span class="icon fa fa-info-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="u3_7_cq_qkd_sec-problem-title">Answers are displayed within the problem
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
</div>
"
data-graded="True">
<p class="loading-spinner">
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr">Loading…</span>
</p>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@html_site_search_box3">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@html_site_search_box3" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="vertical" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@vertical+block@Conjugate_coding_and_quantum_money" data-init="VerticalStudentView" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<h2 class="hd hd-2 unit-title">Conjugate coding and quantum money</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7m">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="video" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7m" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Conjugate coding and quantum money</h3>
<div
id="video_U3L7m"
class="video closed"
data-metadata='{"autoplay": false, "speed": null, "duration": 0.0, "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "ytTestTimeout": 1500, "showCaptions": "true", "savedVideoPosition": 0.0, "completionEnabled": false, "ytMetadataEndpoint": "", "sources": [], "autohideHtml5": false, "autoAdvance": false, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7m/handler/transcript/available_translations", "end": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7m/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "completionPercentage": 0.95, "ytApiUrl": "https://www.youtube.com/iframe_api", "captionDataDir": null, "transcriptLanguages": {"en": "English"}, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7m/handler/publish_completion", "recordedYoutubeIsAvailable": true, "start": 0.0, "transcriptLanguage": "en", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.3x+1T2018/xblock/block-v1:MITx+8.370.3x+1T2018+type@video+block@U3L7m/handler/transcript/translation/__lang__", "prioritizeHls": false, "streams": "1.00:oM_jf4Wlx9c", "poster": null}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="U3L7m"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box11">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-runtime-version="1" data-course-id="course-v1:MITx+8.370.3x+1T2018" data-graded="True" data-block-type="html" data-has-score="False" data-usage-id="block-v1:MITx+8.370.3x+1T2018+type@html+block@site_search_box11" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-request-token="5aa307b02c9511f0a9300e09798aea1b">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.3x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.3x+1T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.3x+1T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
© All Rights Reserved