QuantumLearning/notebooks/foundations/module_01_principles_and_circuit_literacy/problems.ipynb

657 lines
33 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #2563eb; background:#dbeafe; color:#1e3a8a; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>META READING</strong> · Difficulty 1/10 · Notebook-level rule, objective, or usage guidance.\n",
"</div>\n",
"\n",
"# Principles and Circuit Literacy Problems\n",
"\n",
"This notebook is the retrieval and diagnosis layer of the module. The lecture and lab make ideas feel familiar. The problems notebook asks whether those ideas are actually available without the notebook whispering the answer to you.\n"
],
"id": "631f1164"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #2563eb; background:#dbeafe; color:#1e3a8a; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>META READING</strong> · Difficulty 1/10 · Official walkthrough guardrail.\n",
"</div>\n",
"\n",
"<!-- COURSE_NAV_TOP -->\n",
"## Mainline Navigation\n",
"\n",
"Step 5 of 59. Follow the official walkthrough in order.\n",
"\n",
"Previous notebook: [Principles and Circuit Literacy Lab](lab.ipynb)\n",
"\n",
"Next notebook: [Principles and Circuit Literacy Studio](studio.ipynb)\n",
"\n",
"Rule: complete the mandatory cells in this notebook before you open the next one.\n"
],
"id": "5949afed"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #2563eb; background:#dbeafe; color:#1e3a8a; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>META READING</strong> · Difficulty 1/10 · Notebook-level rule, objective, or usage guidance.\n",
"</div>\n",
"\n",
"## How To Use This Notebook\n",
"\n",
"Do not click answers casually. Treat the multiple-choice blocks as retrieval tests. If a question feels surprisingly hard, that is exactly the point. Weakness discovered now is cheap. Weakness discovered during later algorithmic or hardware-aware modules is expensive.\n",
"\n",
"Also notice that the problems here are not only about vocabulary. Some target mechanism, some target interpretation, and some target debugging language. That mix is intentional because professional circuit literacy is not one skill.\n"
],
"id": "fbff6bbb"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #2563eb; background:#dbeafe; color:#1e3a8a; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>META READING</strong> · Difficulty 1/10 · Notebook-level rule, objective, or usage guidance.\n",
"</div>\n",
"\n",
"## Why Retrieval Matters More Than It Feels Like It Should\n",
"\n",
"Recognition is cheap. Retrieval is expensive. A learner can read a paragraph, nod along, and still be unable to produce the same distinction five minutes later without support. Engineering does not reward recognition nearly as much as it rewards availability under pressure. You need the right distinction at the moment a circuit surprises you, a review comment lands, or a design choice must be defended. That is why this notebook exists.\n",
"\n",
"Good retrieval practice does not merely ask factual trivia. It asks questions that expose unstable edges in the learners model. That is why the problem sets mix vocabulary, mechanism, interpretation, and critique.\n"
],
"id": "cfa5070f"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #2563eb; background:#dbeafe; color:#1e3a8a; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>META READING</strong> · Difficulty 1/10 · Notebook-level rule, objective, or usage guidance.\n",
"</div>\n",
"\n",
"## How To Read Your Own Mistakes\n",
"\n",
"A missed question does not always mean the same thing. Sometimes it means you forgot a term. Sometimes it means your mental picture is wrong. Sometimes it means two ideas that sounded similar in the lecture are not yet separated cleanly in your head. Good self-study depends on learning to distinguish these cases. If you miss a vocabulary question, reread the definitions. If you miss a mechanism question, redraw the circuit story. If you miss an interpretation question, compare the same circuit under two different measurement choices. The course becomes more efficient when your response to error is calibrated rather than generic.\n",
"\n",
"The same principle applies to confidence. A correct answer obtained with hesitation still tells you something useful. It means the concept may be present but not yet fluent. Fluency matters because later modules will spend that conceptual budget quickly.\n"
],
"id": "d4808b4c"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #2563eb; background:#dbeafe; color:#1e3a8a; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>META READING</strong> · Difficulty 1/10 · Notebook-level rule, objective, or usage guidance.\n",
"</div>\n",
"\n",
"## The Role Of The Problems Notebook In The Full Bundle\n",
"\n",
"The lecture gives you the clean explanation. The lab lets you test that explanation against controlled change. The problems notebook checks whether the explanation is now portable enough to survive away from its original context. That portability is what matters for later work. When you encounter oracles, QFT layers, or hardware-aware redesigns, nobody will stop the notebook every line and remind you of the basic distinctions. Those distinctions need to already be available.\n",
"\n",
"This is why a problems notebook is not just an assessment add-on. It is a transfer device. It reveals whether the earlier parts of the module created a capability that can be carried forward or merely an experience that felt understandable in the moment.\n"
],
"id": "ad6ede24"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "mandatory",
"ql_role": "setup"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #6b7280; background:#e5e7eb; color:#111827; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY SETUP</strong> · Difficulty 1/10 · Environment, import, or helper cell required by the notebook.\n",
"</div>\n"
],
"id": "86ac463e"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from pathlib import Path\n",
"import sys\n",
"\n",
"project_root = Path.cwd().resolve()\n",
"while not (project_root / \"pyproject.toml\").exists():\n",
" if project_root.parent == project_root:\n",
" raise RuntimeError(\"Could not locate the project root from this notebook.\")\n",
" project_root = project_root.parent\n",
"\n",
"src_path = project_root / \"src\"\n",
"if str(src_path) not in sys.path:\n",
" sys.path.insert(0, str(src_path))\n"
],
"id": "30dd0fcd"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "mandatory",
"ql_role": "setup"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #6b7280; background:#e5e7eb; color:#111827; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY SETUP</strong> · Difficulty 1/10 · Environment, import, or helper cell required by the notebook.\n",
"</div>\n"
],
"id": "8ae7d676"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from quantum_learning import (\n",
" bell_circuit,\n",
" counts_to_probabilities,\n",
" draw_circuit,\n",
" editable_circuit_lab,\n",
" load_curriculum,\n",
" plot_counts,\n",
" quiz_block,\n",
" reflection_box,\n",
" simulate_counts,\n",
" statevector_probabilities,\n",
" step_reference_table,\n",
")\n"
],
"id": "3943d6c3"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY READING</strong> · Difficulty 2/10 · Official walkthrough reading cell.\n",
"</div>\n",
"\n",
"## Problem Set A\n",
"\n",
"Answer these from understanding, not from rhythm or familiarity. If two options sound almost correct, figure out which distinction the question is trying to expose.\n"
],
"id": "1c8787ef"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "mandatory",
"ql_role": "test"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY TEST</strong> · Difficulty 3/10 · Official walkthrough multiple-choice test.\n",
"</div>\n"
],
"id": "a72df115"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"quiz_block([{'prompt': 'Which statement best distinguishes superposition from classical ignorance in this course?', 'options': ['Superposition is just not knowing which classical value is present', 'Superposition requires amplitude and phase language, not just hidden classical values', 'They are the same idea described by different communities'], 'correct_index': 1, 'explanation': 'The course insists on the amplitude-and-phase distinction rather than collapsing quantum reasoning into classical uncertainty.'}, {'prompt': 'Why is a barrier sometimes pedagogically useful?', 'options': ['It changes the quantum state substantially', 'It marks conceptual checkpoints in a circuit story', 'It is required before every measurement'], 'correct_index': 1, 'explanation': 'The barrier is often a reading aid that marks stages in the explanation.'}, {'prompt': 'What does the histogram of a measured circuit tell you directly?', 'options': ['The exact pre-measurement statevector', 'The empirical distribution produced by the chosen measurement question', 'The coupling map of the backend'], 'correct_index': 1, 'explanation': 'Counts summarize answers to the chosen measurement question, not the full underlying state by themselves.'}], heading='Problem Set A')\n"
],
"id": "2fe99306"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY READING</strong> · Difficulty 2/10 · Official walkthrough reading cell.\n",
"</div>\n",
"\n",
"## Problem Set B\n",
"\n",
"Answer these from understanding, not from rhythm or familiarity. If two options sound almost correct, figure out which distinction the question is trying to expose.\n"
],
"id": "7ec7aca7"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "mandatory",
"ql_role": "test"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY TEST</strong> · Difficulty 3/10 · Official walkthrough multiple-choice test.\n",
"</div>\n"
],
"id": "2d739bba"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"quiz_block([{'prompt': 'What is the most dangerous beginner misreading of CNOT in an entangling circuit?', 'options': ['Treating it as a classical copy operation with no dependence on context', 'Thinking it always increases circuit depth', 'Assuming it cannot be simulated locally'], 'correct_index': 0, 'explanation': 'The gates meaning depends on the prepared input, not just on its classical truth-table summary.'}, {'prompt': 'Why do we ask for predictions before running the code?', 'options': ['Because predictions make the simulator faster', 'Because wrong predictions reveal the exact point where understanding is unstable', 'Because the notebook should avoid plotting too often'], 'correct_index': 1, 'explanation': 'Prediction creates diagnostic value when the result disagrees with your model.'}, {'prompt': 'Which description of measurement is most aligned with this module?', 'options': ['Measurement is a neutral camera that simply reads whatever is already there', 'Measurement is the final irreversible question chosen by the circuit designer', 'Measurement is mostly a plotting convenience for notebooks'], 'correct_index': 1, 'explanation': 'The chosen basis and readout structure determine which question is being asked.'}], heading='Problem Set B')\n"
],
"id": "603983df"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY READING</strong> · Difficulty 2/10 · Official walkthrough reading cell.\n",
"</div>\n",
"\n",
"## Problem Set C\n",
"\n",
"Answer these from understanding, not from rhythm or familiarity. If two options sound almost correct, figure out which distinction the question is trying to expose.\n"
],
"id": "6c5a8fa0"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "mandatory",
"ql_role": "test"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY TEST</strong> · Difficulty 3/10 · Official walkthrough multiple-choice test.\n",
"</div>\n"
],
"id": "81b9a6e6"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"quiz_block([{'prompt': 'If a circuit prepares strong correlation but your counts disagree strongly with the intended story, what should you inspect first in this module?', 'options': ['Whether the register mapping, basis rotation, or measurement wiring changed the question', 'Only the color theme of the notebook', 'Whether the Hadamard symbol is drawn correctly'], 'correct_index': 0, 'explanation': 'The first debugging step is to inspect the question being asked, not to assume the preparation story survived unchanged.'}, {'prompt': 'What does it mean to own a circuit rather than merely see it?', 'options': ['You can execute it on your machine', 'You can reconstruct the design intention, alter it deliberately, and explain what changed', 'You can recognize the gate icons quickly'], 'correct_index': 1, 'explanation': 'Ownership means explanatory and design control, not simple familiarity.'}, {'prompt': 'Why is the Bell circuit used repeatedly in this module?', 'options': ['Because repetition around a sharp mechanism is stronger than shallow novelty', 'Because no other circuits exist at this level', 'Because Qiskit only supports two-qubit examples in beginner notebooks'], 'correct_index': 0, 'explanation': 'A recurring anchor example lets the same idea be revisited through richer lenses.'}], heading='Problem Set C')\n"
],
"id": "dcbb1568"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY READING</strong> · Difficulty 2/10 · Official walkthrough reading cell.\n",
"</div>\n",
"\n",
"## Problem Set D\n",
"\n",
"Answer these from understanding, not from rhythm or familiarity. If two options sound almost correct, figure out which distinction the question is trying to expose.\n"
],
"id": "95d980ec"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "mandatory",
"ql_role": "test"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY TEST</strong> · Difficulty 3/10 · Official walkthrough multiple-choice test.\n",
"</div>\n"
],
"id": "94a9fcc5"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"quiz_block([{'prompt': 'What is the best reason to annotate code with numbered reference markers?', 'options': ['To force translation between source code, circuit picture, and conceptual explanation', 'To reduce file size', 'To satisfy a Jupyter formatting requirement'], 'correct_index': 0, 'explanation': 'The markers make cross-representation reading deliberate instead of accidental.'}, {'prompt': 'Why does the course separate lecture, lab, problems, and studio?', 'options': ['Because one notebook cannot adequately train reading, manipulation, retrieval, and design at the same time', 'Because Jupyter does not allow long notebooks', 'Because the user asked for more files'], 'correct_index': 0, 'explanation': 'Different notebook types carry different pedagogical burdens.'}, {'prompt': 'What should happen after you miss a multiple-choice question in this course?', 'options': ['You should ignore it because the code matters more', 'You should use it to locate the exact distinction the prose or circuit story must reinforce', 'You should skip the rest of the module'], 'correct_index': 1, 'explanation': 'Missed retrieval is a diagnostic event, not just a score event.'}], heading='Problem Set D')\n"
],
"id": "5af0fd4c"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY READING</strong> · Difficulty 2/10 · Official walkthrough reading cell.\n",
"</div>\n",
"\n",
"## Short Written Diagnostic\n",
"\n",
"Multiple choice is useful, but it is not enough. Write directly now. A strong answer should name the mechanism, not just the gate labels. If the sentence feels awkward to write, that awkwardness is a diagnostic gift.\n"
],
"id": "0fa65f5a"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY READING</strong> · Difficulty 2/10 · Official walkthrough reading cell.\n",
"</div>\n",
"\n",
"Written explanation is harder because it removes scaffolding. That is precisely why it matters. If you can select the right option but cannot write the mechanism in your own language, your understanding is still partly borrowed from the notebook. The goal here is to make it less borrowed and more owned.\n"
],
"id": "bb293885"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "mandatory",
"ql_role": "exercise"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY EXERCISE</strong> · Difficulty 3/10 · Official walkthrough runnable or written exercise.\n",
"</div>\n"
],
"id": "16f3fa60"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"reflection_box(\n",
" \"In two or three tight sentences, explain why removing the initial Hadamard from a Bell circuit changes more than just the first wire.\"\n",
")\n"
],
"id": "430bbb74"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY READING</strong> · Difficulty 2/10 · Official walkthrough reading cell.\n",
"</div>\n",
"\n",
"## Mini Debugging Prompt\n",
"\n",
"Imagine a peer tells you, “I inserted a Hadamard before measuring qubit 0, but I thought the Bell state would stay the same, so I expected the same counts.” Your task is not to mock the error. Your task is to diagnose it precisely. What sentence about measurement or basis did they fail to internalize?\n"
],
"id": "7f19a770"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "mandatory",
"ql_role": "exercise"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY EXERCISE</strong> · Difficulty 3/10 · Official walkthrough runnable or written exercise.\n",
"</div>\n"
],
"id": "c1288e5e"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"reflection_box(\n",
" \"Write the one sentence you would use to diagnose the peer's misunderstanding cleanly and respectfully.\"\n",
")\n"
],
"id": "abafb099"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY READING</strong> · Difficulty 2/10 · Official walkthrough reading cell.\n",
"</div>\n",
"\n",
"## Exit Standard\n",
"\n",
"You should now be able to answer: What is being prepared? What is being correlated? What question is being asked? What changed when the code changed? If those questions still feel slippery, revisit the lecture and the lab before you open the studio. The studio assumes you can retrieve the foundational language on demand.\n"
],
"id": "770545c3"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #15803d; background:#dcfce7; color:#14532d; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>MANDATORY READING</strong> · Difficulty 2/10 · Official walkthrough reading cell.\n",
"</div>\n",
"\n",
"Think of the problems notebook as a mirror rather than a gatekeeper. Its job is to show you the present shape of your understanding. If the reflection is weaker than you hoped, that is not a verdict on your ability. It is a map for the next repetition.\n"
],
"id": "415f3f70"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #2563eb; background:#dbeafe; color:#1e3a8a; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>META READING</strong> · Difficulty 1/10 · Official walkthrough guardrail.\n",
"</div>\n",
"\n",
"<!-- COURSE_NAV_BOTTOM -->\n",
"## What To Open Next\n",
"\n",
"Next notebook: [Principles and Circuit Literacy Studio](studio.ipynb)\n",
"\n",
"Official walkthrough rule: once every mandatory cell above is complete, open the next notebook. Anything below this cell is facultative.\n"
],
"id": "e0e389d0"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "facultative_zone",
"ql_track": "meta",
"ql_role": "reading",
"ql_difficulty": 1,
"ql_note": "Optional-zone boundary. The official walkthrough is already complete above."
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #2563eb; background:#dbeafe; color:#1e3a8a; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>META READING</strong> · Difficulty 1/10 · Optional-zone boundary. The official walkthrough is already complete above.\n",
"</div>\n",
"\n",
"<!-- QL_OPTIONAL_ZONE -->\n",
"## Facultative Extension Zone\n",
"\n",
"You have already completed the mandatory walkthrough for **Principles and Circuit Literacy Problems**. Everything below is optional. Use it only if you want deeper consolidation or extra transfer work.\n"
],
"id": "e692def4"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "facultative",
"ql_track": "facultative",
"ql_role": "reading",
"ql_difficulty": 4,
"ql_note": "Optional extension reading."
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #ea580c; background:#ffedd5; color:#9a3412; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>FACULTATIVE READING</strong> · Difficulty 4/10 · Optional extension reading.\n",
"</div>\n",
"\n",
"## Facultative Extension Reading\n",
"\n",
"Use this optional problems extension only if you want stronger diagnostic habits. In **Principles and Circuit Literacy Problems**, the useful move is not just to know the right answer; it is to record which wrong answer tempted you and what that says about your current mental model.\n"
],
"id": "d0f1c4cf"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "facultative",
"ql_role": "test"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #ea580c; background:#ffedd5; color:#9a3412; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>FACULTATIVE TEST</strong> · Difficulty 5/10 · Optional multiple-choice extension.\n",
"</div>\n"
],
"id": "ea9f3d32"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"ql_injected": "facultative",
"ql_track": "facultative",
"ql_role": "test",
"ql_difficulty": 5,
"ql_note": "Optional multiple-choice extension.",
"jupyter": {
"source_hidden": true
},
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"quiz_block([{'prompt': 'Why revisit a missed question in a facultative problems block?', 'options': ['To name the specific misconception that produced the miss', 'To memorize the right option letter only', 'To skip written explanation entirely'], 'correct_index': 0, 'explanation': 'The value is diagnostic precision, not rote recovery.'}, {'prompt': 'What should an optional error log contain?', 'options': ['The tempting wrong model and the corrected model', 'Only the final score', 'Only the notebook path'], 'correct_index': 0, 'explanation': 'The error log is useful when it captures the broken idea, not just the result.'}], heading='Facultative Extension Test')\n"
],
"id": "f8c16e66"
},
{
"cell_type": "markdown",
"metadata": {
"ql_injected": "badge",
"ql_track": "facultative",
"ql_role": "exercise"
},
"source": [
"<!-- QL_BADGE -->\n",
"<div style=\"padding:0.55rem 0.8rem; border-left:6px solid #ea580c; background:#ffedd5; color:#9a3412; border-radius:0.35rem; font-family:Helvetica, Arial, sans-serif; margin:0.15rem 0 0.85rem 0;\">\n",
"<strong>FACULTATIVE EXERCISE</strong> · Difficulty 6/10 · Optional written exercise.\n",
"</div>\n"
],
"id": "66e6a9d2"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"ql_injected": "facultative",
"ql_track": "facultative",
"ql_role": "exercise",
"ql_difficulty": 6,
"ql_note": "Optional written exercise.",
"jupyter": {
"source_hidden": true
},
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"reflection_box('Name one tempting wrong answer pattern from Principles and Circuit Literacy Problems and write the shortest correction that would stop you from repeating it.')\n"
],
"id": "9d30ec9f"
}
],
"metadata": {
"kernelspec": {
"display_name": "QuantumLearning (.venv)",
"language": "python",
"name": "quantum-learning"
},
"language_info": {
"name": "python",
"version": "3.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}