Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Conversation

@Chibikuri
Copy link
Contributor

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.

@CLAassistant
Copy link

CLAassistant commented Mar 21, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@attp attp left a 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": [
Copy link
Member

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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

theoin?

Copy link
Contributor Author

@Chibikuri Chibikuri Mar 27, 2019

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",
Copy link
Member

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.

Copy link
Contributor Author

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\">"
Copy link
Member

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",
Copy link
Member

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",
Copy link
Member

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.

@attp attp requested a review from rraymondhp March 27, 2019 23:16
@rraymondhp
Copy link
Contributor

Hi,
I wonder why there are two ipynb files of quantum_walk.ipynb?
Please remove this? https://github.com/Qiskit/qiskit-tutorials/blob/d1689c459fa8a66a9bda6eab41d375db95b15048/quantum_walk.ipynb

Copy link
Contributor

@rraymondhp rraymondhp left a 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.

@Chibikuri
Copy link
Contributor Author

Please remove the quantum_walk.ipynb at the top directory.

Thank you for telling me. I removed it.

@Chibikuri Chibikuri changed the title Implementation of quantum walk in qiskitcamp 2019. Implementation of quantum walk in qiskitcamp 2019 Apr 1, 2019
Copy link
Contributor

@rraymondhp rraymondhp left a 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.

@Chibikuri
Copy link
Contributor Author

Thanks.

@jaygambetta jaygambetta merged commit 4cb90c3 into Qiskit:master Apr 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants