Closed gadhvirushiraj closed 2 months ago
@BoxiLi should we move circuit_latex.py
as well, or maybe rename it to latex_utils.py
?
I think it would be nice to merge them into texrenderer.py
. One file suffice, it is not so big.
I activated the tests but some of them are failing I believe. You can verify by pytest tests
locally on your machine.
@BoxiLi All tests are passing, and circuit_latex.py
has been moved. Do we need to include any particular deprecation message, considering qc.draw()
continues to function as it did before?
I don't think we need any deprecation warning, as the user interface remain valid.
Shifting LaTeX Code and Circuit API Refactor
Transferring all LaTeX circuit rendering functionality from
circuit.py
to a dedicated file namedtexrenderer.py
. Additional renderers such asmatplotlib
andtext
will be incorporated into thedraw()
method as they become available.