Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1548 from william-cutler/main
Browse files Browse the repository at this point in the history
Fix typos in exercise function docstring
  • Loading branch information
frankharkins committed Mar 2, 2023
2 parents 1068eb7 + e16b2cd commit 272a3f9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions content/ch-labs/Lab01_QuantumCircuits.ipynb
Expand Up @@ -744,8 +744,8 @@
" \"\"\"An XOR gate.\n",
" \n",
" Parameters:\n",
" inpt1 (str): Input 1, encoded in qubit 0.\n",
" inpt2 (str): Input 2, encoded in qubit 1.\n",
" inp1 (str): Input 1, encoded in qubit 0.\n",
" inp2 (str): Input 2, encoded in qubit 1.\n",
" \n",
" Returns:\n",
" QuantumCircuit: Output XOR circuit.\n",
Expand Down Expand Up @@ -822,11 +822,11 @@
" \"\"\"An AND gate.\n",
" \n",
" Parameters:\n",
" inpt1 (str): Input 1, encoded in qubit 0.\n",
" inpt2 (str): Input 2, encoded in qubit 1.\n",
" inp1 (str): Input 1, encoded in qubit 0.\n",
" inp2 (str): Input 2, encoded in qubit 1.\n",
" \n",
" Returns:\n",
" QuantumCircuit: Output XOR circuit.\n",
" QuantumCircuit: Output AND circuit.\n",
" str: Output value measured from qubit 2.\n",
" \"\"\"\n",
" qc = QuantumCircuit(3, 1) \n",
Expand Down Expand Up @@ -895,8 +895,8 @@
" \"\"\"An NAND gate.\n",
" \n",
" Parameters:\n",
" inpt1 (str): Input 1, encoded in qubit 0.\n",
" inpt2 (str): Input 2, encoded in qubit 1.\n",
" inp1 (str): Input 1, encoded in qubit 0.\n",
" inp2 (str): Input 2, encoded in qubit 1.\n",
" \n",
" Returns:\n",
" QuantumCircuit: Output NAND circuit.\n",
Expand Down Expand Up @@ -968,11 +968,11 @@
" \"\"\"An OR gate.\n",
" \n",
" Parameters:\n",
" inpt1 (str): Input 1, encoded in qubit 0.\n",
" inpt2 (str): Input 2, encoded in qubit 1.\n",
" inp1 (str): Input 1, encoded in qubit 0.\n",
" inp2 (str): Input 2, encoded in qubit 1.\n",
" \n",
" Returns:\n",
" QuantumCircuit: Output XOR circuit.\n",
" QuantumCircuit: Output OR circuit.\n",
" str: Output value measured from qubit 2.\n",
" \"\"\"\n",
"\n",
Expand Down

0 comments on commit 272a3f9

Please sign in to comment.