RuntimeOptions

class RuntimeOptions : public xacc::Singleton<RuntimeOptions>, public std::map<std::string, std::string>

The RuntimeOptions class is a Singleton mapping of string keys to string values. It is used throughout XACC to provide and share runtime options that are provided from XACC users via the command line.

Public Functions

bool exists(const std::string &key)

Convenience method to get whether the give key exists in the RuntimeOptions.

Parameters
  • key: The key to check exists