Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qbraid token calculator #222

Open
junliangtan1 opened this issue May 18, 2023 · 2 comments
Open

qbraid token calculator #222

junliangtan1 opened this issue May 18, 2023 · 2 comments
Labels
enhancement ✨ New feature or request feature request 💡 Request for new integration, feature, or tool

Comments

@junliangtan1
Copy link
Contributor

junliangtan1 commented May 18, 2023

What should we have?

A calculator for how much qbraid token estimate spending, we can apply it on top of the device wrapper or calculate with input variable(shots) according to the device.

related to #32 and #33

Implementation

No response

@junliangtan1 junliangtan1 added enhancement ✨ New feature or request feature request 💡 Request for new integration, feature, or tool labels May 18, 2023
@ryanhill1
Copy link
Member

Agreed! Related to #32.

Right now since the IBMQ devices are free, would only be relevant for Amazon Braket devices, see Amazon Braket pricing. Would be pretty straightforward to implement for the QPUs since they each operate on a per-task / per-shot basis. But on-demand simulator jobs (e.g. SV1, DM1) and hybrid jobs are priced on a per-minute basis, which there isn't a reliable way to estimate up-front. Amazon Braket does have a cost tracker (amazon-braket/amazon-braket-sdk-python#404) which can be used to track the cost of simulator tasks as they are going, so maybe could substitute that in for these devices?

@ryanhill1
Copy link
Member

Should be an abstract method estimate_run_cost or similar implemented in the respective QuantumDevice class which returns USD estimate of quantum job.

For Amazon Braket, can potentially do programmatically via https://github.com/amazon-braket/amazon-braket-sdk-python/blob/main/src/braket/tracking/pricing.py

TBD for IBM once pricing rolls out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request feature request 💡 Request for new integration, feature, or tool
Projects
None yet
Development

No branches or pull requests

2 participants