tequila.simulators.simulator_api.pick_backend

tequila.simulators.simulator_api.pick_backend(backend: str = None, samples: int = None, noise: tequila.circuit.noise.NoiseModel = None, device=None, exclude_symbolic: bool = True) → str[source]

Choose, or verify, a backend for the user.

Parameters
  • backend (str, optional:) – what backend to choose or verify. if None: choose for the user.

  • samples (int, optional:) – if int and not None, choose (verify) a simulator which supports sampling.

  • noise (str or NoiseModel, optional:) – if not None, choose (verify) a simulator supports the specified noise.

  • device (optional:) – verify that a given backend supports the specified device. MUST specify backend, if not None. if None: do not emulate or use real device.

  • exclude_symbolic (bool, optional:) – whether or not to exclude the tequila debugging simulator from the available simulators, when choosing.

Returns

the name of the chosen (or verified) backend.

Return type

str