Installation Instructions#

  1. Users need to install Python 3.8 in advance (no minor versions are distinguished). Other versions of Python are not currently supported. Please search for relevant tutorials on your own for Python installation.

  2. Create a virtual environment, activate the virtual environment, enter Python – version at the command line, and check if the Python version is 3.8.

    ../_images/python-version.jpg
  3. Log in to the website( https://cpqc.qboson.com/ )Obtain user ID and SDK authorization code.

  4. Download the corresponding SDK from the official website according to the personal computer operating system. The file name is such as: kaiwu-sdk.linux.0.9.1.zip (mac has two versions, intel and m, If there is a problem with the architecture during use, please try a different version. If neither version works, please contact the relevant personnel).

  5. After extracting the SDK installation package, there will be a whl file (Taking version 0.9.3 as an example)

    ../_images/sdk1.png
  6. Install SDK, pay attention to the whl file path during pip installation:

    pip3 install kaiwu-0.9.3-py3-none-any.whl
    
  7. Add authorization initialization code at the beginning of the modeling code. If there is an error in initialization, please verify the user ID and SDK authorization code or clear the kaiwu/license.lic file, and then reinitialize.

    import kaiwu as kw
    kw.license.init(user_id="123456", sdk_code="AjUvlTvWrWeidADu5Vbf6pceVmuX")