|
493 | 493 | " <td style=\"text-align:center; border:1px solid\">$\\text{CNOT} = \\begin{bmatrix} 1 & 0 & 0 & 0 \\\\ 0 & 1 & 0 & 0 \\\\ 0 & 0 & 0 & 1 \\\\ 0 & 0 & 1 & 0 \\end{bmatrix}$</td>\n", |
494 | 494 | " <td style=\"text-align:center; border:1px solid\"><img src=\"./img/CNOTGateCircuit.png\"/></td> \n", |
495 | 495 | " </tr> \n", |
496 | | - "</table>\n", |
497 | | - "<center>The matrix and circuit representation of CNOT</center>\n", |
| 496 | + "</table> <br>\n", |
| 497 | + "<center>The matrix and circuit representation of CNOT</center><br>\n", |
498 | 498 | "\n", |
499 | 499 | "If we apply the CNOT gate to the state $\\frac{1}{\\sqrt2} (|00\\rangle + |10\\rangle)$, taking the first qubit as the control and the second one as target, we'll get exactly the desired goal state. \n", |
500 | 500 | "<img src=\"./img/Task6OutputHadamardasControl.png\" width=\"200\"/>\n", |
|
511 | 511 | " <tr>\n", |
512 | 512 | " <td style=\"text-align:left; border:1px solid\">1. Apply a Hadamard gate to the first qubit. <br/> 2. Applying a CNOT with first qubit as control and second qubit as target.</td>\n", |
513 | 513 | " <td style=\"text-align:center; border:1px solid; font-bold; font-size: 16px; \">$\\frac{1}{\\sqrt2} (|00\\rangle + |11\\rangle)$</td>\n", |
514 | | - " <td style=\"text-align:center; border:1px solid\"><img src=\"./img/Task6HadamardCNOTCircuit.PNG\"/></td>\n", |
| 514 | + " <td style=\"text-align:center; border:1px solid\"><img src=\"./img/Task6HadamardCNOTCircuit.png\"/></td>\n", |
515 | 515 | " </tr> \n", |
516 | 516 | "</table>\n", |
517 | 517 | "\n", |
|
617 | 617 | " <col width=50>\n", |
618 | 618 | " <col width=300>\n", |
619 | 619 | " <tr bgcolor=\"white\">\n", |
620 | | - " <td bgcolor=\"white\" style=\"text-align:center\"><img src=\"./img/Task6HadamardCNOTCircuit.PNG\"/></td>\n", |
| 620 | + " <td bgcolor=\"white\" style=\"text-align:center\"><img src=\"./img/Task6HadamardCNOTCircuit.png\"/></td>\n", |
621 | 621 | " <td bgcolor=\"white\" style=\"text-align:center;font-size: 30px\">$\\Longrightarrow$</td>\n", |
622 | 622 | " <td bgcolor=\"white\" style=\"text-align:center;font-size: 20px\">$\\frac{1}{\\sqrt2} \\big(|00\\rangle + |11\\rangle\\big)$</td>\n", |
623 | 623 | " </tr> \n", |
|
0 commit comments