cirq.eye_tensor

Returns an identity matrix reshaped into a tensor.

half_shape A tuple representing the number of quantum levels of each qubit the returned matrix applies to. half_shape is (2, 2, 2) for a three-qubit identity operation tensor.
dtype The numpy dtype of the new array.

The created numpy array with shape half_shape + half_shape.