quantumlib / Qualtran

Qᴜᴀʟᴛʀᴀɴ is a Python library for expressing and analyzing Fault Tolerant Quantum algorithms.
https://qualtran.readthedocs.io/en/latest/
Apache License 2.0
132 stars 35 forks source link

Windows support - utf8 in graphviz #1042

Closed mpharrigan closed 1 month ago

mpharrigan commented 1 month ago

There is an issue when trying to draw diagrams with unicode symbols on windows. Even though graphviz defaults to utf-8, the pydot intermediary writes a temporary file with (what I presume to be) the platform default which is insufficient for unicode. Luckily, there is a parameter we can set to get utf-8 everywhere.

This also removes a not-very helpful test that fails on windows because of insignificant differences in numpy datatypes.