cirq.linalg.one_hot

THIS FUNCTION IS DEPRECATED.

IT WILL BE REMOVED IN cirq v0.9.

Use cirq.one_hot instead.

Returns a numpy array with all 0s and a single non-zero entry(default 1).

Args:
    index: The index that should store the `value` argument instead of 0.
        If not specified, defaults to the start of the array.
    shape: The shape of the array.
    value: The hot value to place at `index` in the result.
    dtype: The dtype of the array.

Returns:
    The created numpy array.