Skip to content

Commit

Permalink
complete YaoPlots merge
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu committed Apr 21, 2024
1 parent 8c6dda8 commit 9458fd2
Show file tree
Hide file tree
Showing 14 changed files with 101 additions and 315 deletions.
47 changes: 0 additions & 47 deletions lib/YaoPlots/.github/workflows/CI.yml

This file was deleted.

14 changes: 0 additions & 14 deletions lib/YaoPlots/.github/workflows/CompatHelper.yml

This file was deleted.

15 changes: 0 additions & 15 deletions lib/YaoPlots/.github/workflows/TagBot.yml

This file was deleted.

6 changes: 0 additions & 6 deletions lib/YaoPlots/.gitignore

This file was deleted.

201 changes: 0 additions & 201 deletions lib/YaoPlots/LICENSE

This file was deleted.

8 changes: 5 additions & 3 deletions lib/YaoPlots/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ version = "0.9.0"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Luxor = "ae8d54c2-7ccd-5906-9d76-62fc9837b5bc"
Thebes = "8b424ff8-82f5-59a4-86a6-de3761897198"
Yao = "5872b779-8223-5990-8dd0-5abbb0748c8c"
YaoArrayRegister = "e600142f-9330-5003-8abb-0ebd767abc51"
YaoBlocks = "418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df"

[compat]
LinearAlgebra = "1"
Luxor = "3"
Thebes = "0.9"
Yao = "0.8"
Thebes = "1"
YaoArrayRegister = "0.9"
YaoBlocks = "0.13"
julia = "1"

[extras]
Expand Down
4 changes: 1 addition & 3 deletions lib/YaoPlots/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# YaoPlots

**NOTE: This package has been moved to Yao.jl as a component package: https://github.com/QuantumBFS/Yao.jl/tree/master/lib/YaoPlots**

[![CI](https://github.com/QuantumBFS/YaoPlots.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/QuantumBFS/YaoPlots.jl/actions/workflows/CI.yml)
[![Coverage](https://codecov.io/gh/QuantumBFS/YaoPlots.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/QuantumBFS/YaoPlots.jl)

Expand Down Expand Up @@ -60,4 +58,4 @@ YaoPlots.CircuitStyles.paramtextsize[] = 8
vizcircuit(chain(3, put(1=>X), repeat(3, H), put(2=>Y), repeat(3, Rx/2))))
```

![attribute_example_2](examples/attr_circuit_2.svg)
![attribute_example_2](examples/attr_circuit_2.svg)
8 changes: 5 additions & 3 deletions lib/YaoPlots/src/YaoPlots.jl
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
module YaoPlots

using Yao
using YaoBlocks
using YaoBlocks.DocStringExtensions
using YaoArrayRegister
import Luxor
import Thebes
using Luxor: @layer, Point
using Thebes: Point3D, project
using Yao.YaoBlocks.DocStringExtensions
using LinearAlgebra: tr

export CircuitStyles, CircuitGrid, circuit_canvas, vizcircuit, darktheme!, lighttheme!
export CircuitStyles, vizcircuit, darktheme!, lighttheme!
export bloch_sphere, BlochStyles
export plot

"""An alias of `vizcircuit`"""
plot(;kwargs...) = x->plot(x;kwargs...)
plot(blk::AbstractBlock; kwargs...) = vizcircuit(blk; kwargs...)

Expand Down
Loading

0 comments on commit 9458fd2

Please sign in to comment.