Is there any way to get single pixel wide aliased lines? I'm trying to get clean, one pixel wide lines on my renders like the pic below, but nothing I try seems to work.



I've tried freestyle with one sample, but I get extra pixels at some parts of the strokes and the low sampling makes the rest of the render look really bad.



I also tried this compositor nodegroup and this script, but I can't make the nodegroup's lines thin enough and the script just doesn't work at all. 

These were the thinnest lines I could get with the nodegroup.



So is there any way to render lines like the first pic, or am I out of luck?

I'm fine with using either engine.
If you're ok with using the Workbench engine, you can simply go to User Preferences → Viewport → Smooth Wires and disable Overlay.

You can choose the Workbench engine just like Cycles or Eevee in the Render Properties tab, and since frames can still be rendered with transparency you could easily composite them into frames rendered with any other engine.

Result