Skip to content

Commit a30997b

Browse files
committed
remove nonsense code
1 parent 066d7c2 commit a30997b

File tree

3 files changed

+0
-90
lines changed

3 files changed

+0
-90
lines changed

src/QuantumClifford.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -993,23 +993,17 @@ end
993993
# Conversion and promotion
994994
##############################
995995

996-
Base.promote_rule(::Type{<:MixedStabilizer{T}} , ::Type{<:Stabilizer{T}} ) where {T<:Tableau} = Stabilizer{T}
997996
Base.promote_rule(::Type{<:MixedStabilizer{T}} , ::Type{<:MixedStabilizer{T}}) where {T<:Tableau} = Stabilizer{T}
998-
Base.promote_rule(::Type{<:MixedStabilizer{T}} , ::Type{<:Destabilizer{T}} ) where {T<:Tableau} = MixedDestabilizer{T}
999997
Base.promote_rule(::Type{<:Stabilizer{T}} , ::Type{<:Destabilizer{T}} ) where {T<:Tableau} = MixedDestabilizer{T}
1000998
Base.promote_rule(::Type{<:Destabilizer{T}} , ::Type{<:Destabilizer{T}} ) where {T<:Tableau} = MixedDestabilizer{T}
1001999
Base.promote_rule(::Type{<:MixedDestabilizer{T}}, ::Type{<:Stabilizer{T}} ) where {T<:Tableau} = MixedDestabilizer{T}
10021000
Base.promote_rule(::Type{<:MixedDestabilizer{T}}, ::Type{<:Destabilizer{T}} ) where {T<:Tableau} = MixedDestabilizer{T}
1003-
Base.promote_rule(::Type{<:MixedDestabilizer{T}}, ::Type{<:MixedStabilizer{T}}) where {T<:Tableau} = MixedDestabilizer{T}
10041001

1005-
Base.convert(::Type{<:Stabilizer{T}} , x::MixedStabilizer{T} ) where {T<:Tableau} = Stabilizer(tab(x))
10061002
Base.convert(::Type{<:MixedStabilizer{T}} , x::MixedStabilizer{T} ) where {T<:Tableau} = Stabilizer(tab(x))
10071003
Base.convert(::Type{<:Stabilizer{T}} , x::Destabilizer{T} ) where {T<:Tableau} = MixedDestabilizer(x)
10081004
Base.convert(::Type{<:Destabilizer{T}} , x::Destabilizer{T} ) where {T<:Tableau} = MixedDestabilizer(x)
10091005
Base.convert(::Type{<:MixedDestabilizer{T}} , x::Stabilizer{T} ) where {T<:Tableau} = MixedDestabilizer(x)
10101006
Base.convert(::Type{<:MixedDestabilizer{T}} , x::Destabilizer{T} ) where {T<:Tableau} = MixedDestabilizer(x)
1011-
Base.convert(::Type{<:Destabilizer{T}} , x::MixedStabilizer{T} ) where {T<:Tableau} = MixedDestabilizer(Stabilizer(tab(x)))
1012-
Base.convert(::Type{<:MixedDestabilizer{T}} , x::MixedStabilizer{T} ) where {T<:Tableau} = MixedDestabilizer(Stabilizer(tab(x)))
10131007

10141008
##############################
10151009
# Helpers for binary codes

src/linalg.jl

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -194,81 +194,6 @@ julia> tensor(d, md)
194194
+ _X
195195
```
196196
197-
Tensor product between [`MixedStabilizer`](@ref) and [`Stabilizer`](@ref):
198-
199-
```jldoctest promote
200-
julia> ms = MixedStabilizer(S"-XZ//-ZX")
201-
- XZ
202-
- ZX
203-
204-
julia> tensor(S"X", ms)
205-
+ X__
206-
- _XZ
207-
- _ZX
208-
```
209-
210-
Tensor product between [`Stabilizer`](@ref) and [`Destabilizer`](@ref):
211-
212-
```jldoctest promote
213-
julia> tensor(S"X", d)
214-
𝒟ℯ𝓈𝓉𝒶𝒷
215-
+ Z_
216-
- _Y
217-
𝒮𝓉𝒶𝒷
218-
+ X_
219-
- _X
220-
```
221-
222-
Tensor product between [`MixedStabilizer`](@ref) and [`MixedDestabilizer`](@ref):
223-
224-
```jldoctest promote
225-
julia> tensor(md, ms)
226-
𝒟ℯ𝓈𝓉𝒶𝒷
227-
+ Z__
228-
+ _Z_
229-
+ __Z
230-
𝒮𝓉𝒶𝒷━
231-
+ X__
232-
- _XZ
233-
- _ZX
234-
```
235-
236-
Tensor product between [`MixedStabilizer`](@ref) and [`Destabilizer`](@ref):
237-
238-
```jldoctest promote
239-
julia> tensor(d, ms)
240-
𝒟ℯ𝓈𝓉𝒶𝒷
241-
- Y__
242-
+ _Z_
243-
+ __Z
244-
𝒮𝓉𝒶𝒷━
245-
- X__
246-
- _XZ
247-
- _ZX
248-
```
249-
250-
Tensor product between [`Destabilizer`](@ref) and [`Destabilizer`](@ref):
251-
252-
```jldoctest promote
253-
julia> tensor(d, d)
254-
𝒟ℯ𝓈𝓉𝒶𝒷
255-
- Y_
256-
- _Y
257-
𝒮𝓉𝒶𝒷
258-
- X_
259-
- _X
260-
```
261-
262-
Tensor product between [`MixedStabilizer`](@ref) and [`MixedStabilizer`](@ref):
263-
264-
```jldoctest promote
265-
julia> tensor(ms, ms)
266-
- XZ__
267-
- ZX__
268-
- __XZ
269-
- __ZX
270-
```
271-
272197
See also [`tensor_pow`](@ref)."""
273198
function tensor end
274199

test/test_stabs.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,10 @@
6464
d = random_destabilizer(n)
6565
dmd = dmd
6666
@test mixed_destab_looks_good(dmd)
67-
ms = MixedStabilizer(random_stabilizer(n))
68-
mss = sms
69-
@test mixed_stab_looks_good(mss)
7067
sd = random_stabilizer(n)random_destabilizer(n)
7168
@test mixed_destab_looks_good(sd)
72-
mdms = mdms
73-
@test mixed_destab_looks_good(mdms)
74-
dms = dms
75-
@test mixed_destab_looks_good(dms)
7669
dd = dd
7770
@test destab_looks_good(dd)
78-
msms = msms
79-
@test mixed_stab_looks_good(msms)
8071
end
8172
end
8273

0 commit comments

Comments
 (0)