Skip to content

Execution error on /tutorials/chsh-inequality #3

Description

@andreagreggo2

Describe the issue

What were you trying to do? What happened instead?


Error output

---------------------------------------------------------------------------
ApiException                              Traceback (most recent call last)
File /opt/conda/lib/python3.12/site-packages/qiskit_ibm_runtime/accounts/account.py:327, in CloudAccount.list_instances(self)
    326 try:
--> 327     result = client.search(
    328         query="service_name:quantum-computing",
    329         fields=[
    330             "crn",
    331             "service_plan_unique_id",
    332             "name",
    333             "doc",
    334             "tags",
    335         ],
    336         search_cursor=search_cursor,
    337         limit=100,
    338     ).get_result()
    339 except:

File /opt/conda/lib/python3.12/site-packages/ibm_platform_services/global_search_v2.py:228, in GlobalSearchV2.search(self, query, fields, search_cursor, x_request_id, x_correlation_id, account_id, limit, timeout, sort, is_deleted, is_reclaimed, impersonate_user, can_tag, is_project_resource, **kwargs)
    227 url = '/v3/resources/search'
--> 228 request = self.prepare_request(
    229     method='POST',
    230     url=url,
    231     headers=headers,
    232     params=params,
    233     data=data,
    234 )
    236 response = self.send(request, **kwargs)

File /opt/conda/lib/python3.12/site-packages/ibm_cloud_sdk_core/base_service.py:441, in BaseService.prepare_request(self, method, url, headers, params, data, files, **kwargs)
    439 request['data'] = data
--> 441 self.authenticator.au

Cell code

xxxxxxxxxx # To run on hardware, select the backend with the fewest number of jobs in the queueservice = QiskitRuntimeService()backend = service.least_busy(    operational=True, simulator=False, min_num_qubits=127)backend.name

Context

  • Page: https://doqumentation.org/tutorials/chsh-inequality
  • Environment: custom
  • Execution mode: credentials
  • Error type: generic
  • User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3.1 Safari/605.1.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions