qutip-qip icon indicating copy to clipboard operation
qutip-qip copied to clipboard

saving a circuit with latex method as a PDF fails

Open nwlambert opened this issue 5 months ago • 1 comments

If a user wants to call

circuit.draw(renderer="latex", file_type="pdf", file_name="circuit")

it fails with

TypeError: TeXRenderer._convert_pdf() takes 1 positional argument but 2 were given

This is because https://github.com/qutip/qutip-qip/blob/7633f6e4dbae7e6931eda800df21d42016df8431/src/qutip_qip/circuit/texrenderer.py#L267C4-L267C33

is called with a DPI argument.

nwlambert avatar Sep 03 '24 07:09 nwlambert