An ab initio study of the lowest electronic states of yttrium dicarbide, YC2