@@ -250,7 +250,7 @@ def __init__(
250250
251251 def get_seed (self ):
252252 # Limit seed size to 32-bit integer for C++ conversion.
253- return self ._prng .randint (2 ** 31 - 1 )
253+ return self ._prng .randint (2 ** 31 - 1 )
254254
255255 def _run (
256256 self ,
@@ -540,7 +540,7 @@ def simulate_sweep(
540540 if initial_state .dtype != np .complex64 :
541541 raise TypeError (f"initial_state vector must have dtype np.complex64." )
542542 input_vector = initial_state .view (np .float32 )
543- if len (input_vector ) != 2 ** num_qubits * 2 :
543+ if len (input_vector ) != 2 ** num_qubits * 2 :
544544 raise ValueError (
545545 f"initial_state vector size must match number of qubits."
546546 f"Expected: { 2 ** num_qubits * 2 } Received: { len (input_vector )} "
@@ -672,7 +672,7 @@ def simulate_expectation_values_sweep(
672672 if initial_state .dtype != np .complex64 :
673673 raise TypeError (f"initial_state vector must have dtype np.complex64." )
674674 input_vector = initial_state .view (np .float32 )
675- if len (input_vector ) != 2 ** num_qubits * 2 :
675+ if len (input_vector ) != 2 ** num_qubits * 2 :
676676 raise ValueError (
677677 f"initial_state vector size must match number of qubits."
678678 f"Expected: { 2 ** num_qubits * 2 } Received: { len (input_vector )} "
@@ -807,7 +807,7 @@ def simulate_moment_expectation_values(
807807 if initial_state .dtype != np .complex64 :
808808 raise TypeError (f"initial_state vector must have dtype np.complex64." )
809809 input_vector = initial_state .view (np .float32 )
810- if len (input_vector ) != 2 ** num_qubits * 2 :
810+ if len (input_vector ) != 2 ** num_qubits * 2 :
811811 raise ValueError (
812812 f"initial_state vector size must match number of qubits."
813813 f"Expected: { 2 ** num_qubits * 2 } Received: { len (input_vector )} "
0 commit comments