<div class="xblock xblock-public_view xblock-public_view-vertical" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@Teleportation_and_superdense_coding_-_a_historical_anecdote" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">Teleportation and superdense coding - a historical anecdote</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Teleportation and superdense coding - a historical anecdote</h3>
<div
id="video_U2L1a"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:6zLPANfn6kg", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1a"></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.2x+1T2018+type@video+block@U2L1a_bennett">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a_bennett" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">The Origins of Quantum Teleportation - Charles Bennett</h3>
<div
id="video_U2L1a_bennett"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a_bennett/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:00ZvkPgy7-Y", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a_bennett/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a_bennett/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1a_bennett/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1a_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.2x+1T2018+type@html+block@More_about_the_history_of_quantum_teleporation_-_at_IBM">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@More_about_the_history_of_quantum_teleporation_-_at_IBM" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<p><big class="xlarge">More about the history of quantum teleporation - at IBM</big></p><p>
Read more about <a href="https://researcher.watson.ibm.com/researcher/view_group.php?id=2862" target="_blank">the history of quantum teleporation</a>, and how it was invented and first demonstrated by Charles Bennett, John Smolin, and colleagues at IBM in Yorktown. </p><html url_name="site_search_box1"/>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@Quantum_teleportation_-_protocol_overview" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">Quantum teleportation - protocol overview</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1b">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1b" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum teleportation - protocol overview</h3>
<div
id="video_U2L1b"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1b/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:DSE3jKW5y7A", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1b/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1b/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1b/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1b"></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.2x+1T2018+type@html+block@site_search_box2">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box2" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@Quantum_superdense_coding_-_protocol_overview" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">Quantum superdense coding - protocol overview</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1c">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1c" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum superdense coding - protocol overview</h3>
<div
id="video_U2L1c"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1c/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:vJdoER1tw0o", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1c/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1c/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1c/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1c"></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.2x+1T2018+type@html+block@site_search_box3">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box3" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@The_Bell_basis_measurement" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">The Bell basis measurement</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1d">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1d" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">The Bell basis measurement</h3>
<div
id="video_U2L1d"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1d/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:ETkTSDAecZA", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1d/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1d/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1d/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1d"></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.2x+1T2018+type@html+block@site_search_box4">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box4" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@CQ_Bell_basis_measurement_circuit" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">CQ: Bell basis measurement circuit</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_bb_meas_circ">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-has-score="True" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_bb_meas_circ" data-block-type="problem" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_u2_1_cq_bb_meas_circ" class="problems-wrapper" role="group"
aria-labelledby="u2_1_cq_bb_meas_circ-problem-title"
data-problem-id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_bb_meas_circ" data-url="/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_bb_meas_circ/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="u2_1_cq_bb_meas_circ-problem-title" aria-describedby="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_bb_meas_circ-problem-progress" tabindex="-1">
Bell basis measurement circuit
</h3>
<div class="problem-progress" id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_bb_meas_circ-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>
Suppose you wish to construct a quantum circuit such that measuring qubits [mathjaxinline]|ab\rangle[/mathjaxinline] of the four Bell states produce results [mathjaxinline]xy = 00, 01, 10, 11[/mathjaxinline], according to: </p>
<table id="a0000000002" class="eqnarray" cellspacing="0" cellpadding="7" width="100%" style="table-layout:auto">
<tr id="a0000000003">
<td style="width:40%; border:none">&#160;</td>
<td style="vertical-align:middle; text-align:right; border:none">
[mathjaxinline]\displaystyle |\Phi ^+\rangle[/mathjaxinline]
</td>
<td style="vertical-align:middle; text-align:center; border:none">
[mathjaxinline]\displaystyle =[/mathjaxinline]
</td>
<td style="vertical-align:middle; text-align:left; border:none">
[mathjaxinline]\displaystyle \frac{|00\rangle + |11\rangle }{\sqrt{2}} \longrightarrow xy = 00[/mathjaxinline]
</td>
<td style="width:40%; border:none">&#160;</td>
<td class="eqnnum" style="width:20%; border:none;text-align:right">(1.1)</td>
</tr>
<tr id="a0000000004">
<td style="width:40%; border:none">&#160;</td>
<td style="vertical-align:middle; text-align:right; border:none">
[mathjaxinline]\displaystyle |\Phi ^-\rangle[/mathjaxinline]
</td>
<td style="vertical-align:middle; text-align:center; border:none">
[mathjaxinline]\displaystyle =[/mathjaxinline]
</td>
<td style="vertical-align:middle; text-align:left; border:none">
[mathjaxinline]\displaystyle \frac{|00\rangle - |11\rangle }{\sqrt{2}} \longrightarrow xy = 10[/mathjaxinline]
</td>
<td style="width:40%; border:none">&#160;</td>
<td class="eqnnum" style="width:20%; border:none;text-align:right">(1.2)</td>
</tr>
<tr id="a0000000005">
<td style="width:40%; border:none">&#160;</td>
<td style="vertical-align:middle; text-align:right; border:none">
[mathjaxinline]\displaystyle |\Psi ^+\rangle[/mathjaxinline]
</td>
<td style="vertical-align:middle; text-align:center; border:none">
[mathjaxinline]\displaystyle =[/mathjaxinline]
</td>
<td style="vertical-align:middle; text-align:left; border:none">
[mathjaxinline]\displaystyle \frac{|01\rangle + |10\rangle }{\sqrt{2}} \longrightarrow xy = 01[/mathjaxinline]
</td>
<td style="width:40%; border:none">&#160;</td>
<td class="eqnnum" style="width:20%; border:none;text-align:right">(1.3)</td>
</tr>
<tr id="a0000000006">
<td style="width:40%; border:none">&#160;</td>
<td style="vertical-align:middle; text-align:right; border:none">
[mathjaxinline]\displaystyle |\Psi ^-\rangle[/mathjaxinline]
</td>
<td style="vertical-align:middle; text-align:center; border:none">
[mathjaxinline]\displaystyle =[/mathjaxinline]
</td>
<td style="vertical-align:middle; text-align:left; border:none">
[mathjaxinline]\displaystyle \frac{|01\rangle - |10\rangle }{\sqrt{2}} \longrightarrow xy = 11 \, .[/mathjaxinline]
</td>
<td style="width:40%; border:none">&#160;</td>
<td class="eqnnum" style="width:20%; border:none;text-align:right">(1.4)</td>
</tr>
</table>
<p>
Note that these assigments of [mathjaxinline]x[/mathjaxinline] and [mathjaxinline]y[/mathjaxinline] may be different from what you find elsewhere (e.g. in Nielsen &amp; Chuang); that is deliberate, so you think a bit harder about the circuit. </p>
<p>
Complete the following quantum circuit to implement the desired measurement, by placing the Hadamard gates ([mathjaxinline]H[/mathjaxinline]) and identity gates ([mathjaxinline]I[/mathjaxinline]) where appropriate, around the CNOT gate which has qubit [mathjaxinline]b[/mathjaxinline] as its control, and qubit [mathjaxinline]a[/mathjaxinline] as its target: </p>
<span>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div id="inputtype_u2_1_cq_bb_meas_circ_2_1" class="capa_inputtype">
<div class="drag_and_drop_problem_div" id="drag_and_drop_div_u2_1_cq_bb_meas_circ_2_1" data-plain-id="u2_1_cq_bb_meas_circ_2_1">
</div>
<div class="drag_and_drop_problem_json" id="drag_and_drop_json_u2_1_cq_bb_meas_circ_2_1" style="display:none;">{"label_bg_color": "rgb(222, 139, 238)", "draggables": [{"label": "", "can_reuse": "true", "id": "H", "target_fields": [], "icon": "/assets/courseware/v1/46fc29c9393a215ff30b17be7bb039af/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/images_U2L1_cq_bb_meas_circ_U2L1_cq_bb_meas_circ_dnd_label1.png"}, {"label": "", "can_reuse": "true", "id": "I", "target_fields": [], "icon": "/assets/courseware/v1/198733eb9100a754735a8b63967b6818/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/images_U2L1_cq_bb_meas_circ_U2L1_cq_bb_meas_circ_dnd_label2.png"}], "one_per_target": "true", "target_outline": "false", "targets": [{"id": "1", "w": "117", "h": "82", "y": "22", "x": "143"}, {"id": "2", "w": "117", "h": "82", "y": "22", "x": "472"}, {"id": "3", "w": "117", "h": "82", "y": "202", "x": "143"}, {"id": "4", "w": "117", "h": "82", "y": "202", "x": "472"}], "base_image": "/assets/courseware/v1/b470b44a99b29d6dde4b1b1004409ae2/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/images_U2L1_cq_bb_meas_circ_U2L1_cq_bb_meas_circ_dnd.png"}</div>
<div class="script_placeholder" data-src="/static/js/capa/drag_and_drop.a31124208b9b.js"/>
<div class="unanswered" id="status_u2_1_cq_bb_meas_circ_2_1">
<input type="text" name="input_u2_1_cq_bb_meas_circ_2_1" id="input_u2_1_cq_bb_meas_circ_2_1" aria-describedby="answer_u2_1_cq_bb_meas_circ_2_1" value="" style="display:none;"/>
<p class="indicator-container drag-and-drop--status" aria-describedby="input_u2_1_cq_bb_meas_circ_2_1">
<span class="status unanswered" id="status_u2_1_cq_bb_meas_circ_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</p>
<p id="answer_u2_1_cq_bb_meas_circ_2_1" class="answer"/>
</div>
</div></div>
<div class="solution-span">
<span id="solution_u2_1_cq_bb_meas_circ_solution_1"/>
</div></span>
<p>
<div class="solution-span">
<span id="solution_u2_1_cq_bb_meas_circ_solution_2"/>
</div></p>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="Bell basis measurement circuit" />
<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_u2_1_cq_bb_meas_circ" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_u2_1_cq_bb_meas_circ">
<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="u2_1_cq_bb_meas_circ-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="u2_1_cq_bb_meas_circ-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="u2_1_cq_bb_meas_circ-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.2x+1T2018+type@html+block@site_search_box1">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box1" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@Quantum_teleportation_-_full_protocol_and_quantum_circuit" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">Quantum teleportation - full protocol and quantum circuit</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1e">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1e" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum teleportation - full protocol and quantum circuit</h3>
<div
id="video_U2L1e"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1e/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:DuUpnxgQ1Vk", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1e/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1e/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1e/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1e"></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.2x+1T2018+type@html+block@site_search_box5">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box5" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@Quantum_teleportation_-_quantum_circuit_analysis_I" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">Quantum teleportation - quantum circuit analysis I</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1f">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1f" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum teleportation - quantum circuit analysis I</h3>
<div
id="video_U2L1f"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1f/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:i8l9qrXJufc", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1f/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1f/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1f/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1f"></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.2x+1T2018+type@html+block@site_search_box6">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box6" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@Quantum_teleportation_-_quantum_circuit_analysis_II" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">Quantum teleportation - quantum circuit analysis II</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1g">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1g" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum teleportation - quantum circuit analysis II</h3>
<div
id="video_U2L1g"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1g/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:NaLXZkiOiR4", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1g/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1g/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1g/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1g"></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.2x+1T2018+type@html+block@site_search_box7">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box7" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@CQ_Teleportation_circuit" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">CQ: Teleportation circuit</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_teleport_circ">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-has-score="True" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_teleport_circ" data-block-type="problem" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_u2_1_cq_teleport_circ" class="problems-wrapper" role="group"
aria-labelledby="u2_1_cq_teleport_circ-problem-title"
data-problem-id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_teleport_circ" data-url="/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_teleport_circ/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="u2_1_cq_teleport_circ-problem-title" aria-describedby="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_teleport_circ-problem-progress" tabindex="-1">
Teleportation circuit
</h3>
<div class="problem-progress" id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_teleport_circ-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>
Complete the following quantum circuit such that the output state [mathjaxinline]|\chi \rangle[/mathjaxinline] ends up being the input [mathjaxinline]|\psi \rangle[/mathjaxinline], and the two measured qubits give completely random classical outputs: </p>
<span>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div id="inputtype_u2_1_cq_teleport_circ_2_1" class="capa_inputtype">
<div class="drag_and_drop_problem_div" id="drag_and_drop_div_u2_1_cq_teleport_circ_2_1" data-plain-id="u2_1_cq_teleport_circ_2_1">
</div>
<div class="drag_and_drop_problem_json" id="drag_and_drop_json_u2_1_cq_teleport_circ_2_1" style="display:none;">{"label_bg_color": "rgb(222, 139, 238)", "draggables": [{"label": "", "can_reuse": "true", "id": "Z", "target_fields": [], "icon": "/assets/courseware/v1/78703ede6b497ad766c4c0865094bb6b/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/images_U2L1_cq_teleport_circ_U2L1_cq_teleport_circ_dnd_label1.png"}, {"label": "", "can_reuse": "true", "id": "X", "target_fields": [], "icon": "/assets/courseware/v1/cee89798a2fbf10766be54cd7e9cbb8e/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/images_U2L1_cq_teleport_circ_U2L1_cq_teleport_circ_dnd_label2.png"}, {"label": "", "can_reuse": "true", "id": "H", "target_fields": [], "icon": "/assets/courseware/v1/7e875589f3c42735f6674d775d02e01a/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/images_U2L1_cq_teleport_circ_U2L1_cq_teleport_circ_dnd_label3.png"}], "one_per_target": "true", "target_outline": "false", "targets": [{"id": "3", "w": "84", "h": "59", "y": "15", "x": "279"}, {"id": "4", "w": "83", "h": "59", "y": "134", "x": "98"}, {"id": "2", "w": "84", "h": "58", "y": "253", "x": "422"}, {"id": "1", "w": "83", "h": "58", "y": "253", "x": "556"}], "base_image": "/assets/courseware/v1/17781c098e36f8fd0c42742717ffd579/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/images_U2L1_cq_teleport_circ_U2L1_cq_teleport_circ_dnd.png"}</div>
<div class="script_placeholder" data-src="/static/js/capa/drag_and_drop.a31124208b9b.js"/>
<div class="unanswered" id="status_u2_1_cq_teleport_circ_2_1">
<input type="text" name="input_u2_1_cq_teleport_circ_2_1" id="input_u2_1_cq_teleport_circ_2_1" aria-describedby="answer_u2_1_cq_teleport_circ_2_1" value="" style="display:none;"/>
<p class="indicator-container drag-and-drop--status" aria-describedby="input_u2_1_cq_teleport_circ_2_1">
<span class="status unanswered" id="status_u2_1_cq_teleport_circ_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</p>
<p id="answer_u2_1_cq_teleport_circ_2_1" class="answer"/>
</div>
</div></div>
<div class="solution-span">
<span id="solution_u2_1_cq_teleport_circ_solution_1"/>
</div></span>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="Teleportation circuit" />
<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_u2_1_cq_teleport_circ" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_u2_1_cq_teleport_circ">
<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="u2_1_cq_teleport_circ-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="u2_1_cq_teleport_circ-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="u2_1_cq_teleport_circ-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.2x+1T2018+type@html+block@html_site_search_box2">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@html_site_search_box2" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@Quantum_superdense_coding_-_protocol_detail_and_analysis" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">Quantum superdense coding - protocol detail and analysis</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1h">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1h" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum superdense coding - protocol detail and analysis</h3>
<div
id="video_U2L1h"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1h/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:zcPS0lYwJa4", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1h/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1h/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1h/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1h"></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.2x+1T2018+type@html+block@site_search_box8">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box8" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@CQ_Superdense_coding_with_three_qubits" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">CQ: Superdense coding with three qubits</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_densetrit">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-has-score="True" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_densetrit" data-block-type="problem" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_u2_1_cq_densetrit" class="problems-wrapper" role="group"
aria-labelledby="u2_1_cq_densetrit-problem-title"
data-problem-id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_densetrit" data-url="/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_densetrit/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="u2_1_cq_densetrit-problem-title" aria-describedby="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_densetrit-problem-progress" tabindex="-1">
Superdense coding with three qubits
</h3>
<div class="problem-progress" id="block-v1:MITx+8.370.2x+1T2018+type@problem+block@u2_1_cq_densetrit-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>
In lecture, Prof. Shor describes how superdense coding allows Alice to send two bits of information to Bob, by transferring just one qubit to Bob, assuming this qubit is part of a previously shared EPR pair of qubits. </p>
<p>
Suppose Alice and Bob share three qubits, such as the Greenberger-Horne-Zeilinger (&#8220;GHZ") state </p>
<table id="a0000000007" class="eqnarray" cellspacing="0" cellpadding="7" width="100%" style="table-layout:auto">
<tr id="a0000000008">
<td style="width:40%; border:none">&#160;</td>
<td style="vertical-align:middle; text-align:right; border:none">
[mathjaxinline]\displaystyle \frac{|000\rangle + |111\rangle }{\sqrt{2}} \, ,[/mathjaxinline]
</td>
<td style="width:40%; border:none">&#160;</td>
<td class="eqnnum" style="width:20%; border:none;text-align:right">(1.5)</td>
</tr>
</table>
<p>
with Alice holding the first qubit, and Bob the second and third qubits. </p>
<p>
How many bits of classical information can Alice send to Bob, by sending her single qubit to Bob, and why? </p>
<p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div class="choicegroup capa_inputtype" id="inputtype_u2_1_cq_densetrit_2_1">
<fieldset aria-describedby="status_u2_1_cq_densetrit_2_1">
<div class="field">
<input type="checkbox" name="input_u2_1_cq_densetrit_2_1[]" id="input_u2_1_cq_densetrit_2_1_choice_0" class="field-input input-checkbox" value="choice_0"/><label id="u2_1_cq_densetrit_2_1-choice_0-label" for="input_u2_1_cq_densetrit_2_1_choice_0" class="response-label field-label label-inline" aria-describedby="status_u2_1_cq_densetrit_2_1">
<text>Only one bit of classical information, because of Holevo's theorem</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u2_1_cq_densetrit_2_1[]" id="input_u2_1_cq_densetrit_2_1_choice_1" class="field-input input-checkbox" value="choice_1"/><label id="u2_1_cq_densetrit_2_1-choice_1-label" for="input_u2_1_cq_densetrit_2_1_choice_1" class="response-label field-label label-inline" aria-describedby="status_u2_1_cq_densetrit_2_1">
<text>Two bits of information, because it's just like superdense coding, despite the extra qubit</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u2_1_cq_densetrit_2_1[]" id="input_u2_1_cq_densetrit_2_1_choice_2" class="field-input input-checkbox" value="choice_2"/><label id="u2_1_cq_densetrit_2_1-choice_2-label" for="input_u2_1_cq_densetrit_2_1_choice_2" class="response-label field-label label-inline" aria-describedby="status_u2_1_cq_densetrit_2_1">
<text>Three bits of information, because they share three qubits</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u2_1_cq_densetrit_2_1[]" id="input_u2_1_cq_densetrit_2_1_choice_3" class="field-input input-checkbox" value="choice_3"/><label id="u2_1_cq_densetrit_2_1-choice_3-label" for="input_u2_1_cq_densetrit_2_1_choice_3" class="response-label field-label label-inline" aria-describedby="status_u2_1_cq_densetrit_2_1">
<text>Four bits of information, because Bob holds two qubits</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_u2_1_cq_densetrit_2_1[]" id="input_u2_1_cq_densetrit_2_1_choice_4" class="field-input input-checkbox" value="choice_4"/><label id="u2_1_cq_densetrit_2_1-choice_4-label" for="input_u2_1_cq_densetrit_2_1_choice_4" class="response-label field-label label-inline" aria-describedby="status_u2_1_cq_densetrit_2_1">
<text>Eight bits of information, because three qubits can be in eight possible orthogonal states</text>
</label>
</div>
<span id="answer_u2_1_cq_densetrit_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_u2_1_cq_densetrit_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="Superdense coding with three qubits" />
<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_u2_1_cq_densetrit" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_u2_1_cq_densetrit">
<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="u2_1_cq_densetrit-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="u2_1_cq_densetrit-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="u2_1_cq_densetrit-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.2x+1T2018+type@html+block@html_site_search_box3">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@html_site_search_box3" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@Optimality_of_superdense_coding_and_teleportation" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">Optimality of superdense coding and teleportation</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1j">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1j" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Optimality of superdense coding and teleportation</h3>
<div
id="video_U2L1j"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1j/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:DaS3MqVseDM", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1j/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1j/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1j/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1j"></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.2x+1T2018+type@html+block@site_search_box9">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box9" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@vertical+block@Quantum_interaction-free_measurements_-_bomb_detection" data-block-type="vertical" data-graded="True" data-init="VerticalStudentView" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<h2 class="hd hd-2 unit-title">Quantum interaction-free measurements - bomb detection</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1k">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1k" data-block-type="video" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum interaction-free measurements - bomb detection</h3>
<div
id="video_U2L1k"
class="video closed"
data-metadata='{"prioritizeHls": false, "sources": [], "autoplay": false, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "transcriptTranslationUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1k/handler/transcript/translation/__lang__", "speed": null, "generalSpeed": 1.0, "streams": "1.00:-hwWufcByJ4", "autoAdvance": false, "ytApiUrl": "https://www.youtube.com/iframe_api", "completionPercentage": 0.95, "start": 0.0, "savedVideoPosition": 0.0, "autohideHtml5": false, "saveStateEnabled": false, "recordedYoutubeIsAvailable": true, "publishCompletionUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1k/handler/publish_completion", "saveStateUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1k/handler/xmodule_handler/save_user_state", "poster": null, "duration": 0.0, "captionDataDir": null, "showCaptions": "true", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.370.2x+1T2018/xblock/block-v1:MITx+8.370.2x+1T2018+type@video+block@U2L1k/handler/transcript/available_translations", "ytTestTimeout": 1500, "transcriptLanguages": {"en": "English"}, "completionEnabled": false, "ytMetadataEndpoint": "", "end": 0.0}'
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="U2L1k"></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.2x+1T2018+type@html+block@site_search_box10">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-has-score="False" data-runtime-class="LmsRuntime" data-request-token="97463ba0682911ef85fa0214bd5530e3" data-usage-id="block-v1:MITx+8.370.2x+1T2018+type@html+block@site_search_box10" data-block-type="html" data-graded="True" data-init="XBlockToXModuleShim" data-course-id="course-v1:MITx+8.370.2x+1T2018" data-runtime-version="1">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.370.2x+1T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.370.2x+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.2x+1T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.370.2x+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