Skip to content

Job limits section improvements #3836

@acastellane

Description

@acastellane

URL to the relevant course

https://quantum.cloud.ibm.com/docs/en/guides/job-limits#maximum-executions

Select all that apply

  • new content request
  • typo
  • code bug
  • out-of-date content
  • broken link
  • other

Describe the fix or the content request.

Based on Support Team experience, we do suggest the following mods.

  1. An example of calculation could be provided. Using for example https://quantum.cloud.ibm.com/docs/en/guides/custom-backend#transpile-against-custom-backends-1 to get the number of ops.

  2. As per the documentation, number of total executions calculation is given as follows:
    For example, if you have a PUB with one circuit, observables with shape (1, 6), and parameters with shape (4, 1), this would render 4×6=24 circuits (or fewer, if some observables commute). If you requested 2,000 shots, then the total number of executions is 24×2,000=48,000

We suggest to extend the explanation.
When the observables do commute the number of executions can be further reduced. Generally, from observables we calculate number of observables using qiskit.
number_of_commuting_groups = observables.group_commuting(qubit_wise=True)
OR
number_of_commuting_groups = observables.group_qubit_wise_commuting()
Once number of commuting groups has been found, the total execution is given by:
Total executions = number_of_commuting_groups * number_of_parameter_set * number_of_shots
If Total Executions > 10 Million, that workload cannot be handled by the quantum software stack currently and usually will fail due to timeout or 1500 errors.

Further, If Error Mitigation Strategies/Twirling are employed, the number of actual executions during runtime would further increase from the Total Executions calculated.

For new content requests - if the request is accepted, do you want to write the content?

I can help the team by providing enough information or by referring them to a specific Subject Matter Expert to write the material

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions