<div class="xblock xblock-public_view xblock-public_view-vertical" data-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Complexity_theory_-_lecture_overview" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Complexity theory - lecture overview</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14a">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14a" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Complexity theory - lecture overview</h3>
<div
id="video_M2L14a"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14a/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14a/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14a/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14a/handler/transcript/translation/__lang__", "streams": "1.00:yuIbdZr5Dx8", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14a"></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.371.2x+2T2018+type@html+block@html_site_search_box1x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box1x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Complexity_of_counting_-_review" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Complexity of counting - review</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14b">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14b" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Complexity of counting - review</h3>
<div
id="video_M2L14b"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14b/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14b/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14b/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14b/handler/transcript/translation/__lang__", "streams": "1.00:h85wfhSeQzo", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14b"></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.371.2x+2T2018+type@html+block@html_site_search_box2x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box2x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Amplifying_approximate_counting_accuracy" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Amplifying approximate counting accuracy</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14c">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14c" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Amplifying approximate counting accuracy</h3>
<div
id="video_M2L14c"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14c/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14c/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14c/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14c/handler/transcript/translation/__lang__", "streams": "1.00:OoXpFKrRqe0", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14c"></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.371.2x+2T2018+type@html+block@html_site_search_box3x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box3x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@CQ_Approximate_counting" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">CQ: Approximate counting</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Approximate_counting">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-block-type="problem" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Approximate_counting" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="True" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_cq_M2L14_Approximate_counting" class="problems-wrapper" role="group"
aria-labelledby="cq_M2L14_Approximate_counting-problem-title"
data-problem-id="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Approximate_counting" data-url="/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Approximate_counting/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="cq_M2L14_Approximate_counting-problem-title" aria-describedby="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Approximate_counting-problem-progress" tabindex="-1">
Approximate counting
</h3>
<div class="problem-progress" id="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Approximate_counting-problem-progress"></div>
<div class="problem">
<div>
<p>
This is a concept question, provided to check your understanding of the previous lecture video clips. </p>
<p>
Which of the following are true? </p>
<p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div class="choicegroup capa_inputtype" id="inputtype_cq_M2L14_Approximate_counting_2_1">
<fieldset aria-describedby="status_cq_M2L14_Approximate_counting_2_1">
<div class="field">
<input type="checkbox" name="input_cq_M2L14_Approximate_counting_2_1[]" id="input_cq_M2L14_Approximate_counting_2_1_choice_0" class="field-input input-checkbox" value="choice_0"/><label id="cq_M2L14_Approximate_counting_2_1-choice_0-label" for="input_cq_M2L14_Approximate_counting_2_1_choice_0" class="response-label field-label label-inline" aria-describedby="status_cq_M2L14_Approximate_counting_2_1">
<text>Approximate Counting means counting within additive error.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_cq_M2L14_Approximate_counting_2_1[]" id="input_cq_M2L14_Approximate_counting_2_1_choice_1" class="field-input input-checkbox" value="choice_1"/><label id="cq_M2L14_Approximate_counting_2_1-choice_1-label" for="input_cq_M2L14_Approximate_counting_2_1_choice_1" class="response-label field-label label-inline" aria-describedby="status_cq_M2L14_Approximate_counting_2_1">
<text>The counting precision in the Approximate Counting procedure can be amplified by taking the OR of the boolean formula.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_cq_M2L14_Approximate_counting_2_1[]" id="input_cq_M2L14_Approximate_counting_2_1_choice_2" class="field-input input-checkbox" value="choice_2"/><label id="cq_M2L14_Approximate_counting_2_1-choice_2-label" for="input_cq_M2L14_Approximate_counting_2_1_choice_2" class="response-label field-label label-inline" aria-describedby="status_cq_M2L14_Approximate_counting_2_1">
<text>Exact Counting (as a decision problem) is captured by the class PP.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_cq_M2L14_Approximate_counting_2_1[]" id="input_cq_M2L14_Approximate_counting_2_1_choice_3" class="field-input input-checkbox" value="choice_3"/><label id="cq_M2L14_Approximate_counting_2_1-choice_3-label" for="input_cq_M2L14_Approximate_counting_2_1_choice_3" class="response-label field-label label-inline" aria-describedby="status_cq_M2L14_Approximate_counting_2_1">
<text>The ability to perform Approximate Counting implies the ability to solve problems in NP.</text>
</label>
</div>
<span id="answer_cq_M2L14_Approximate_counting_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_cq_M2L14_Approximate_counting_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="Approximate counting" />
<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_cq_M2L14_Approximate_counting" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_cq_M2L14_Approximate_counting">
<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="cq_M2L14_Approximate_counting-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="cq_M2L14_Approximate_counting-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="cq_M2L14_Approximate_counting-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>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Post-selection" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Post-selection</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14d">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14d" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Post-selection</h3>
<div
id="video_M2L14d"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14d/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14d/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14d/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14d/handler/transcript/translation/__lang__", "streams": "1.00:v5A8MfJNIx8", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14d"></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.371.2x+2T2018+type@html+block@html_site_search_box4x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box4x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@CQ_Post-selection" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">CQ: Post-selection</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Post_selection">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-block-type="problem" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Post_selection" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="True" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_cq_M2L14_Post_selection" class="problems-wrapper" role="group"
aria-labelledby="cq_M2L14_Post_selection-problem-title"
data-problem-id="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Post_selection" data-url="/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Post_selection/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="cq_M2L14_Post_selection-problem-title" aria-describedby="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Post_selection-problem-progress" tabindex="-1">
Post-selection
</h3>
<div class="problem-progress" id="block-v1:MITx+8.371.2x+2T2018+type@problem+block@cq_M2L14_Post_selection-problem-progress"></div>
<div class="problem">
<div>
<p>
This is a concept question, provided to check your understanding of the previous lecture video clips. </p>
<p>
Which of the following are true? </p>
<p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div class="choicegroup capa_inputtype" id="inputtype_cq_M2L14_Post_selection_2_1">
<fieldset aria-describedby="status_cq_M2L14_Post_selection_2_1">
<div class="field">
<input type="checkbox" name="input_cq_M2L14_Post_selection_2_1[]" id="input_cq_M2L14_Post_selection_2_1_choice_0" class="field-input input-checkbox" value="choice_0"/><label id="cq_M2L14_Post_selection_2_1-choice_0-label" for="input_cq_M2L14_Post_selection_2_1_choice_0" class="response-label field-label label-inline" aria-describedby="status_cq_M2L14_Post_selection_2_1">
<text>Quantum post-selection is the same as applying an arbitrary invertible operator on a quantum state.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_cq_M2L14_Post_selection_2_1[]" id="input_cq_M2L14_Post_selection_2_1_choice_1" class="field-input input-checkbox" value="choice_1"/><label id="cq_M2L14_Post_selection_2_1-choice_1-label" for="input_cq_M2L14_Post_selection_2_1_choice_1" class="response-label field-label label-inline" aria-describedby="status_cq_M2L14_Post_selection_2_1">
<text>The proof that PostBQP contains PP fails for PostBPP because we do not have interference.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_cq_M2L14_Post_selection_2_1[]" id="input_cq_M2L14_Post_selection_2_1_choice_2" class="field-input input-checkbox" value="choice_2"/><label id="cq_M2L14_Post_selection_2_1-choice_2-label" for="input_cq_M2L14_Post_selection_2_1_choice_2" class="response-label field-label label-inline" aria-describedby="status_cq_M2L14_Post_selection_2_1">
<text>Classical post-selection is the same as applying an arbitrary matrix with positive entries to the classical probability vector.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_cq_M2L14_Post_selection_2_1[]" id="input_cq_M2L14_Post_selection_2_1_choice_3" class="field-input input-checkbox" value="choice_3"/><label id="cq_M2L14_Post_selection_2_1-choice_3-label" for="input_cq_M2L14_Post_selection_2_1_choice_3" class="response-label field-label label-inline" aria-describedby="status_cq_M2L14_Post_selection_2_1">
<text>Post-selection is the same as taking a sub-matrix of a unitary or stochastic operation.</text>
</label>
</div>
<span id="answer_cq_M2L14_Post_selection_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_cq_M2L14_Post_selection_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="Post-selection" />
<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_cq_M2L14_Post_selection" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_cq_M2L14_Post_selection">
<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="cq_M2L14_Post_selection-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="cq_M2L14_Post_selection-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="cq_M2L14_Post_selection-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>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Quantum_supremacy_overview" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Quantum supremacy overview</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14e">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14e" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum supremacy overview</h3>
<div
id="video_M2L14e"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14e/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14e/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14e/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14e/handler/transcript/translation/__lang__", "streams": "1.00:uU8W9h8FiTo", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14e"></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.371.2x+2T2018+type@html+block@html_site_search_box5x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box5x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Quantum_supremacy_overview_-_discussion" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Quantum supremacy overview - discussion</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14f">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14f" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum supremacy overview - discussion</h3>
<div
id="video_M2L14f"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14f/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14f/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14f/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14f/handler/transcript/translation/__lang__", "streams": "1.00:0-1thZc10Z0", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14f"></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.371.2x+2T2018+type@html+block@html_site_search_box6x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box6x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Post-BPP_is_contained_in_Approximate_Counting" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Post-BPP is contained in Approximate Counting</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14g">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14g" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Post-BPP is contained in Approximate Counting</h3>
<div
id="video_M2L14g"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14g/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14g/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14g/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14g/handler/transcript/translation/__lang__", "streams": "1.00:aUjKKJFeoG0", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14g"></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.371.2x+2T2018+type@html+block@html_site_search_box7x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box7x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Approximate_Counting_is_contained_in_Post-BPP" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Approximate Counting is contained in Post-BPP</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14h">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14h" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Approximate Counting is contained in Post-BPP</h3>
<div
id="video_M2L14h"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14h/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14h/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14h/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14h/handler/transcript/translation/__lang__", "streams": "1.00:-z3ZYrR6Nck", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14h"></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.371.2x+2T2018+type@html+block@html_site_search_box8x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box8x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@PostBQP_is_equal_to_Exact_Counting_in_complexity" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">PostBQP is equal to Exact Counting in complexity</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14j">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14j" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">PostBQP is equal to Exact Counting in complexity</h3>
<div
id="video_M2L14j"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14j/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14j/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14j/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14j/handler/transcript/translation/__lang__", "streams": "1.00:ELEFjd_ozyM", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14j"></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.371.2x+2T2018+type@html+block@html_site_search_box9x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box9x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Quantum_post-selection" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Quantum post-selection</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14k">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14k" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Quantum post-selection</h3>
<div
id="video_M2L14k"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14k/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14k/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14k/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14k/handler/transcript/translation/__lang__", "streams": "1.00:UpbG65C2gss", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14k"></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.371.2x+2T2018+type@html+block@html_site_search_box10x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box10x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Exact_Counting_is_contained_in_PostBQP" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Exact Counting is contained in PostBQP</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14m">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14m" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Exact Counting is contained in PostBQP</h3>
<div
id="video_M2L14m"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14m/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14m/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14m/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14m/handler/transcript/translation/__lang__", "streams": "1.00:sVORivqAW64", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14m"></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.371.2x+2T2018+type@html+block@html_site_search_box11x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box11x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@What_kind_of_quantum_computer_is_necessary_for_quantum_supremacy_" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">What kind of quantum computer is necessary for quantum supremacy?</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14n">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14n" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">What kind of quantum computer is necessary for quantum supremacy?</h3>
<div
id="video_M2L14n"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14n/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14n/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 0.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14n/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14n/handler/transcript/translation/__lang__", "streams": "1.00:ibx6uwYvPjg", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14n"></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.371.2x+2T2018+type@html+block@html_site_search_box12x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box12x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@Classical_simulation_algorithms_for_quantum_computational_supremacy_experiments" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">Classical simulation algorithms for quantum computational supremacy experiments</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm2">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm2" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Classical simulation algorithms for quantum computational supremacy experiments</h3>
<div
id="video_M2L14_ibm2"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm2/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm2/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 290.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm2/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm2/handler/transcript/translation/__lang__", "streams": "1.00:3Gt37ljvdMw", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14_ibm2"></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.371.2x+2T2018+type@html+block@Ashley_Montanaro_on_quantum_supremacy">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@Ashley_Montanaro_on_quantum_supremacy" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<p>
Discussion by Ashley Montanaro (University of Bristol) about finding quantum algorithms which exceed classical algorithms in capability, presented at the 2018 IBM ThinkQ meeting. </p>
</div>
</div>
<div class="vert vert-2" data-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box13x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box13x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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-block-type="vertical" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@vertical+block@The_quest_towards_complex_quantum_capabilities" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="VerticalStudentView" data-request-token="57e33654043b11efa5770afff417eba9">
<h2 class="hd hd-2 unit-title">The quest towards complex quantum capabilities</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm1">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-block-type="video" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm1" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Perspective on quantum computing today - and the quest towards complex quantum capabilities</h3>
<div
id="video_M2L14_ibm1"
class="video closed"
data-metadata='{"transcriptLanguages": {"en": "English"}, "captionDataDir": null, "autoAdvance": false, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm1/handler/publish_completion", "transcriptLanguage": "en", "showCaptions": "true", "completionEnabled": false, "prioritizeHls": false, "sources": [], "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm1/handler/transcript/available_translations", "ytApiUrl": "https://www.youtube.com/iframe_api", "autohideHtml5": false, "start": 51.0, "generalSpeed": 1.0, "recordedYoutubeIsAvailable": true, "speed": null, "end": 0.0, "ytMetadataEndpoint": "", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "autoplay": false, "saveStateUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm1/handler/xmodule_handler/save_user_state", "saveStateEnabled": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.2x+2T2018/xblock/block-v1:MITx+8.371.2x+2T2018+type@video+block@M2L14_ibm1/handler/transcript/translation/__lang__", "streams": "1.00:iEo58BKgvXk", "completionPercentage": 0.95, "duration": 0.0, "lmsRootURL": "https://openlearninglibrary.mit.edu"}'
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="M2L14_ibm1"></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.371.2x+2T2018+type@html+block@Talia_Gershon_on_complex_quantum_computing">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@Talia_Gershon_on_complex_quantum_computing" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<p>
Discussion by IBM researcher, and MIT graduate Talia Gershon, on the quest towards complex quantum capabilities at IBM. </p>
</div>
</div>
<div class="vert vert-2" data-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box14x">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-block-type="html" data-runtime-class="LmsRuntime" data-usage-id="block-v1:MITx+8.371.2x+2T2018+type@html+block@html_site_search_box14x" data-course-id="course-v1:MITx+8.371.2x+2T2018" data-has-score="False" data-graded="True" data-runtime-version="1" data-init="XBlockToXModuleShim" data-request-token="57e33654043b11efa5770afff417eba9">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.2x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.2x+2T2018/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.371.2x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.2x+2T2018/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