You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/deprecated.jl
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,3 +10,17 @@ function equal_bases(a, b)
10
10
end
11
11
returntrue
12
12
end
13
+
14
+
struct PauliBasis{S,B} <:Basis
15
+
shape::S
16
+
bases::B
17
+
functionPauliBasis(num_qubits::T) where {T<:Integer}
18
+
Base.depwarn("`PauliBasis` will be removed in future versions as it does not represent the Pauli operator basis. SpinBasis(1//2)^N or NLevelBasis(2)^N should likely be used instead.", :PauliBasis)
19
+
shape = [2for _ in1:num_qubits]
20
+
bases =Tuple(SpinBasis(1//2) for _ in1:num_qubits)
0 commit comments