View source on GitHub |
A wrapper around a list of ParamResolver
s.
Inherits From: Sweep
cirq.ListSweep(
resolver_list: Iterable[cirq.ParamResolverOrSimilarType
]
)
Args | |
---|---|
resolver_list
|
The list of parameter resolvers to use in the sweep. All resolvers must resolve the same set of parameters. |
Raises | |
---|---|
TypeError
|
If resolver_list is not a cirq.ParamResolver or a
dict.
|
Attributes | |
---|---|
keys
|
The keys for the all of the sympy.Symbols that are resolved. |
Methods
param_tuples
param_tuples() -> Iterator[Params]
An iterator over (key, value) pairs assigning Symbol key to value.
__add__
__add__(
other: 'Sweep'
) -> 'Sweep'
__eq__
__eq__(
other
)
Return self==value.
__getitem__
__getitem__(
val: Union[int, slice]
) -> Union[resolver.ParamResolver, 'Sweep']
__iter__
__iter__() -> Iterator[cirq.ParamResolver
]
__len__
__len__() -> int
__mul__
__mul__(
other: 'Sweep'
) -> 'Sweep'
__ne__
__ne__(
other
)
Return self!=value.