How to use the pygsti.obj.ProcessorSpec 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 __init__(self, gate_names: List[str] = None):
        """Construct object for randomized benchmarking for given set of supported gates.
        Args:
            gate_names : list of supported gate names
                Default: ['X', 'X90', 'Y', 'Y90']
        """
        if gate_names is None:
            gate_names = ['X', 'X90', 'Y', 'Y90']

        gst_gate_names = pygsti_utils.to_gst_gate_list(gate_names)

        self._qubit_labels = ['Q0']
        self._chip_spec = pygsti.obj.ProcessorSpec(1, gst_gate_names, availability={}, qubit_labels=self._qubit_labels)