Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding iscss for issue #222 #241

Merged
merged 43 commits into from
Mar 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
4dbc3fa
adding iscss
Mar 18, 2024
0bb6ad7
updating changelog
Mar 18, 2024
3942a72
adding iscss function
Mar 18, 2024
0c6a646
multimethods
Mar 18, 2024
0274e62
changes
Mar 18, 2024
d1b1e2f
function iscss
Mar 18, 2024
e199ac2
iscss function
Mar 18, 2024
7d2cad8
iscss function
Mar 18, 2024
7d940b7
iscss function
Mar 18, 2024
9a10fd1
iscss function
Mar 18, 2024
baa6538
iscss function
Mar 18, 2024
490ae99
iscss function
Mar 19, 2024
75864d7
iscss function
Mar 19, 2024
a9b14fd
iscss function
Mar 19, 2024
c39abd0
iscss function
Mar 19, 2024
624f5e8
iscss function
Mar 19, 2024
664dc1b
iscss function
Mar 19, 2024
ce63f8e
iscss function
Mar 19, 2024
d52b2b6
iscss function
Mar 19, 2024
80e5693
iscss function
Mar 19, 2024
db6ff0f
iscss function
Mar 19, 2024
074bc47
iscss function
Mar 19, 2024
cfed1ee
iscss function
Mar 19, 2024
4f43dc2
iscss function
Mar 19, 2024
f82a018
iscss function
Mar 19, 2024
4411b85
adding iscss function
Mar 19, 2024
e7d171f
Update test/test_iscss.jl
Fe-r-oz Mar 19, 2024
a62aa4f
adding iscss function
Mar 19, 2024
033fff5
adding iscss function
Mar 19, 2024
5c2e7b6
adding iscss function
Mar 19, 2024
e742b75
adding iscss function
Mar 19, 2024
c674273
Update src/ecc/codes/clevecode.jl
Fe-r-oz Mar 19, 2024
b03ed6a
Merge branch 'master' into isCSS
Fe-r-oz Mar 19, 2024
ccc51fd
Update CHANGELOG.md
Fe-r-oz Mar 19, 2024
9dadece
Update test_ecc_iscss.jl
Fe-r-oz Mar 19, 2024
a84a6b2
Update fivequbit.jl
Fe-r-oz Mar 19, 2024
460a489
Update gottesman.jl
Fe-r-oz Mar 19, 2024
43b3ce8
Update CHANGELOG.md
Fe-r-oz Mar 19, 2024
56e1705
Update test_ecc_iscss.jl
Fe-r-oz Mar 20, 2024
e966c1c
Update test_ecc_iscss.jl
Fe-r-oz Mar 20, 2024
a8ed100
Update test_ecc_iscss.jl
Fe-r-oz Mar 20, 2024
063b417
Update test_ecc_iscss.jl
Fe-r-oz Mar 20, 2024
6eabd9c
Update CHANGELOG.md
Krastanov Mar 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
iscss function
Fe-r-oz committed Mar 18, 2024
commit 7d2cad832a6190bb8ae6aaa764ca8da8b2f538a2
2 changes: 1 addition & 1 deletion src/ecc/ECC.jl
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@
See also: [`parity_checks`](@ref)"""
function parity_checks_x(code::AbstractECC)
if iscss(code)

Check warning on line 40 in src/ecc/ECC.jl

Codecov / codecov/patch

src/ecc/ECC.jl#L40

Added line #L40 was not covered by tests
# Existing implementation for CSS codes
else
throw(lazy"Codes of type $(typeof(code)) do not have separate X and Z parity checks, either because they are not a CSS code and thus inherently do not have separate checks, or because its separate checks are not yet implemented in this library.")
@@ -50,15 +50,15 @@
See also: [`parity_checks`](@ref)"""
function parity_checks_z(code::AbstractECC)
if iscss(code)

Check warning on line 53 in src/ecc/ECC.jl

Codecov / codecov/patch

src/ecc/ECC.jl#L53

Added line #L53 was not covered by tests
# Existing implementation for CSS codes
else
throw(lazy"Codes of type $(typeof(code)) do not have separate X and Z parity checks, either because they are not a CSS code and thus inherently do not have separate checks, or because its separate checks are not yet implemented in this library.")
end
end

function iscss(code::AbstractECC)
return false # Default: not CSS
return true # Default: CSS

Check warning on line 61 in src/ecc/ECC.jl

Codecov / codecov/patch

src/ecc/ECC.jl#L60-L61

Added lines #L60 - L61 were not covered by tests
end

parity_checks(s::Stabilizer) = s
2 changes: 2 additions & 0 deletions src/ecc/codes/steanecode.jl
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@

struct Steane7 <: AbstractECC end

iscss(c::Steane7) = true

Check warning on line 5 in src/ecc/codes/steanecode.jl

Codecov / codecov/patch

src/ecc/codes/steanecode.jl#L5

Added line #L5 was not covered by tests

parity_checks(c::Steane7) = S"___XXXX
_XX__XX
X_X_X_X