Skip to content

Commit

Permalink
add functions for state fidelity
Browse files Browse the repository at this point in the history
  • Loading branch information
EigenSolver committed Jul 6, 2024
1 parent f427ced commit 5903b38
Show file tree
Hide file tree
Showing 20 changed files with 2,558 additions and 2,551 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Documentation

on:
push:
branches:
- main # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:

jobs:
build:
permissions:
contents: write
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v2
with:
version: '1.10'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl

- run: julia --project=docs/ --code-coverage=user docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
- uses: codecov/codecov-action@v3


name: Documentation

on:
push:
branches:
- main # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:

jobs:
build:
permissions:
contents: write
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v2
with:
version: '1.10'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl

- run: julia --project=docs/ --code-coverage=user docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
- uses: codecov/codecov-action@v3


72 changes: 36 additions & 36 deletions .github/workflows/runtest.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Run tests

on:
push:
branches:
- master
- main
pull_request:

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.8', '1.10'] # 'nightly'
julia-arch: [x64] # x86
os: [ubuntu-latest, windows-latest, macOS-latest]
# exclude:
# - os: macOS-latest
# julia-arch: x86

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/cache@v1.5
- uses: julia-actions/julia-buildpkg@v1.5
- uses: julia-actions/julia-runtest@v1.9
# with:
name: Run tests

on:
push:
branches:
- master
- main
pull_request:

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.8', '1.10'] # 'nightly'
julia-arch: [x64] # x86
os: [ubuntu-latest, windows-latest, macOS-latest]
# exclude:
# - os: macOS-latest
# julia-arch: x86

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/cache@v1.5
- uses: julia-actions/julia-buildpkg@v1.5
- uses: julia-actions/julia-runtest@v1.9
# with:
# annotate: true
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*/build
*/build
.DS_Store
Loading

0 comments on commit 5903b38

Please sign in to comment.