Example #1
0
 def __init__(self, backend: basebackend):
     """
     Initializes a Parameterized Controlled-Z gate builder.
     Args:
         backend: Backend for which to construct the gates.
     """
     self._inst_map = backend.defaults().instruction_schedule_map
     self._config = backend.configuration()
    def __init__(self, backend: basebackend):
        """
        Initializes a RZXGate calibration builder.

        Args:
            backend: Backend for which to construct the gates.

        Raises:
            QiskitError: if open pulse is not supported by the backend.
        """
        super().__init__()
        if not backend.configuration().open_pulse:
            raise QiskitError('Calibrations can only be added to Pulse-enabled backends, '
                              'but {0} is not enabled with Pulse.'.format(backend.name()))

        self._inst_map = backend.defaults().instruction_schedule_map
        self._config = backend.configuration()
        self._channel_map = backend.configuration().qubit_channel_mapping
 def __init__(self, backend: basebackend):
     """EchoRZXWeylDecomposition pass."""
     self._inst_map = backend.defaults().instruction_schedule_map
     super().__init__()