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 #1566 from qiskit-community/main
Browse files Browse the repository at this point in the history
build site
  • Loading branch information
frankharkins committed Apr 6, 2023
2 parents 04aea69 + a8c5e4a commit 4518f9c
Show file tree
Hide file tree
Showing 12 changed files with 5,956 additions and 7,617 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -249,7 +249,7 @@ GEM
multipart-post (2.1.1)
namae (1.0.1)
nenv (0.3.0)
nokogiri (1.13.8)
nokogiri (1.13.10)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
notiffany (0.1.3)
Expand All @@ -263,7 +263,7 @@ GEM
coderay (~> 1.1.0)
method_source (~> 0.9.0)
public_suffix (3.1.1)
racc (1.6.0)
racc (1.6.1)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
Expand Down
2 changes: 1 addition & 1 deletion build.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

user=delapuente
org=qiskit-community
Expand Down
9,801 changes: 4,807 additions & 4,994 deletions content/ch-algorithms/deutsch-jozsa.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions content/ch-algorithms/quantum-counting.ipynb
Expand Up @@ -249,7 +249,7 @@
"source": [
"def qft(n):\n",
" \"\"\"Creates an n-qubit QFT circuit\"\"\"\n",
" circuit = QuantumCircuit(4)\n",
" circuit = QuantumCircuit(n)\n",
" def swap_registers(circuit, n):\n",
" for qubit in range(n//2):\n",
" circuit.swap(qubit, n-qubit-1)\n",
Expand Down Expand Up @@ -3288,7 +3288,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We can see two values stand out, having a much higher probability of measurement than the rest. These two values correspond to $e^{i\\theta}$ and $e^{-i\\theta}$, but we can’t see the number of solutions yet. We need to little more processing to get this information, so first let us get our output into something we can work with (an `int`).\n",
"We can see two values stand out, having a much higher probability of measurement than the rest. These two values correspond to $e^{i\\theta}$ and $e^{-i\\theta}$, but we can’t see the number of solutions yet. We need to do a little more processing to get this information, so first let us get our output into something we can work with (an `int`).\n",
"\n",
"We will get the string of the most probable result from our output data:"
]
Expand Down Expand Up @@ -3366,7 +3366,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"You may remember that we can get the angle $\\theta/2$ can from the inner product of $|s\\rangle$ and $|s’\\rangle$:\n",
"You may remember that we can get the angle $\\theta/2$ from the inner product of $|s\\rangle$ and $|s’\\rangle$:\n",
"\n",
"![image3](images/quantum_counting3.svg)\n",
"\n",
Expand Down
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
1,965 changes: 234 additions & 1,731 deletions content/ch-quantum-hardware/calibrating-qubits-pulse.ipynb

Large diffs are not rendered by default.

0 comments on commit 4518f9c

Please sign in to comment.