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.

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. Note that the order of the key-value pairs does NOT matter when comparing two objects.

executable_family Dataclass field
key_value_pairs Dataclass field

Methods

from_dict

View source

to_dict

View source

__eq__

View source

Return self==value.

executable_family Instance of NotImplementedType
key_value_pairs ()