Returns a projector onto the |1> subspace of the index-th qubit.

def _one_projector(args: Dict[str, Any], index: int) -> Union[int, np.ndarray]:
    """Returns a projector onto the |1> subspace of the index-th qubit."""
    num_shard_qubits = args['num_shard_qubits']
    shard_num = args['shard_num']
    if index >= num_shard_qubits:
        return _kth_bit(shard_num, index - num_shard_qubits)
    return _zero_one_vects(args)[index]