Skip to content

Commit 39bccf0

Browse files
kevinsungStrilanc
authored andcommitted
fix xmon_stepper state size error message (#279)
1 parent e6927bb commit 39bccf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cirq/google/sim/xmon_stepper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def _check_state(self, state: np.ndarray):
341341
if state.size != 1 << self._num_qubits:
342342
raise ValueError(
343343
'state state has incorrect size. Expected %s but was %s.' %
344-
(state.size, 1 << self._num_qubits))
344+
(1 << self._num_qubits, state.size))
345345
if state.dtype != np.complex64:
346346
raise ValueError(
347347
'Reset state has invalid dtype. Expected %s but was %s' % (

0 commit comments

Comments
 (0)