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

Latex drawer tested using notebook in binder #6450

Closed
Closed
Show file tree
Hide file tree
Changes from 125 commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
20fdbd2
Added binder tests for latex
TharrmashasthaPV May 6, 2021
88ff31f
path correction
TharrmashasthaPV May 6, 2021
6fb992e
Minor fix
TharrmashasthaPV May 6, 2021
ea0899f
Minor fix 2
TharrmashasthaPV May 6, 2021
0a8d042
Fixed minor error 3
TharrmashasthaPV May 6, 2021
bb24b28
minor error fix 4
TharrmashasthaPV May 6, 2021
c2a149b
minor error fix 5
TharrmashasthaPV May 6, 2021
8ad11e1
minor error fix 5
TharrmashasthaPV May 6, 2021
589c237
error fix 6
TharrmashasthaPV May 6, 2021
2567802
error fix 7
TharrmashasthaPV May 6, 2021
0fe9ae1
error fix 8
TharrmashasthaPV May 6, 2021
5238f98
error fix 9
TharrmashasthaPV May 6, 2021
37042d4
Fix 10
TharrmashasthaPV May 7, 2021
f9c1ac3
Fix 11
TharrmashasthaPV May 7, 2021
764be02
Added apt.txt
TharrmashasthaPV May 7, 2021
7289ce2
Merge branch 'issue6371' of https://github.com/TharrmashasthaPV/qiski…
TharrmashasthaPV May 7, 2021
3ae7f24
Update apt.txt
TharrmashasthaPV May 7, 2021
cc9971b
updated apt.txt 2
TharrmashasthaPV May 7, 2021
d727933
Updated apt.txt again
TharrmashasthaPV May 7, 2021
f7b027b
Updating apt-txt trial 3
TharrmashasthaPV May 8, 2021
23a8bbc
Testing with apt.txt
TharrmashasthaPV May 8, 2021
86ce4ba
updated postbuild 1
TharrmashasthaPV May 8, 2021
1b367dd
Create envirenment.yml
TharrmashasthaPV May 8, 2021
f499859
updated env.yml
TharrmashasthaPV May 10, 2021
3defef9
updated apt
TharrmashasthaPV May 10, 2021
82a4681
update apt again
TharrmashasthaPV May 10, 2021
0593da4
Update postBuild
TharrmashasthaPV May 11, 2021
af39dd7
Update postbuild1
TharrmashasthaPV May 11, 2021
67d31d6
update postbuild2
TharrmashasthaPV May 11, 2021
6eaad0c
new postbuild
TharrmashasthaPV May 12, 2021
ec0fb2e
Update postBuild
TharrmashasthaPV May 12, 2021
14ee769
Update apt.txt
TharrmashasthaPV May 12, 2021
3572509
update postbuild1
TharrmashasthaPV May 12, 2021
2593738
update
TharrmashasthaPV May 12, 2021
bc82a56
qcircuit workaround
TharrmashasthaPV May 12, 2021
44c6d14
qcircuit workaround
TharrmashasthaPV May 12, 2021
c76f207
Update apt.txt
TharrmashasthaPV May 12, 2021
f3712e2
Update postBuild
TharrmashasthaPV May 12, 2021
45a3750
Update apt.txt
TharrmashasthaPV May 12, 2021
8ef988a
Update apt.txt
TharrmashasthaPV May 13, 2021
2eb970a
Test - Adding docker file
TharrmashasthaPV May 14, 2021
ddfd4f1
docker test 2
TharrmashasthaPV May 14, 2021
6ef8eed
docker test 3
TharrmashasthaPV May 14, 2021
86b21d8
docker test 3 - error fix
TharrmashasthaPV May 14, 2021
a9f4fb4
docker test 3 - error fix 2
TharrmashasthaPV May 14, 2021
ed47f1c
docker test 4
TharrmashasthaPV May 14, 2021
377a614
docker test 5
TharrmashasthaPV May 14, 2021
72acf71
docker test 6
TharrmashasthaPV May 14, 2021
d872a67
texlive-base
1ucian0 May 14, 2021
9367e56
Update apt.txt
TharrmashasthaPV May 14, 2021
0e188bc
Delete Dockerfile
TharrmashasthaPV May 14, 2021
bd018fd
texlive-pictures
1ucian0 May 14, 2021
9e99ae4
Update apt.txt
TharrmashasthaPV May 16, 2021
cb4e741
update apt.txt 1
TharrmashasthaPV May 16, 2021
7e2d244
Update apt.txt
TharrmashasthaPV May 16, 2021
92447ad
Update apt.txt
TharrmashasthaPV May 16, 2021
dc28ff5
Update apt.txt
TharrmashasthaPV May 16, 2021
7d3d284
update apt.txt 2
TharrmashasthaPV May 16, 2021
0844e9e
Update apt.txt
TharrmashasthaPV May 16, 2021
588554f
Update apt.txt
TharrmashasthaPV May 16, 2021
43f2ccd
Final update apt.txt
TharrmashasthaPV May 17, 2021
e55ec2b
Update apt.txt
TharrmashasthaPV May 17, 2021
a386075
Update apt.txt
TharrmashasthaPV May 17, 2021
5f20ccd
Update apt.txt
TharrmashasthaPV May 17, 2021
96483de
download qcircuit by hand
1ucian0 May 17, 2021
91690c4
dep
1ucian0 May 17, 2021
bebedeb
new par
1ucian0 May 17, 2021
033deef
dep
1ucian0 May 17, 2021
a5c9207
another fix
1ucian0 May 17, 2021
f9c9ebe
var
1ucian0 May 17, 2021
bf1805e
the s stands for secure
1ucian0 May 17, 2021
898f7e4
more deps
1ucian0 May 17, 2021
a68b8e9
more deps!
1ucian0 May 17, 2021
dfcbd9c
Merging main branch into binder branch
TharrmashasthaPV May 21, 2021
64d62f3
Merge branch 'binder_test_branch' of remote to local
TharrmashasthaPV May 21, 2021
52dbb5e
Fixed the latex binder
TharrmashasthaPV May 21, 2021
61871da
deps check 1
TharrmashasthaPV May 21, 2021
bfa2c65
Removing unwanted deps from apt.txt
TharrmashasthaPV May 21, 2021
5266ada
Removing latex tests from test/python/.
TharrmashasthaPV May 21, 2021
cc960b0
Removing the redundent qcurcuit.sty from test/ipynb/ folder.
TharrmashasthaPV May 21, 2021
3e412e1
Added mpl_results.py
TharrmashasthaPV May 21, 2021
3bb1e1c
Fixed lint error.
TharrmashasthaPV May 21, 2021
c3b9485
Merge branch 'main' of https://github.com/Qiskit/qiskit-terra into bi…
TharrmashasthaPV May 24, 2021
0438162
Including image test dependencies in azure-pipeline.yml
TharrmashasthaPV May 24, 2021
212baaa
Added reno
TharrmashasthaPV May 24, 2021
966a423
Merge branch 'main' into binder_test_branch
TharrmashasthaPV May 26, 2021
11244b2
Merge branch 'main' into binder_test_branch
TharrmashasthaPV May 27, 2021
91a4173
Merge branch 'main' into binder_test_branch
TharrmashasthaPV May 28, 2021
283ea6f
Merge branch 'main' into binder_test_branch
TharrmashasthaPV May 28, 2021
407dab4
Merge branch 'main' into binder_test_branch
TharrmashasthaPV Jun 1, 2021
8fe8d82
Resolving conflicts and merging main to branch
TharrmashasthaPV Jul 13, 2021
4f586cd
Replaced mismatched images
TharrmashasthaPV Jul 13, 2021
42967ff
Merge branch 'main' of https://github.com/Qiskit/qiskit-terra into bi…
TharrmashasthaPV Jul 13, 2021
fb8cb70
Resolving conflicts and merging with main
TharrmashasthaPV Jul 16, 2021
f8083a2
Minor fixes
TharrmashasthaPV Jul 16, 2021
5952738
Removed unwanted json file
TharrmashasthaPV Jul 16, 2021
1aa636d
Fixed typo in mpl_tester
TharrmashasthaPV Jul 16, 2021
a8b377c
Added a missing test
TharrmashasthaPV Jul 16, 2021
722936a
Merge branch 'main' into binder_test_branch
TharrmashasthaPV Jul 16, 2021
4c5ac18
Removing conflicts and merging main with the branch
TharrmashasthaPV Jul 26, 2021
91fc0be
Merge branch 'main' of https://github.com/Qiskit/qiskit-terra into bi…
TharrmashasthaPV Jul 26, 2021
81ebaaa
Cleaned the notebook
TharrmashasthaPV Jul 26, 2021
adb06d0
Merge branch 'binder_test_branch' of https://github.com/Tharrmashasth…
TharrmashasthaPV Jul 26, 2021
f88cc7d
Fixed some lint errors
TharrmashasthaPV Jul 26, 2021
578b13f
Update snapshot_tester.ipynb
TharrmashasthaPV Jul 26, 2021
322118a
Resolved comflicts and merged main to branch
TharrmashasthaPV Jul 31, 2021
cbc9766
minor fix
TharrmashasthaPV Jul 31, 2021
1895785
minor fix
TharrmashasthaPV Jul 31, 2021
d907904
Added extra installs in azure-pipelines.yml
TharrmashasthaPV Jul 31, 2021
5166265
Tidied up results.py and tester ipynb
javabster Aug 3, 2021
251adf9
:sparkles: lint! :sparkles:
javabster Aug 3, 2021
c19b3c6
:sparkles: lint! :sparkles:
javabster Aug 3, 2021
82678f2
Merge branch 'main' of https://github.com/Qiskit/qiskit-terra into bi…
TharrmashasthaPV Aug 4, 2021
636f3d5
Updated CONTRIBUTING.md and changed a few test names
TharrmashasthaPV Aug 4, 2021
716fcc5
small change in contributing.md
TharrmashasthaPV Aug 4, 2021
6b660bf
removed reno, envionment.yml and cleaned ipynb
TharrmashasthaPV Aug 6, 2021
c1cf62e
Merge branch 'main' into binder_test_branch
TharrmashasthaPV Aug 6, 2021
525fbe8
small fix
TharrmashasthaPV Aug 6, 2021
3500d61
Merge branch 'main' into binder_test_branch
TharrmashasthaPV Aug 11, 2021
80c465b
Resolved conflicts
TharrmashasthaPV Oct 14, 2021
0cd29f6
nb-clean
TharrmashasthaPV Oct 14, 2021
ea8b3c0
Merge branch 'main' into binder_test_branch
TharrmashasthaPV Oct 14, 2021
bd336d2
Added missing images
TharrmashasthaPV Oct 18, 2021
3bf7058
Merge branch 'binder_test_branch' of https://github.com/Tharrmashasth…
TharrmashasthaPV Oct 18, 2021
dd837f9
Merge branch 'main' of https://github.com/Qiskit/qiskit-terra into bi…
TharrmashasthaPV Oct 18, 2021
a2f3cdc
Merge branch 'main' into binder_test_branch
1ucian0 Nov 17, 2021
b51d07e
Tidied up package installs
javabster Nov 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,12 @@ we used in our CI systems more closely.

### Snapshot Testing for Visualizations

If you are working on code that makes changes to any matplotlib visualisations
you will need to check that your changes don't break any snapshot tests, and add
If you are working on code that makes changes to any matplotlib or latex visualisations
you will need to check that your changes don't break any snapshot tests, and add
new tests where necessary. You can do this as follows:

1. Make sure you have pushed your latest changes to your remote branch.
2. Go to link: `https://mybinder.org/v2/gh/<github_user>/<repo>/<branch>?urlpath=apps/test/ipynb/mpl_tester.ipynb`. For example, if your GitHub username is `username`, your forked repo has the same name the original, and your branch is `my_awesome_new_feature`, you should visit https://mybinder.org/v2/gh/username/qiskit-terra/my_awesome_new_feature?urlpath=apps/test/ipynb/mpl_tester.ipynb.
2. Go to link: `https://mybinder.org/v2/gh/<github_user>/<repo>/<branch>?urlpath=apps/test/ipynb/snapshot_tester.ipynb`. For example, if your GitHub username is `username`, your forked repo has the same name the original, and your branch is `my_awesome_new_feature`, you should visit https://mybinder.org/v2/gh/username/qiskit-terra/my_awesome_new_feature?urlpath=apps/test/ipynb/snapshot_tester.ipynb
Copy link
Member

Choose a reason for hiding this comment

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

I was not able to run https://mybinder.org/v2/gh/TharrmashasthaPV/qiskit-terra/binder_test_branch?filepath=apps/test/ipynb/snapshot_tester.ipynb . Maybe binder is in a bad day? Maybe I'm doing something wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There seems to be a small error in the link you tried. 😃 We use either ...filepath=test/ipynb/snapshot_tester.py or ...urlpath=apps/test/ipynb/snapshot_tester.py in the link. One correct link is https://mybinder.org/v2/gh/TharrmashasthaPV/qiskit-terra/binder_test_branch?urlpath=apps/test/ipynb/snapshot_tester.ipynb. This link seems to be working for me.

Copy link
Contributor

@javabster javabster Aug 6, 2021

Choose a reason for hiding this comment

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

I also was struggling to run them a few days ago. I did manage to run them in the end but they were very slow. Also wasn't sure if it was a binder issue, or maybe something to do with the changes here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just tested running branches with and without the change of this PR and I kind of found them both to take similar duration (around 3 mins) to open a server for the first time a branch is run after a commit. So, I think it is a binder issue.

This opens a Jupyter Notebook application running in the cloud that automatically runs
the snapshot tests (note this may take some time to finish loading).
3. Each test result provides a set of 3 images (left: reference image, middle: your test result, right: differences). In the list of tests the passed tests are collapsed and failed tests are expanded. If a test fails, you will see a situation like this:
Expand All @@ -343,25 +343,31 @@ can sometimes result in minor changes elsewhere to spacing etc. In these cases
you just need to update the reference images as follows:
- download the mismatched images (link at top of Jupyter Notebook output)
- unzip the folder
- copy and paste the new images into `qiskit-terra/test/ipynb/mpl/references`,
replacing the existing reference images
- copy and paste the new images into `references` folder in `qiskit-terra/test/ipynb/latex`
for latex, in `qiskit-terra/test/ipynb/mpl/circuit` for matplotlib circuit and in
`qiskit-terra/test/ipynb/mpl/graph` for matplotlib graph visualisations, replacing
the existing reference images
- add, commit and push your changes, then restart the Jupyter Notebook app in your browser. The
tests should now pass.
5. Add new snapshot tests covering your new features, extensions, or bugfixes.
- add your new snapshot tests to `test/ipynb/mpl/test_circuit_matplotlib_drawer.py`
, where you can also find existing tests to use as a guide.
- add your new snapshot tests to the following folders where you can also find existing tests to use as a guide
- `qiskit-terra/test/ipynb/mpl/circuit/test_circuit_matplotlib_drawer.py` for changes covering matplotlib visualisation of circuits.
- `qiskit-terra/test/ipynb/mpl/graph/test_graph_matplotlib_drawer.py` for changes covering matplotlib visualisation of graphs.
- `qiskit-terra/test/ipynb/latex/test_circuit_latex_drawer.py` for changes covering latex visualisation.
- commit and push your changes, restart the Jupyter Notebook app in your browser.
As this is the first time you run your new tests there won't be any reference
images to compare to. Instead you should see an option in the list of tests
to download the new images, like so:

<img width="1002" alt="Screenshot_2021-03-26_at_15 38 31" src="https://user-images.githubusercontent.com/23662430/112665215-b9c3a000-8e52-11eb-89e7-b18550718522.png">

- download the new images, then copy and paste into `qiskit-terra/test/ipynb/mpl/references`
- add, commit and push your changes, restart the Jupyter Notebook app in your browser. The
- download the new images, then copy and paste into `references` folder in `qiskit-terra/test/ipynb/latex`
for latex, in `qiskit-terra/test/ipynb/mpl/circuit` for matplotlib circuit and in
`qiskit-terra/test/ipynb/mpl/graph` for matplotlib graph visualisations.
- add, commit and push your changes, restart the Jupyter Notebook app in your browser. The
new tests should now pass.

Note: If you have run `test/ipynb/mpl_tester.ipynb` locally it is possible some file metadata has changed, **please do not commit and push changes to this file unless they were intentional**.
Note: If you have run `test/ipynb/snapshot_tester.ipynb` locally it is possible some file metadata has changed, **please do not commit and push changes to this file unless they were intentional**.

## Style and lint

Expand Down
5 changes: 5 additions & 0 deletions apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
texlive-pictures
texlive-latex-recommended
texlive-latex-extra
texlive-fonts-recommended
poppler-utils
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ stages:
image_tests/bin/pip install -U -r requirements.txt -c constraints.txt
image_tests/bin/pip install -U -c constraints.txt -e ".[visualization]"
image_tests/bin/python setup.py build_ext --inplace
sudo apt install -y graphviz pandoc
sudo apt install -y graphviz pandoc $(cat apt.txt)
Copy link
Member

Choose a reason for hiding this comment

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

why these is needed? Do this checks run in CI?

Copy link
Contributor Author

@TharrmashasthaPV TharrmashasthaPV Aug 6, 2021

Choose a reason for hiding this comment

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

I am not sure if the comparison tests are run in CI. But I guess there is an attempt to draw and save the circuit visualization images of these tests at https://github.com/Qiskit/qiskit-terra/blob/0cdacec2ee3b26a96b1d7bbb0def6b7eb66ac5b4/azure-pipelines.yml#L255

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
sudo apt install -y graphviz pandoc $(cat apt.txt)
sudo apt install -y graphviz pandoc texlive-pictures texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended poppler-utils

image_tests/bin/pip check
displayName: 'Install dependencies'
- bash: image_tests/bin/python -m unittest discover -v test/ipynb
Expand Down
4 changes: 4 additions & 0 deletions postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
pip install matplotlib pylatexenc pillow appmode seaborn
pip install .

# Install QCircuit for LaTeX drawer
mkdir -p $(kpsewhich -var-value=TEXMFHOME)/tex/latex/qcircuit/
wget https://mirrors.ctan.org/graphics/qcircuit/qcircuit.sty -P $(kpsewhich -var-value=TEXMFHOME)/tex/latex/qcircuit/
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
wget https://mirrors.ctan.org/graphics/qcircuit/qcircuit.sty -P $(kpsewhich -var-value=TEXMFHOME)/tex/latex/qcircuit/
tlmgr install qcircuit


# Activation of appmode extension
jupyter nbextension enable --py --sys-prefix appmode
jupyter serverextension enable --py --sys-prefix appmode
1 change: 1 addition & 0 deletions qiskit/visualization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def _trim(image):
diff = PIL.ImageChops.difference(image, background)
diff = PIL.ImageChops.add(diff, diff, 2.0, -100)
bbox = diff.getbbox()
bbox = (bbox[0] - 3, bbox[1] - 3, bbox[2] + 3, bbox[3] + 3)
if bbox:
image = image.crop(bbox)
return image
Expand Down
16 changes: 16 additions & 0 deletions test/ipynb/latex/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""Image comparison test for Latex circuit drawer.
You can generate the image references with Binder
in https://mybinder.org/v2/gh/<user>/<repo>/<branch>?urlpath=apps/test/ipynb/snapshot_tester.ipynb
"""
Binary file added test/ipynb/latex/references/test_big_gates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/ipynb/latex/references/test_cnot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/ipynb/latex/references/test_cswap_rzz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/ipynb/latex/references/test_empty_circuit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/ipynb/latex/references/test_iqx_colors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/ipynb/latex/references/test_long_name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/ipynb/latex/references/test_no_ops.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/ipynb/latex/references/test_r_gates.png
Binary file added test/ipynb/latex/references/test_scale_half.png
Binary file added test/ipynb/latex/references/test_teleport.png
Binary file added test/ipynb/latex/references/test_tiny_circuit.png
Binary file added test/ipynb/latex/references/test_u_gates.png
Loading