@@ -317,23 +317,23 @@ def test_op_repr():
317
317
b ,
318
318
key = 'out' ,
319
319
invert_mask = (False , True ),
320
- confusion_map = {(0 ,): np .array ([[0 , 1 ], [1 , 0 ]], dtype = np .int64 )},
320
+ confusion_map = {(0 ,): np .array ([[0 , 1 ], [1 , 0 ]], dtype = np .dtype ( ' int64' ) )},
321
321
)
322
322
) == (
323
323
"cirq.measure(cirq.LineQubit(0), cirq.LineQubit(1), "
324
324
"key=cirq.MeasurementKey(name='out'), "
325
325
"invert_mask=(False, True), "
326
- "confusion_map={(0,): np.array([[0, 1], [1, 0]], dtype=np.int64)})"
326
+ "confusion_map={(0,): np.array([[0, 1], [1, 0]], dtype=np.dtype(' int64') )})"
327
327
)
328
328
329
329
330
330
def test_repr ():
331
331
gate = cirq .MeasurementGate (
332
- 3 , 'a' , (True , False ), (1 , 2 , 3 ), {(2 ,): np .array ([[0 , 1 ], [1 , 0 ]], dtype = np .int64 )}
332
+ 3 , 'a' , (True , False ), (1 , 2 , 3 ), {(2 ,): np .array ([[0 , 1 ], [1 , 0 ]], dtype = np .dtype ( ' int64' ) )}
333
333
)
334
334
assert repr (gate ) == (
335
335
"cirq.MeasurementGate(3, cirq.MeasurementKey(name='a'), (True, False), "
336
- "qid_shape=(1, 2, 3), confusion_map={(2,): np.array([[0, 1], [1, 0]], dtype=np.int64)})"
336
+ "qid_shape=(1, 2, 3), confusion_map={(2,): np.array([[0, 1], [1, 0]], dtype=np.dtype(' int64') )})"
337
337
)
338
338
339
339
0 commit comments