Skip to content

Add Quantum Engine Support for InternalGate #6613

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cirq-google/cirq_google/api/v2/device.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ message GateSpecification {
Wait wait = 11;
FSimViaModel fsim_via_model = 12;
CZPowGate cz_pow_gate = 13;
InternalGate internal_gate = 14;
}

// Gate types available to Google devices.
Expand All @@ -76,6 +77,9 @@ message GateSpecification {
message Wait {}
message FSimViaModel {}
message CZPowGate {}
// This gate gets mapped to the internal representation corresponding
// to <gate_module.gate_name>.
message InternalGate {}
}

message GateSet {
Expand Down
86 changes: 44 additions & 42 deletions cirq-google/cirq_google/api/v2/device_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 19 additions & 3 deletions cirq-google/cirq_google/api/v2/device_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions cirq-google/cirq_google/devices/grid_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ class _GateRepresentations:
gate_spec_name='fsim_via_model',
supported_gates=[cirq.GateFamily(cirq.FSimGate, tags_to_accept=[ops.FSimViaModelTag()])],
),
_GateRepresentations(
gate_spec_name='internal_gate', supported_gates=[cirq.GateFamily(ops.InternalGate)]
),
]


Expand Down
Loading