Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upENH: Update `qcircuit` version for LaTeX circuit visualization and consider `Quantikz` #1096
Comments
|
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. |
|
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? |
|
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. |
|
The deprecation is because of the QuTiP 4.5 update. The notebook is a bit outdated. The importation should be |
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.
qcircuitcould be updated to the latest versionAlso, 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.