cirq.ExpressionMap.transform_sweep

ExpressionMap.transform_sweep(sweep: Union[cirq.study.sweeps.Sweep, List[cirq.study.resolver.ParamResolver]]) → cirq.study.sweeps.Sweep[source]
Returns a sweep to use with a circuit flattened earlier with
cirq.flatten.
If sweep sweeps symbol a over (1.0, 2.0, 3.0) and this
ExpressionMap maps a/2+1 to the symbol '<a/2 + 1>' then this
method returns a sweep that sweeps symbol '<a/2 + 1>' over
(1.5, 2, 2.5).

See cirq.flatten for an example.

Parameters

sweep – The sweep to transform.