Skip to content

Commit d3e84c1

Browse files
committed
Useful stim references.
Signed-off-by: Stefan Krastanov <stefan@krastanov.org>
1 parent 050ec2e commit d3e84c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/QuantumClifford.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ function LinearAlgebra.inv(c::CliffordOperator; phases=true)
13811381
end
13821382
end
13831383
if phases
1384-
ci*c*ci # TODO can this be skipped
1384+
ci*c*ci # TODO perform this inplace as in Stim https://github.com/quantumlib/Stim/blob/e51ea66d213b25920e72c08e53266ec56fd14db4/src/stim/stabilizers/tableau.cc#L383
13851385
else
13861386
ci
13871387
end

src/symbolic_cliffords.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ abstract type AbstractSymbolicOperator <: AbstractCliffordOperator end
44
abstract type AbstractSingleQubitOperator <: AbstractSymbolicOperator end
55
abstract type AbstractTwoQubitOperator <: AbstractSymbolicOperator end
66

7+
# Stim has a good list of specialized single and two qubit operations at https://github.com/quantumlib/Stim/blob/e51ea66d213b25920e72c08e53266ec56fd14db4/src/stim/stabilizers/tableau_specialized_prepend.cc
8+
# Note that their specialized operations are for prepends (right multiplications), while we implement append (left multiplication) operations.
9+
710
"""A "symbolic" Hadamard operator which permits faster multiplication than an operator expressed as an explicit tableau.
811
912
```jldoctest

0 commit comments

Comments
 (0)