@@ -142,7 +142,7 @@ def oneshot_circuit_simulator_for_tensored_independent_pauli_errors(circuit, psp
142
142
143
143
for l in range (depth ):
144
144
145
- layer = circuit .get_layer_with_idles (l ,idleGateName = idle1Q_placeholder )
145
+ layer = circuit .get_layer_with_idles (l , idleGateName = idle1Q_placeholder )
146
146
s , p = _symp .symplectic_rep_of_clifford_layer (layer ,n ,Qlabels = circuit .line_labels ,srep_dict = srep )
147
147
# Apply the perfect layer to the current state.
148
148
sout , pout = _symp .apply_clifford_to_stabilizer_state (s , p , sout , pout )
@@ -183,7 +183,7 @@ def oneshot_circuit_simulator_for_tensored_independent_pauli_errors(circuit, psp
183
183
return outputasstring
184
184
185
185
def rb_with_pauli_errors (pspec , errormodel , lengths , k , counts , subsetQs = None , filename = None , rbtype = 'DRB' ,
186
- rbspec = [], returndata = True , appenddata = False , verbosity = 0 ):
186
+ rbspec = [], returndata = True , appenddata = False , verbosity = 0 , idle1Q_placeholder = 'I' ):
187
187
"""
188
188
Simulates RB with Pauli errors. Can be used to simulated Clifford RB, direct RB and mirror RB. This
189
189
function:
@@ -293,7 +293,7 @@ def rb_with_pauli_errors(pspec, errormodel, lengths, k, counts, subsetQs=None, f
293
293
# print(" - Simulating circuit...",end='')
294
294
295
295
outcome = circuit_simulator_for_tensored_independent_pauli_errors (
296
- c , pspec , errormodel , counts , alloutcomes = False ,idle1Q_placeholder = 'I' )
296
+ c , pspec , errormodel , counts , alloutcomes = False , idle1Q_placeholder = idle1Q_placeholder )
297
297
#EGN: Hardcoded 'I' here. Could make this into an arg, but there's really
298
298
# no need for the user to modify this unless they use 'I' as a gate label.
299
299
if verbosity > 0 : print (lind + 1 ,end = ',' )
@@ -498,7 +498,9 @@ def error_row(er): return _np.array([1-er,0.,0.,er])
498
498
499
499
return errormodel
500
500
501
-
501
+ #
502
+ # TODO : DOES THIS NEED AND IDLE PLACEHOLDER?
503
+ #
502
504
def create_local_pauli_error_model (pspec , oneQgate_errorrate_dict , twoQgate_errorrate_dict ,
503
505
measurement_errorrate_dict = {}, ptype = 'uniform' ):
504
506
"""
0 commit comments