Skip to content

Commit 395f68f

Browse files
authored
Update yaoapi.jl
1 parent 8954de9 commit 395f68f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/yaoapi.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using YaoBlocks
22
using LuxurySparse: IMatrix
3-
using BitBasis: readbit,bcat
3+
using BitBasis
44

55
Locs = Union{Vector{Int}, Int}
66
"""
@@ -30,7 +30,7 @@ The reset operation in Open QASM, note here, instead of keeping the remaining bi
3030
we measure the target qubit directly. See `measure_collapseto!` in `Yao.jl` for detail.
3131
"""
3232
function RESET(nbits::Int, locs::Locs)
33-
Measure(nbits; locs=locs, resetto=bcat(bit"101" for i in 1:nbits))
33+
Measure(nbits; locs=locs, resetto=bcat(bit"0" for i in 1:nbits))
3434
end
3535

3636
"""

0 commit comments

Comments
 (0)