def __init__(
        self, key: cirq.TParamKey, points: Sequence[float], metadata: Any | None = None
    ) -> None:
        """Creates a sweep on a variable with supplied values.

        Args:
            key: sympy.Symbol or equivalent to sweep across.
            points: sequence of floating point values that represent
                the values to sweep across.  The length of the sweep
                will be equivalent to the length of this sequence.
            metadata: Optional metadata to attach to the sweep to
                annotate the sweep or its variable.

        """
        super().__init__(key)
        self.points = points
        self.metadata = metadata
Creates a sweep on a variable with supplied values.

        Args:
            key: sympy.Symbol or equivalent to sweep across.
            points: sequence of floating point values that represent
                the values to sweep across.  The length of the sweep
                will be equivalent to the length of this sequence.
            metadata: Optional metadata to attach to the sweep to
                annotate the sweep or its variable.

        
cirq-core/cirq/study/sweeps.py