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

[cirqflow] Provide concrete ExecutableSpec #4559

Merged
merged 5 commits into from Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions cirq-google/cirq_google/__init__.py
Expand Up @@ -120,6 +120,7 @@

from cirq_google.workflow import (
ExecutableSpec,
KeyValueExecutableSpec,
QuantumExecutable,
QuantumExecutableGroup,
BitstringsMeasurement,
Expand Down
1 change: 1 addition & 0 deletions cirq-google/cirq_google/json_resolver_cache.py
Expand Up @@ -44,4 +44,5 @@ def _class_resolver_dictionary() -> Dict[str, ObjectFactory]:
'cirq.google.BitstringsMeasurement': cirq_google.BitstringsMeasurement,
'cirq.google.QuantumExecutable': cirq_google.QuantumExecutable,
'cirq.google.QuantumExecutableGroup': cirq_google.QuantumExecutableGroup,
'cirq.google.KeyValueExecutableSpec': cirq_google.KeyValueExecutableSpec,
}
@@ -0,0 +1,10 @@
{
"cirq_type": "cirq.google.KeyValueExecutableSpec",
"executable_family": "cirq_google.algo_benchmarks.example",
"key_value_pairs": [
[
"name",
"example-program"
]
]
}
@@ -0,0 +1 @@
cirq_google.KeyValueExecutableSpec(executable_family='cirq_google.algo_benchmarks.example', key_value_pairs=(('name', 'example-program'),))