A ‘carpet cloak’ is an optical device that sits above a region of space and makes that region appear flat and empty, regardless of what lies underneath it. This picture below illustrates roughly how this works for rays of light: the rays get deflected while in the carpet but return to their original trajectory as if they had hit the flat surface unobstructed, or passed by it.