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

WIP: Interfaces #49

Merged
merged 16 commits into from
May 29, 2018
Merged

WIP: Interfaces #49

merged 16 commits into from
May 29, 2018

Conversation

Roger-luo
Copy link
Member

@Roger-luo Roger-luo commented May 26, 2018

  • unittest for RotationBlock

  • unittest for constant gates

  • fix up other related unittests

  • polish dispatch protocal

  • make possible properties become type traits

  • use macro for constant gates

  • auto-check properties (use defined properties if it is defined)

  • do not print type info

  • move printing to one file: show.jl

  • refactor PhGate => PhaseGate with two type of phase: global, shift

  • new composite block repeated for repeated single qubit gates (next PR)

  • new composite block SingleControl for single qubit gates (next PR)

  • new priimtive block SWAP (next PR)

@Roger-luo Roger-luo added this to the v0.1 milestone May 26, 2018
@coveralls
Copy link

Pull Request Test Coverage Report for Build 308

  • 13 of 13 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 75.188%

Totals Coverage Status
Change from base Build 306: 0.0%
Covered Lines: 600
Relevant Lines: 798

💛 - Coveralls

@coveralls
Copy link

coveralls commented May 26, 2018

Pull Request Test Coverage Report for Build 335

  • 231 of 274 (84.31%) changed or added relevant lines in 23 files are covered.
  • 8 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+6.4%) to 81.544%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Interfaces/Compose.jl 0 1 0.0%
src/Blocks/Measure.jl 1 2 50.0%
src/Register/Default.jl 4 5 80.0%
src/Interfaces/Composite.jl 16 18 88.89%
src/Interfaces/PositionBlock.jl 1 3 33.33%
src/Interfaces/Interfaces.jl 5 7 71.43%
src/Cache/CacheFlag.jl 3 6 50.0%
src/Cache/UpdateRules.jl 3 6 50.0%
src/show.jl 60 72 83.33%
src/Blocks/ConstantGate.jl 72 88 81.82%
Files with Coverage Reduction New Missed Lines %
src/Register/Default.jl 4 87.65%
src/Blocks/Sequence.jl 4 0.0%
Totals Coverage Status
Change from base Build 306: 6.4%
Covered Lines: 729
Relevant Lines: 894

💛 - Coveralls

@codecov-io
Copy link

codecov-io commented May 26, 2018

Codecov Report

Merging #49 into master will decrease coverage by 1.68%.
The diff coverage is 63.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
- Coverage   75.18%   73.49%   -1.69%     
==========================================
  Files          34       38       +4     
  Lines         798      883      +85     
==========================================
+ Hits          600      649      +49     
- Misses        198      234      +36
Impacted Files Coverage Δ
src/Blocks/Blocks.jl 0% <ø> (ø) ⬆️
src/Blocks/SwapGate.jl 0% <ø> (ø) ⬆️
src/MathUtils.jl 95.34% <ø> (ø) ⬆️
src/Blocks/Core.jl 66.66% <0%> (ø) ⬆️
src/Interfaces/Compose.jl 0% <0%> (ø)
src/Blocks/show.jl 0% <0%> (ø) ⬆️
src/Blocks/Roller.jl 100% <100%> (+21.87%) ⬆️
src/Interfaces/Measure.jl 100% <100%> (ø)
src/Interfaces/Primitive.jl 100% <100%> (ø)
src/Register/Core.jl 86.66% <100%> (ø) ⬆️
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 865d8cd...a960d1c. Read the comment docs.

@Roger-luo Roger-luo self-assigned this May 28, 2018
@Roger-luo Roger-luo removed the request for review from wangleiphy May 29, 2018 14:59
@Roger-luo Roger-luo merged commit f119695 into master May 29, 2018
@Roger-luo Roger-luo deleted the interfaces branch May 29, 2018 18:16
GiggleLiu pushed a commit that referenced this pull request Apr 21, 2024
* Add attribute instruction plots

* Update README.md

* Delete attr_circuit_1.svg

* Update README.md
GiggleLiu added a commit that referenced this pull request Apr 21, 2024
* Initial commit

* Files generated by PkgTemplates

PkgTemplates version: 0.7.5

* plots for ZX-diagrams

* rename plot

* plots for ZX-diagrams (#10)

* plots for ZX-diagrams

* rename plot

* CompatHelper: add new compat entry for "Compose" at version "0.9" (#11)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* CompatHelper: add new compat entry for "LightGraphs" at version "1.3" (#12)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rogerluo <rogerluo.rl18@gmail.com>

* CompatHelper: add new compat entry for "GraphPlot" at version "0.4" (#13)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rogerluo <rogerluo.rl18@gmail.com>

* CompatHelper: add new compat entry for "ZXCalculus" at version "0.1" (#15)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rogerluo <rogerluo.rl18@gmail.com>

* CompatHelper: add new compat entry for "Colors" at version "0.12" (#14)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rogerluo <rogerluo.rl18@gmail.com>

* rm logs

* fix compat

* CompatHelper: bump compat for "Compose" to "0.9" (#16)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* update for new Multigraph backend

* update zx

* update project.toml

* update project.toml

* update compat

* revert version bump due to an error occured in IonCLI

* update compat

* bump version to 0.2.1

* bump version to 0.3.0

* fix version conflict

* fix version compat

* Basic circuit vizualization (#22)

* new circuit plot

* fine tune

* fine tune

* rm 1.0 travis CI

* make CNOT a CNOT

* general update

Co-authored-by: Rogerluo <rogerluo.rl18@gmail.com>

* bump version to 0.4.0

* Update TagBot.yml

* add compat

* add compat

* Polish code and fix #3 (#24)

* polish code, make the implementation more general

* cxx.png

* bump version to 0.4.1

* use plot interface for circuits

* nvm

* add example for ZXCalculus

* fix format

* fix fig

* add Multigraphs backend (#30)

* add Multigraphs

* up compat

* CompatHelper: add new compat entry for "GraphPlot" at version "0.4" (#31)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix the plot for ZXGraph with phase gadgets (#27)

* bump version to 0.5.0

* works

* viz scale gate (unitary)

* fix phase

* fix tests

* update viznet

* CompatHelper: bump compat for "ZXCalculus" to "0.4" (#37)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* new measure (#39)

* New multiqubit gate (#40)

* new measure

* new mutiple qubit gates

* multi-gate labeling

* allow changing line color

* allow changing line color (#42)

* Update Project.toml

* Initial commit

* Files generated by PkgTemplates

PkgTemplates version: 0.7.23

* update

* tests pass

* update tests

* CompatHelper: add new compat entry for OMEinsum at version 0.6, (keep existing compat)

* CompatHelper: add new compat entry for Yao at version 0.6, (keep existing compat)

* update docs

* Update README.md

* setup ci

* update project.toml

* Update README.md

* bump OMEinsumContractionOrders version

* Update Project.toml

* Add vega plot backend (#43)

* rework with Compose

* fix tests

* fix version

* add Vega backend

* add tests

* resolve version

* Revert "Add vega plot backend (#43)" (#44)

This reverts commit f04e3f4.

* fix tests, upgrade Graphs

* bump version, add codecov

* Update README.md

* polish viz circuit (#47)

* Update TagBot.yml

* boundary condition specification

* Update Project.toml

* Add instructions for changing plot attributes  (#49)

* Add attribute instruction plots

* Update README.md

* Delete attr_circuit_1.svg

* Update README.md

* Fixed a tiny one letter typo (#50)

Really sorry!!! 😬

* update yao

* update deps (#51)

* update circuit

* fix readme example

* bump version

* bump version

* Update README.md

* Update Project.toml (#52)

Just noticed that I wasn't able to upgrade to Yao 0.8 with YaoPlots. This should do it :D

* Update Project.toml

* Bump version of BitBasis in Project.toml (#53)

Sorry! Forgot about this one 🥲

* Update Project.toml

* update

* better visualization of labeled multi-qubit circuits (#55)

* update

* update

* update

* to basic style

* update

* update vizcircuit

* fix tests

* fix tests

* rm wg

* Update Project.toml

* fix multi-level

* Update CI.yml

* bump version

* [WIP] Switch to Luxor backend (#56)

* update luxor

* fix line break

* fix labelled example

* fix margin

* fix test

* ...

* more spacious

* ...

* seperate zx calculus

* upgrad OMEinsum

* update dpes

* fix #58 (#59)

* barrier for chain (#60)

* Update README.md

* add type TensorNetwork

* update README

* fix show

* cuda extension

* fix cuda ext

* Plot bloch sphere (#62)

* new bloch

* update README

* Update Project.toml

* Update Project.toml

* optimize projection gate

* update

* fix a dispatch

* impove test

* Update Project.toml

* Update README.md

* Update README.md

* Subtree merged in lib/YaoToEinsum

* complete YaoToEinsum merge

* complete YaoPlots merge

* clean up images

---------

Co-authored-by: Roger-luo <rogerluo.rl18@gmail.com>
Co-authored-by: Chen Zhao <zhaochen17@mails.ucas.ac.cn>
Co-authored-by: Chen Zhao <50411747+ChenZhao44@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org>
Co-authored-by: Chetan Vardhan <51269425+VarLad@users.noreply.github.com>
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.

3 participants