Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Quantum Chess tutorial #3162

Merged
merged 3 commits into from
Jul 21, 2020

Conversation

dstrain115
Copy link
Collaborator

This tutorial will use quantum chess as a vehicle to
show how to:

  • Create circuits in cirq
  • Use post-selection
  • Add noise models
  • Do simple mitigation to mitigate noise
  • Decompose circuits
  • Map qubits

This PR also adds the supporting images into _static.

This tutorial will use quantum chess as a vehicle to
show how to:

- Create circuits in cirq
- Use post-selection
- Add noise models
- Do simple mitigation to mitigate noise
- Decompose circuits
- Map qubits

This PR also adds the supporting images into _static.
@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Jul 21, 2020
Copy link
Collaborator

@viathor viathor left a comment

Choose a reason for hiding this comment

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

Very nice!

" mapping: Dict[cirq.Qid, cirq.GridQubit],\n",
" available_qubits: Set[cirq.GridQubit],\n",
" graph: Dict[cirq.Qid, Iterable[cirq.Qid]]) -> bool:\n",
" \"\"\"Helper function to construct mapping.\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Optional nit: Per google python style guide, add one more new-line to leave a blank line between the first line of the docstring and the rest of it; same applies before Args: and before Returns: below.

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jul 21, 2020
@CirqBot
Copy link
Collaborator

CirqBot commented Jul 21, 2020

Automerge cancelled: A status check is failing.

@CirqBot CirqBot removed the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jul 21, 2020
@balopat
Copy link
Contributor

balopat commented Jul 21, 2020

Because Github Actions is currently unavailable, I ran all the checks on Win/Mac/Linux and they all passed.
Merging with admin right.

@balopat balopat merged commit a7b1317 into quantumlib:master Jul 21, 2020
tonybruguier pushed a commit to tonybruguier/Cirq that referenced this pull request Aug 23, 2020
This tutorial will use quantum chess as a vehicle to
show how to:

Create circuits in cirq
Use post-selection
Add noise models
Do simple mitigation to mitigate noise
Decompose circuits
Map qubits
This PR also adds the supporting images into _static.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants