Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def simulate_summary_data(self, lengths: Union[list, tuple], num_seq: int, repetitions: int,
error_rate: float) -> RBSummaryDataset:
# This creates this error model in the format needed by the simulator
gate_error_rate_dict = {q: error_rate for q in self._chip_spec.qubit_labels}
error_model = rb.simulate.create_locally_gate_independent_pauli_error_model(self._chip_spec,
gate_error_rate_dict,
ptype='uniform')
return rb.simulate.rb_with_pauli_errors(self._chip_spec, error_model, lengths, num_seq, repetitions,
rbtype='CRB', verbosity=1)