Skip to content

Commit

Permalink
reorganize into pkgext (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov authored May 27, 2023
1 parent e1f7ca2 commit 5992690
Show file tree
Hide file tree
Showing 44 changed files with 291 additions and 425 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/ci-julia-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
strategy:
fail-fast: false
matrix:
version:
- nightly
os:
- ubuntu-latest
threads:
- '1'
jet:
- 'true'
- 'false'
arch:
- x64
include:
- os: ubuntu-latest
arch: x64
version: nightly
threads: 2
jet: 'false'
- os: ubuntu-latest
arch: x64
version: '1'
threads: 2
jet: 'true'
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
Expand All @@ -38,15 +38,11 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Install and Test
shell: julia --project=monorepo {0}
run: |
using Pkg;
pkg"dev . ./QSymbolicsBase ./QSymbolicsClifford ./QSymbolicsOptics"
Pkg.test("QuantumSymbolics"; coverage=true)
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
JULIA_NUM_THREADS: ${{ matrix.threads }}
QSYMBOLICS_JET_TEST: ${{ matrix.jet }}
JET_TEST: ${{ matrix.jet }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
matrix:
version:
- '1'
- '1.8'
os:
- ubuntu-latest
- windows-latest
Expand All @@ -38,12 +37,8 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Install and Test
shell: julia --project=monorepo {0}
run: |
using Pkg;
pkg"dev . ./QSymbolicsBase ./QSymbolicsClifford ./QSymbolicsOptics"
Pkg.test("QuantumSymbolics"; coverage=true)
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
JULIA_NUM_THREADS: ${{ matrix.threads }}
- uses: julia-actions/julia-processcoverage@v1
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
# News

## v0.2.0

- **(breaking)** Merge with `QSymbolicsBase` and turn `QSymbolicsOptics` and `QSymbolicsClifford` into extensions.
- **(breaking)** Require julia 1.9.
- Drop `QuantumOptics` dependencies (now depends only on `QuantumOpticsBase`)

## `QSymbolicsBase` v0.1.2

- Pretty printing with Latexify.
- Implement bras.

## v0.1.1

- Bosonic states basis and common states and operators.
- Bumping `QSymbolicsBase` to 0.1.1.
- Bumping `QSymbolicsOptics` to 0.1.1.
- Added tests.

## `QSymbolicsBase` v0.1.1

- Bosonic states basis and common states and operators.
- Documentation and more symbol names available for the qubit base states.
- `SApplyOp` implemented for superoperator acting on operator.
- `STensorSuperOperator` implemented for tensor products of superoperators.
36 changes: 22 additions & 14 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
name = "QuantumSymbolics"
uuid = "efa7fd63-0460-4890-beb7-be1bbdfbaeae"
authors = ["QuantumSymbolics.jl contributors"]
version = "0.1.2"
version = "0.2.0"

[deps]
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
QSymbolicsBase = "a8697a1a-c835-4068-9491-e8abc49d0056"
QSymbolicsClifford = "3bf15ae1-300d-4269-a8e5-03a020b0328d"
QSymbolicsOptics = "3c38c10f-068b-409d-8b1c-aa4375858705"
QuantumClifford = "0525e862-1e90-11e9-3e4d-1b39d7109de1"
Latexify = "23fbe1c1-3f47-55db-b15f-69d7ec21a316"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
QuantumInterface = "5717a53b-5d69-4fa3-b976-0bf2f97ca1e5"
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
TermInterface = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c"

[weakdeps]
QuantumClifford = "0525e862-1e90-11e9-3e4d-1b39d7109de1"
QuantumOpticsBase = "4f57444f-1401-5e15-980d-4471b28d5678"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"

[extensions]
MixedCliffordOpticsExt = ["QuantumClifford", "QuantumOpticsBase"]
QuantumCliffordExt = "QuantumClifford"
QuantumOpticsExt = "QuantumOpticsBase"

[compat]
Graphs = "1.7.3"
QSymbolicsBase = "0.1.1"
QSymbolicsClifford = "0.1.1"
QSymbolicsOptics = "0.1.1"
QuantumClifford = "0.7"
Latexify = "0.15"
PrecompileTools = "1"
QuantumClifford = "0.8"
QuantumInterface = "0.1.0"
QuantumOpticsBase = "0.3.8"
Reexport = "1.2.2"
SnoopPrecompile = "1"
julia = "1.8"
SymbolicUtils = "1"
Symbolics = "5"
TermInterface = "0.3"
julia = "1.9"
13 changes: 0 additions & 13 deletions QSymbolicsBase/CHANGELOG.md

This file was deleted.

21 changes: 0 additions & 21 deletions QSymbolicsBase/LICENSE

This file was deleted.

22 changes: 0 additions & 22 deletions QSymbolicsBase/Project.toml

This file was deleted.

6 changes: 0 additions & 6 deletions QSymbolicsBase/test/runtests.jl

This file was deleted.

5 changes: 0 additions & 5 deletions QSymbolicsClifford/CHANGELOG.md

This file was deleted.

21 changes: 0 additions & 21 deletions QSymbolicsClifford/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions QSymbolicsClifford/Project.toml

This file was deleted.

6 changes: 0 additions & 6 deletions QSymbolicsClifford/test/runtests.jl

This file was deleted.

11 changes: 0 additions & 11 deletions QSymbolicsOptics/CHANGELOG.md

This file was deleted.

21 changes: 0 additions & 21 deletions QSymbolicsOptics/LICENSE

This file was deleted.

23 changes: 0 additions & 23 deletions QSymbolicsOptics/Project.toml

This file was deleted.

6 changes: 0 additions & 6 deletions QSymbolicsOptics/test/runtests.jl

This file was deleted.

7 changes: 4 additions & 3 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
PrettyPrint = "8162dcfd-2161-5ef2-ae6c-7681170c5f98"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
QSymbolicsBase = "a8697a1a-c835-4068-9491-e8abc49d0056"
QSymbolicsClifford = "3bf15ae1-300d-4269-a8e5-03a020b0328d"
QSymbolicsOptics = "3c38c10f-068b-409d-8b1c-aa4375858705"
QuantumClifford = "0525e862-1e90-11e9-3e4d-1b39d7109de1"
QuantumInterface = "5717a53b-5d69-4fa3-b976-0bf2f97ca1e5"
QuantumOptics = "6e0679c1-51ea-5a7c-ac74-d61b76210b0c"
QuantumOpticsBase = "4f57444f-1401-5e15-980d-4471b28d5678"
QuantumSymbolics = "efa7fd63-0460-4890-beb7-be1bbdfbaeae"
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
9 changes: 4 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ push!(LOAD_PATH,"../src/")
using Documenter
using DocumenterCitations
using QuantumSymbolics
using QSymbolicsBase
using QSymbolicsClifford
using QSymbolicsOptics
using QuantumOptics
using QuantumClifford

DocMeta.setdocmeta!(QuantumSymbolics, :DocTestSetup, :(using QuantumSymbolics, QSymbolicsBase, QSymbolicsClifford, QSymbolicsOptics); recursive=true)
DocMeta.setdocmeta!(QuantumSymbolics, :DocTestSetup, :(using QuantumSymbolics, QuantumOptics, QuantumClifford); recursive=true)

function main()
bib = CitationBibliography(joinpath(@__DIR__,"src/references.bib"))
Expand All @@ -20,7 +19,7 @@ function main()
format = Documenter.HTML(
assets=["assets/init.js"]
),
modules = [QuantumSymbolics, QSymbolicsBase, QSymbolicsClifford, QSymbolicsOptics],
modules = [QuantumSymbolics],
authors = "Stefan Krastanov",
pages = [
"QuantumSymbolics.jl" => "index.md",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
## Autogenerated API list

```@autodocs
Modules = [QuantumSymbolics, QSymbolicsBase, QSymbolicsClifford, QSymbolicsOptics]
Modules = [QuantumSymbolics]
Private = false
```
Loading

0 comments on commit 5992690

Please sign in to comment.