If you’re having any trouble running your Pyquil programs locally or on the QPU, please check the following things before sending a support request. It will save you time and make it easier for us to help!
Ensure that your pyQuil version is up to date. If you’re using
pip, you can do this with
pip freeze. Within your script, you can use
import pyquil print(pyquil.__version__)
If the error appears to be authentication-related, or makes any mention of your
user_auth_token, then please update your token following the directions at https://qcs.rigetti.com/auth/token.
Run your script with debug logging enabled. If you’re running a script, you can enable that using an environment variable:
LOG_LEVEL=DEBUG pyquil my_script.py
import logging from pyquil.api._logger import logger logger.setLevel(logging.DEBUG)
If the problem still isn’t clear, then we can help! Please send your debug log to us,
along with the contents of your
~/.forest_config files, at our
support page. Thanks for using pyQuil!