We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a8a1dd commit d104cbaCopy full SHA for d104cba
src/Differential.jl
@@ -5,7 +5,7 @@ export diff_circuit, num_gradient, rotter, cnot_entangler, opgrad, collect_rotbl
5
6
Arbitrary rotation unit, set parameters notrailing, noleading true to remove trailing and leading Z gates.
7
"""
8
-rotter(noleading::Bool=false, notrailing::Bool=false) = noleading ? (notrailing ? Rx(0) : chain(Rx(0), Rz(0))) : (notrailing ? chain(Rz(0), Rx(0)) : chain(Rz(0), Rz(0), Rz(0)))
+rotter(noleading::Bool=false, notrailing::Bool=false) = noleading ? (notrailing ? Rx(0) : chain(Rx(0), Rz(0))) : (notrailing ? chain(Rz(0), Rx(0)) : chain(Rz(0), Rx(0), Rz(0)))
9
10
11
cnot_entangler([n::Int, ] pairs::Vector{Pair}) = ChainBlock
0 commit comments