Sitelet https://web.archive.org/web/20201018182602/http://github.com/qutip/qutip/issues/1096
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

ENH: Update `qcircuit` version for LaTeX circuit visualization and consider `Quantikz` #1096

Open
nathanshammah opened this issue Oct 9, 2019 · 4 comments · May be fixed by #1187
Open

ENH: Update `qcircuit` version for LaTeX circuit visualization and consider `Quantikz` #1096

nathanshammah opened this issue Oct 9, 2019 · 4 comments · May be fixed by #1187

Comments

@nathanshammah
Copy link
Member

@nathanshammah nathanshammah commented Oct 9, 2019 •

QuTiP currently uses QCircuit 2 (version of 2011) to generate LaTeX circuits that are printed to screen or saved to file. A newer version of QCircuit is available, 2.6.0 (2018) https://www.ctan.org/pkg/qcircuit.

  • qcircuit could be updated to the latest version

  • Also, the use of this open source package could be highlighted more evidently in the documentation.

  • Another package has been recently released, https://arxiv.org/abs/1809.03842, Quantikz, which has some features related to noise that could be useful especially with regard to PR #1065, Google Summer of Code project by @BoxiLi on noise modeling in QIP. As this other package is very young, maybe an option to draw the circuit with this package, instead of qcircuit, could be given, also to avoid issues.

@christian512
Copy link

@christian512 christian512 commented Feb 29, 2020

Hi, I just added the support for QCircuit 2.6 in my fork and tested it with quantum-gates.ipynb. Do you have any other notebook suggestion, which I could use for testing?

I didn't look into Quantikz yet.

@BoxiLi
Copy link
Member

@BoxiLi BoxiLi commented Feb 29, 2020

Hi @christian512, sounds great! This tutorial page covers all that we have for plotting circuits, so its should be good if all figures work well there. Would you like to open a Pull Request?

@christian512
Copy link

@christian512 christian512 commented Feb 29, 2020

Hi @BoxiLi, yes I'll do so :)

There were some deprecation warnings and one cell not running in the notebook. But this was also the same for the old version of QCircuit. Already looked into the mistake and might open an issue in the repo.

@BoxiLi
Copy link
Member

@BoxiLi BoxiLi commented Mar 1, 2020

The deprecation is because of the QuTiP 4.5 update. The notebook is a bit outdated. The importation should be from qutip.qip.operations import *. This should solve the problem

@nathanshammah nathanshammah linked a pull request that will close this issue Mar 23, 2020
@nathanshammah nathanshammah linked a pull request that will close this issue Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.