cirq_google.workflow.KeyValueExecutableSpec

A generic executable spec whose metadata is a list of key-value pairs.

Inherits From: ExecutableSpec

The key-value pairs define an implicit data schema. Consider defining a problem-specific subclass of ExecutableSpec instead of using this class to realize the benefits of having an explicit schema.

See Also:

KeyValueExecutableSpec.from_dict will use a dictionary to populate key_value_pairs.

executable_family A unique name to group executables.
key_value_pairs A tuple of key-value pairs. The keys should be strings but the values can be any immutable object.

executable_family Dataclass field
key_value_pairs Dataclass field

Methods

from_dict

View source

__eq__

executable_family Instance of NotImplementedType
key_value_pairs ()