|
470 | 470 | "cell_type": "markdown", |
471 | 471 | "metadata": {}, |
472 | 472 | "source": [ |
473 | | - "### Task 12*. Hardy state.\n", |
| 473 | + "*Can't come up with a solution? See the explained solution in the [Superposition Workbook](./Workbook_Superposition_Part2.ipynb#threestates-twoqubits).*" |
| 474 | + ] |
| 475 | + }, |
| 476 | + { |
| 477 | + "cell_type": "markdown", |
| 478 | + "metadata": {}, |
| 479 | + "source": [ |
| 480 | + "### <a name=\"hardy-state\"></a>Task 12*. Hardy state.\n", |
474 | 481 | "\n", |
475 | 482 | "**Input:** Two qubits in the $|00\\rangle$ state.\n", |
476 | 483 | "\n", |
|
500 | 507 | "cell_type": "markdown", |
501 | 508 | "metadata": {}, |
502 | 509 | "source": [ |
503 | | - "### Task 13. Superposition of $|0 \\dots 0\\rangle$ and the given bit string.\n", |
| 510 | + "*Can't come up with a solution? See the explained solution in the [Superposition Workbook](./Workbook_Superposition_Part2.ipynb#hardy-state).*" |
| 511 | + ] |
| 512 | + }, |
| 513 | + { |
| 514 | + "cell_type": "markdown", |
| 515 | + "metadata": {}, |
| 516 | + "source": [ |
| 517 | + "### <a name=\"superposition-of-zero-and-given-bit-string\"></a>Task 13. Superposition of $|0 \\dots 0\\rangle$ and the given bit string.\n", |
504 | 518 | "\n", |
505 | 519 | "**Inputs:** \n", |
506 | 520 | "\n", |
|
529 | 543 | "cell_type": "markdown", |
530 | 544 | "metadata": {}, |
531 | 545 | "source": [ |
532 | | - "### Task 14. Superposition of two bit strings.\n", |
| 546 | + "*Can't come up with a solution? See the explained solution in the [Superposition Workbook](./Workbook_Superposition_Part2.ipynb#superposition-of-zero-and-given-bit-string).*" |
| 547 | + ] |
| 548 | + }, |
| 549 | + { |
| 550 | + "cell_type": "markdown", |
| 551 | + "metadata": {}, |
| 552 | + "source": [ |
| 553 | + "### <a name=\"superposition-of-two-bit-strings\"></a>Task 14. Superposition of two bit strings.\n", |
533 | 554 | "\n", |
534 | 555 | "**Inputs:** \n", |
535 | 556 | "\n", |
|
560 | 581 | "cell_type": "markdown", |
561 | 582 | "metadata": {}, |
562 | 583 | "source": [ |
563 | | - "### Task 15*. Superposition of four bit strings.\n", |
| 584 | + "*Can't come up with a solution? See the explained solution in the [Superposition Workbook](./Workbook_Superposition_Part2.ipynb#superposition-of-two-bit-strings).*" |
| 585 | + ] |
| 586 | + }, |
| 587 | + { |
| 588 | + "cell_type": "markdown", |
| 589 | + "metadata": {}, |
| 590 | + "source": [ |
| 591 | + "### <a name=\"superposition-of-four-bit-strings\"></a>Task 15*. Superposition of four bit strings.\n", |
564 | 592 | "\n", |
565 | 593 | "**Inputs:** \n", |
566 | 594 | "\n", |
567 | 595 | "1. $N$ ($N \\ge 1$) qubits in the $|0 \\dots 0\\rangle$ state.\n", |
568 | | - "2. Four bit strings of length $N$, represented as `Bool[][]` `bits`. `bits` is an $4 \\times N$ which describes the bit strings as follows: `bits[i]` describes the `i`-th bit string and has $N$ elements. You are guaranteed that all four bit strings will be distinct.\n", |
| 596 | + "2. Four bit strings of length $N$, represented as `Bool[][]` `bits`. `bits` is an $4 \\times N$ array which describes the bit strings as follows: `bits[i]` describes the `i`-th bit string and has $N$ elements. You are guaranteed that all four bit strings will be distinct.\n", |
569 | 597 | "\n", |
570 | 598 | "**Goal:** Change the state of the qubits to an equal superposition of the four basis states given by the bit strings.\n", |
571 | 599 | "\n", |
|
595 | 623 | "cell_type": "markdown", |
596 | 624 | "metadata": {}, |
597 | 625 | "source": [ |
598 | | - "### Task 16**. W state on $2^k$ qubits.\n", |
| 626 | + "*Can't come up with a solution? See the explained solution in the [Superposition Workbook](./Workbook_Superposition_Part2.ipynb#superposition-of-four-bit-strings).*" |
| 627 | + ] |
| 628 | + }, |
| 629 | + { |
| 630 | + "cell_type": "markdown", |
| 631 | + "metadata": {}, |
| 632 | + "source": [ |
| 633 | + "### <a name=\"wstate-on-2k-qubits\"></a>Task 16**. W state on $2^k$ qubits.\n", |
599 | 634 | "\n", |
600 | 635 | "**Input:** $N = 2^k$ qubits in the $|0 \\dots 0\\rangle$ state.\n", |
601 | 636 | "\n", |
|
627 | 662 | "cell_type": "markdown", |
628 | 663 | "metadata": {}, |
629 | 664 | "source": [ |
630 | | - "### Task 17**. W state on an arbitrary number of qubits.\n", |
| 665 | + "*Can't come up with a solution? See the explained solution in the [Superposition Workbook](./Workbook_Superposition_Part2.ipynb#wstate-on-2k-qubits).*" |
| 666 | + ] |
| 667 | + }, |
| 668 | + { |
| 669 | + "cell_type": "markdown", |
| 670 | + "metadata": {}, |
| 671 | + "source": [ |
| 672 | + "### <a name=\"wstate-on-arbitray-number-of-qubits\"></a>Task 17**. W state on an arbitrary number of qubits.\n", |
631 | 673 | "\n", |
632 | 674 | "**Input:** $N$ qubits in the $|0 \\dots 0\\rangle$ state ($N$ is not necessarily a power of 2).\n", |
633 | 675 | "\n", |
|
654 | 696 | " // ...\n", |
655 | 697 | "}" |
656 | 698 | ] |
| 699 | + }, |
| 700 | + { |
| 701 | + "cell_type": "markdown", |
| 702 | + "metadata": {}, |
| 703 | + "source": [ |
| 704 | + "*Can't come up with a solution? See the explained solution in the [Superposition Workbook](./Workbook_Superposition_Part2.ipynb#wstate-on-arbitray-number-of-qubits).*" |
| 705 | + ] |
657 | 706 | } |
658 | 707 | ], |
659 | 708 | "metadata": { |
|
666 | 715 | "file_extension": ".qs", |
667 | 716 | "mimetype": "text/x-qsharp", |
668 | 717 | "name": "qsharp", |
669 | | - "version": "0.4" |
| 718 | + "version": "0.10" |
670 | 719 | } |
671 | 720 | }, |
672 | 721 | "nbformat": 4, |
|
0 commit comments