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

Add Sycamore23 device #2547

Merged
merged 15 commits into from
Nov 21, 2019
Merged

Add Sycamore23 device #2547

merged 15 commits into from
Nov 21, 2019

Conversation

dstrain115
Copy link
Collaborator

  • 23 qubit subset of the Sycamore 54 qubit layout

- 23 qubit subset of the Sycamore 54 qubit layout
@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Nov 14, 2019
cirq/google/devices/known_devices.py Outdated Show resolved Hide resolved
cirq/google/devices/known_devices.py Outdated Show resolved Hide resolved
cg.Sycamore.validate_operation(syc)
cg.Sycamore.validate_operation(sqrt_iswap)
device.validate_operation(syc)
device.validate_operation(sqrt_iswap)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you need a test for invalid operations to catch the typos mentioned earlier.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. Thanks for the good catch! That will teach me for hurrying out PRs as I am heading out for the evening!

dstrain115 and others added 4 commits November 13, 2019 19:22
Co-Authored-By: Casey Duckering <cduck@users.noreply.github.com>
Co-Authored-By: Casey Duckering <cduck@users.noreply.github.com>
@dstrain115
Copy link
Collaborator Author

dstrain115 commented Nov 14, 2019 via email

@cduck
Copy link
Collaborator

cduck commented Nov 14, 2019

@dstrain115 I meant to comment on 2550.

@@ -17,6 +17,7 @@
import cirq
import cirq.google as cg
import cirq.google.common_serializers as cgc
import cirq.google.devices.known_devices as cgdk
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this how we're supposed to use it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good question. I wasn't sure if we wanted to expose it in the package for cirq.google or not.

Any opinions?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I personally find the "use the first letter of each submodule" convention very obfuscating and would support any other convention that avoids it :)

The rest of cirq operates under the "put everything in the top-level namespace" convention

Copy link
Contributor

@Strilanc Strilanc Nov 15, 2019

Choose a reason for hiding this comment

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

We should expose Sycamore23 from cirq.google, but not from top-level cirq, as it is a google-specific device.

cirq.google.Sycamore23 same as cirq.google.Bristlecone.

You may abbreviate cirq.google to cg, I don't have strong opinions about that other than the confusion of it matching my initials.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@dstrain115
Copy link
Collaborator Author

Ping. Could I get approval on this in the next few days? I would like to commit this before my next import to google3, which I would like to do by the end of the week. Thanks.

@dstrain115 dstrain115 merged commit e76e36a into quantumlib:master Nov 21, 2019
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