-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Implementation of quantum walk in qiskitcamp 2019 #573
Conversation
attp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work from Qiskit Camp. See requested changes throughout the notebook. Most important being the removal of your IBM Q access token from the code.
| ] | ||
| } | ||
| ], | ||
| "source": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove these install lines and add the Qiskit logo as per the other community tutorials. <img src="../../../images/qiskit-heading.png" alt="Note: In order for images to show up in this jupyter notebook you need to select File => Trusted Notebook" width="500 px" align="left">
| "metadata": {}, | ||
| "source": [ | ||
| "## Quantum walk \n", | ||
| "Quantum walk is \"quantum version\" of random walk. This means theoin function can be Unitary gate($U(2)$) which is non-random and reversible. \n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theoin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, this is just typo.
theoin -> the coin
| "## Quantum walk \n", | ||
| "Quantum walk is \"quantum version\" of random walk. This means theoin function can be Unitary gate($U(2)$) which is non-random and reversible. \n", | ||
| "\n", | ||
| "$p+q = U ∈ U(2)$. \n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi: this equation doesn't render properly in github. up to you if you want to fix it or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modified it, thanks.
| "cell_type": "markdown", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "<img src=\"../images/quantum_walk/whole_circuit.jpg\" alt=\"Note: In order for images to show up in this jupyter notebook you need to select File => Trusted Notebook\" width=\"300 px\" align=\"center\">" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
300px width is a little small to read the contents of this image.
| } | ||
| ], | ||
| "source": [ | ||
| "IBMQ.load_accounts()\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use IBMQ.load_accounts(hub=None) since most viewers will not have hub access.
| ], | ||
| "source": [ | ||
| "IBMQ.load_accounts()\n", | ||
| "#IBMQ.enable_account(\"53a94ea70a24c85cfac5f5e87e369d813f5efff70fed9c973b2b3637be5b2e0378da1921b5bbd786574e74d44dd8a64dda3095dbbda528b414c1b567476a87b2\")\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment, since I believe this is one of your IBM Q access tokens. You should regenerate this as soon as possible for security.
|
Hi, |
rraymondhp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the quantum_walk.ipynb at the top directory.
Thank you for telling me. I removed it. |
rraymondhp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the great contribution! I think it should be okay to accept the PR.
|
Thanks. |
Summary
This is an example of quantum walk on cycle graph with qiskit. This was implemented in qiskitcamp 2019 in Vermont.(contributors: Jordan Kemp, Desiree Vogt-Lee, Shin Nishio, Tanisha Bassan, me )
Details and comments
We referred to this paper. In this example, we implemented quantum walk on cycle graph with 8 lattice points and any steps. We use Hadamard coin as a coin gate.