When passing a circuit to mctrajectory
, pftrajectory
and others, verify that it does not perform any unsafe operations
#131
Labels
sMZ(1)
andsMZ(2)
will cause an out-of-bounds behavior that could crash the program without throwing an error. This is because they are equivalent tosMZ(1, 0)
andsMZ(2, 0)
and will try to access index0
. I recommend changing the default parameter ofbit
to1
instead of0
. Ideally, it would be better to check the indices inpftrajectories
for the circuit we are going to simulate before callingapply!
.The text was updated successfully, but these errors were encountered: