Skip to content

Commit 5495c2e

Browse files
authored
buildkite (#7)
* buildkite * update Project.toml * doc update * spelling * downgrade compat
1 parent 6d0489e commit 5495c2e

File tree

9 files changed

+45
-7
lines changed

9 files changed

+45
-7
lines changed

.buildkite/pipeline.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
env:
2+
CODECOV_TOKEN: 61f19b8a-59a0-4120-b30a-6b0cb93452c2
3+
JULIA_NUM_THREADS: auto
4+
QUANTUMSAVORY_PLOT_TEST: true
5+
6+
steps:
7+
- label: "CI Buildkite"
8+
plugins:
9+
- JuliaCI/julia#v1:
10+
version: "1"
11+
- QuantumSavory/julia-xvfb#v1:
12+
- JuliaCI/julia-test#v1: ~
13+
- JuliaCI/julia-coverage#v1:
14+
codecov: true

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
${{ runner.os }}-test-${{ env.cache-name }}-
3737
${{ runner.os }}-test-
3838
${{ runner.os }}-
39+
- uses: cjdoris/julia-downgrade-compat-action@v1
40+
if: ${{ matrix.version == '1.9' }}
41+
with:
42+
skip: Pkg, Random
3943
- uses: julia-actions/julia-buildpkg@v1
4044
- uses: julia-actions/julia-runtest@v1
4145
env:

.github/workflows/spelling.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Spell Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
typos-check:
7+
name: Spell Check with Typos
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Actions Repository
11+
uses: actions/checkout@v4
12+
- name: Check spelling
13+
uses: crate-ci/typos@master
14+
with:
15+
config: .typos.toml

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[default.extend-words]
2+
ket = "ket"

Project.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name = "BPGates"
22
uuid = "2c1a90cd-bec4-4415-ae35-245016909a8f"
3-
authors = ["ShuGe-MIT <[email protected]>", "Stefan Krastanov <[email protected]>"]
4-
version = "1.0.0"
3+
authors = ["Shu Ge <[email protected]>", "Stefan Krastanov <[email protected]>"]
4+
version = "1.0.1"
55

66
[deps]
77
QuantumClifford = "0525e862-1e90-11e9-3e4d-1b39d7109de1"
88
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
99

1010
[compat]
1111
QuantumClifford = "0.8"
12+
Random = "1"
1213
julia = "1.9"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
<tr>
1111
<td>Continuous integration</td>
1212
<td>
13-
<a href="https://github.com/QuantumSavory/BPGates.jl/actions?query=workflow%3ACI+branch%3Amaster"><img src="https://img.shields.io/github/actions/workflow/status/QuantumSavory/BPGates.jl/ci.yml?branch=main" alt="GitHub Workflow Status"></a>
13+
<a href="https://github.com/QuantumSavory/BPGates.jl/actions?query=workflow%3ACI+branch%3Amaster"><img src="https://github.com/QuantumSavory/BPGates.jl/actions/workflows/ci.yml/badge.svg" alt="GitHub Workflow Status"></a>
14+
<a href="https://buildkite.com/quantumsavory/bpgates"><img src="https://badge.buildkite.com/158b11c71354091501f5e7d3b81d53e13afc493dbb679ed580.svg" alt="Buildkite Workflow Status"></a>
1415
</td>
1516
</tr><tr></tr>
1617
<tr>

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ makedocs(
1212
#bib,
1313
doctest = false,
1414
clean = true,
15+
warnonly = :missing_docs,
1516
sitename = "BPGates.jl",
1617
format = Documenter.HTML(),
1718
modules = [BPGates],

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ All of these methods would require a Monte Carlo Quantum Trajectories simulation
6565

6666
## Short Example
6767

68-
You can initialize a Bell State by specifing the phases and convert it to stabilizer representation.
68+
You can initialize a Bell State by specifying the phases and convert it to stabilizer representation.
6969
```
7070
julia> bell_state = BellState([0,1,1,0])
7171
BellState(Bool[0, 1, 1, 0])

src/BPGates.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ end
158158
"""
159159
Coincidence measurement on Bell pairs.
160160
161-
The first argument, `midx`, spefies the X, Y, Z basis respectively.
161+
The first argument, `midx`, specifies the X, Y, Z basis respectively.
162162
The second argument, `sidx`, indicates which Bell pair is being measured.
163163
164164
The state will be reset to `00` after being applied measurement.
@@ -371,7 +371,7 @@ end
371371
# Typically good operations
372372
##############################
373373

374-
"""A bilateral CNOT preceeded by permutations on each of the pairs that map the `00` state to itself."""
374+
"""A bilateral CNOT preceded by permutations on each of the pairs that map the `00` state to itself."""
375375
struct CNOTPerm <: BellOp
376376
single1::Int
377377
single2::Int
@@ -611,7 +611,7 @@ end
611611
##############################
612612

613613
"""
614-
Convert a Bell perserving gate from `BPGates` representation to a sequence of Clifford gate from `QuantumClifford`.
614+
Convert a Bell preserving gate from `BPGates` representation to a sequence of Clifford gate from `QuantumClifford`.
615615
616616
Translating [`BellMeasure`](@ref) is not precise,
617617
because a real Bell measurement would destroy the Bell pair,

0 commit comments

Comments
 (0)