Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make circuit latex code accessible in QubitCircuit #108

Merged
merged 1 commit into from
Nov 21, 2021

Conversation

BoxiLi
Copy link
Member

@BoxiLi BoxiLi commented Nov 14, 2021

  • QubitCircuit.latex_code() now returns the full latex code (before only the code body without header), which can be saved as a tex file and compiled externally.
  • The algorithm will print the latex code if pdflatex failed. This simplifies the debugging process.

@purva-thakre This should also simplify your debugging I guess?

- QubitCircuit.latex_code() now returns the full latex code, which can be saved as a tex file and compiled externally.
- The algorithm will print the latex code if pdflatex failed. This simplifies the debugging process.
@BoxiLi BoxiLi added this to the qutip-qip-0.1.2 milestone Nov 14, 2021
Copy link
Contributor

@hodgestar hodgestar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@BoxiLi BoxiLi merged commit 60fe50e into qutip:master Nov 21, 2021
BoxiLi added a commit to BoxiLi/qutip-qip that referenced this pull request Nov 24, 2021
- QubitCircuit.latex_code() now returns the full latex code, which can be saved as a tex file and compiled externally.
- The algorithm will print the latex code if pdflatex failed. This simplifies the debugging process.
BoxiLi added a commit to BoxiLi/qutip-qip that referenced this pull request Nov 24, 2021
- QubitCircuit.latex_code() now returns the full latex code, which can be saved as a tex file and compiled externally.
- The algorithm will print the latex code if pdflatex failed. This simplifies the debugging process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants