Skip to content

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

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

Open
nathanshammah opened this issue Oct 9, 2019 · 5 comments
Labels
code code-related, independently on the underlying physics simulation. ENH good first issue Q&A

Comments

@nathanshammah
Copy link
Member

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 GSoC: NISQ simulator #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.

@nathanshammah nathanshammah added the code code-related, independently on the underlying physics simulation. label Dec 2, 2019
@christian512
Copy link
Contributor

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 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
Contributor

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 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

@hodgestar
Copy link
Contributor

qcircuit is no longer vendored by QuTiP, so it uses whatever version of qcircuit is installed along with LaTeX (e.g. TexLive includes qcircuit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code code-related, independently on the underlying physics simulation. ENH good first issue Q&A
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants