How to use the pygsti.extras.rb.simulate.rb_with_pauli_errors function in pyGSTi

To help you get started, we’ve selected a few pyGSTi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github QuTech-Delft / qtt / src / qtt / algorithms / randomized_benchmarking.py View on Github external
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)