File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ def _sample_measure_results(
379
379
for i in range (repetitions ):
380
380
for key , op in meas_ops .items ():
381
381
meas_indices = [qubit_map [qubit ] for qubit in op .qubits ]
382
- invert_mask = op .gate .invert_mask
382
+ invert_mask = op .gate .full_invert_mask ()
383
383
for j , q in enumerate (meas_indices ):
384
384
results [key ][i ][j ] = full_results [i ][q ] ^ invert_mask [j ]
385
385
else :
@@ -392,7 +392,7 @@ def _sample_measure_results(
392
392
options ["s" ] = self .get_seed ()
393
393
measurements = sampler_fn (options )
394
394
for key , bound in bounds .items ():
395
- invert_mask = meas_ops [key ].gate .invert_mask
395
+ invert_mask = meas_ops [key ].gate .full_invert_mask ()
396
396
for j in range (bound [1 ] - bound [0 ]):
397
397
results [key ][i ][j ] = int (
398
398
measurements [bound [0 ] + j ] ^ invert_mask [j ]
You can’t perform that action at this time.
0 commit comments