@@ -276,7 +276,7 @@ def test_trial_result_str():
276
276
)
277
277
== """measurements: m=1
278
278
output state: TensorNetwork([
279
- Tensor(shape=(2,), inds=('i_0',), tags=set( )),
279
+ Tensor(shape=(2,), inds=('i_0',), tags=oset([] )),
280
280
])"""
281
281
)
282
282
@@ -297,7 +297,7 @@ def test_trial_result_repr_pretty():
297
297
result ,
298
298
"""measurements: m=1
299
299
output state: TensorNetwork([
300
- Tensor(shape=(2,), inds=('i_0',), tags=set( )),
300
+ Tensor(shape=(2,), inds=('i_0',), tags=oset([] )),
301
301
])""" ,
302
302
)
303
303
cirq .testing .assert_repr_pretty (result , "cirq.MPSTrialResult(...)" , cycle = True )
@@ -311,7 +311,7 @@ def test_empty_step_result():
311
311
str (step_result )
312
312
== """q(0)=0
313
313
TensorNetwork([
314
- Tensor(shape=(2,), inds=('i_0',), tags=set( )),
314
+ Tensor(shape=(2,), inds=('i_0',), tags=oset([] )),
315
315
])"""
316
316
)
317
317
@@ -324,7 +324,7 @@ def test_step_result_repr_pretty():
324
324
step_result ,
325
325
"""q(0)=0
326
326
TensorNetwork([
327
- Tensor(shape=(2,), inds=('i_0',), tags=set( )),
327
+ Tensor(shape=(2,), inds=('i_0',), tags=oset([] )),
328
328
])""" ,
329
329
)
330
330
cirq .testing .assert_repr_pretty (step_result , "cirq.MPSSimulatorStepResult(...)" , cycle = True )
@@ -394,8 +394,8 @@ def test_simulate_moment_steps_sample():
394
394
assert (
395
395
str (step )
396
396
== """TensorNetwork([
397
- Tensor(shape=(2,), inds=('i_0',), tags=set( )),
398
- Tensor(shape=(2,), inds=('i_1',), tags=set( )),
397
+ Tensor(shape=(2,), inds=('i_0',), tags=oset([] )),
398
+ Tensor(shape=(2,), inds=('i_1',), tags=oset([] )),
399
399
])"""
400
400
)
401
401
samples = step .sample ([q0 , q1 ], repetitions = 10 )
@@ -415,8 +415,8 @@ def test_simulate_moment_steps_sample():
415
415
assert (
416
416
str (step )
417
417
== """TensorNetwork([
418
- Tensor(shape=(2, 2), inds=('i_0', 'mu_0_1'), tags=set( )),
419
- Tensor(shape=(2, 2), inds=('mu_0_1', 'i_1'), tags=set( )),
418
+ Tensor(shape=(2, 2), inds=('i_0', 'mu_0_1'), tags=oset([] )),
419
+ Tensor(shape=(2, 2), inds=('mu_0_1', 'i_1'), tags=oset([] )),
420
420
])"""
421
421
)
422
422
samples = step .sample ([q0 , q1 ], repetitions = 10 )
0 commit comments