Skip to content

Commit ba0a4eb

Browse files
committed
Correction to issue Qiskit#14181
1 parent 551819f commit ba0a4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiskit/quantum_info/states/quantum_state.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def _vector_to_dict(vec, dims, decimals=None, string_labels=False):
400400

401401
# Make dict of tuples
402402
if string_labels:
403-
return dict(zip(kets, vec[inds]))
403+
return dict(zip(kets, vals[inds]))
404404

405405
return {tuple(ket): val for ket, val in zip(kets, vals[inds])}
406406

0 commit comments

Comments
 (0)