cirq.Linspace

A simple sweep over linearly-spaced values.

Inherits From: Sweep

Used in the notebooks

Used in the guide Used in the tutorials

key sympy.Symbol or equivalent to sweep across.
start minimum value of linear sweep.
stop maximum value of linear sweep.
length number of points in the sweep.
metadata Optional metadata to attach to the sweep to annotate the sweep or its variable.

keys The keys for the all of the sympy.Symbols that are resolved.

Methods

param_tuples

View source

An iterator over (key, value) pairs assigning Symbol key to value.

__add__

View source

__eq__

View source

Return self==value.

__getitem__

View source

__iter__

View source

__len__

View source

__mul__

View source

__ne__

View source

Return self!=value.