Skip to content

Commit

Permalink
buildkite (#7)
Browse files Browse the repository at this point in the history
* buildkite

* update Project.toml

* doc update

* spelling

* downgrade compat
  • Loading branch information
Krastanov authored Dec 16, 2023
1 parent 6d0489e commit 5495c2e
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 7 deletions.
14 changes: 14 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
env:
CODECOV_TOKEN: 61f19b8a-59a0-4120-b30a-6b0cb93452c2
JULIA_NUM_THREADS: auto
QUANTUMSAVORY_PLOT_TEST: true

steps:
- label: "CI Buildkite"
plugins:
- JuliaCI/julia#v1:
version: "1"
- QuantumSavory/julia-xvfb#v1:
- JuliaCI/julia-test#v1: ~
- JuliaCI/julia-coverage#v1:
codecov: true
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: cjdoris/julia-downgrade-compat-action@v1
if: ${{ matrix.version == '1.9' }}
with:
skip: Pkg, Random
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Spell Check

on: [pull_request]

jobs:
typos-check:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master
with:
config: .typos.toml
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default.extend-words]
ket = "ket"
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name = "BPGates"
uuid = "2c1a90cd-bec4-4415-ae35-245016909a8f"
authors = ["ShuGe-MIT <[email protected]>", "Stefan Krastanov <[email protected]>"]
version = "1.0.0"
authors = ["Shu Ge <[email protected]>", "Stefan Krastanov <[email protected]>"]
version = "1.0.1"

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

[compat]
QuantumClifford = "0.8"
Random = "1"
julia = "1.9"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<tr>
<td>Continuous integration</td>
<td>
<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>
<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>
<a href="https://buildkite.com/quantumsavory/bpgates"><img src="https://badge.buildkite.com/158b11c71354091501f5e7d3b81d53e13afc493dbb679ed580.svg" alt="Buildkite Workflow Status"></a>
</td>
</tr><tr></tr>
<tr>
Expand Down
1 change: 1 addition & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ makedocs(
#bib,
doctest = false,
clean = true,
warnonly = :missing_docs,
sitename = "BPGates.jl",
format = Documenter.HTML(),
modules = [BPGates],
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ All of these methods would require a Monte Carlo Quantum Trajectories simulation

## Short Example

You can initialize a Bell State by specifing the phases and convert it to stabilizer representation.
You can initialize a Bell State by specifying the phases and convert it to stabilizer representation.
```
julia> bell_state = BellState([0,1,1,0])
BellState(Bool[0, 1, 1, 0])
Expand Down
6 changes: 3 additions & 3 deletions src/BPGates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ end
"""
Coincidence measurement on Bell pairs.
The first argument, `midx`, spefies the X, Y, Z basis respectively.
The first argument, `midx`, specifies the X, Y, Z basis respectively.
The second argument, `sidx`, indicates which Bell pair is being measured.
The state will be reset to `00` after being applied measurement.
Expand Down Expand Up @@ -371,7 +371,7 @@ end
# Typically good operations
##############################

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

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

2 comments on commit 5495c2e

@Krastanov
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/97228

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.1 -m "<description of version>" 5495c2e2d1aec0a16ba8a3250e6e9c1e90917d3b
git push origin v1.0.1

Please sign in to comment.