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

added NamedQid and GridQid to the qudit concept page #3338

Merged
merged 3 commits into from
Sep 18, 2020

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Sep 18, 2020

Adds NamedQid and GridQid to the qudit concept page.

@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Sep 18, 2020
"While Cirq has the built-in qubit types, it also provides the corresponding Qid types: \n",
"\n",
"- `cirq.NamedQid`: To create a qutrit named 'a', specify the dimension with `cirq.NamedQid('a', dimension=3)`.\n",
"- `cirq.GridQid`: for example, to create a 2x2 grid of ququarts, use `cirq.GridQid.rect(2,2,dimension=4)`.\n",
Copy link
Collaborator

@viathor viathor Sep 18, 2020

Choose a reason for hiding this comment

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

nit: spaces needed after commas in the call to rect

"While Cirq has the built-in qubit types, it also provides the corresponding Qid types: \n",
"\n",
"- `cirq.NamedQid`: To create a qutrit named 'a', specify the dimension with `cirq.NamedQid('a', dimension=3)`.\n",
"- `cirq.GridQid`: for example, to create a 2x2 grid of ququarts, use `cirq.GridQid.rect(2,2,dimension=4)`.\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Remove "for example" and capitalize "to create" for consistency with the line above.

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Sep 18, 2020
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Sep 18, 2020
@CirqBot CirqBot merged commit 77eed43 into quantumlib:master Sep 18, 2020
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Sep 18, 2020
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

4 participants