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

Passing datetime to backend.properties doesn't work #1127

Closed
jyu00 opened this issue Oct 4, 2023 · 1 comment
Closed

Passing datetime to backend.properties doesn't work #1127

jyu00 opened this issue Oct 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jyu00
Copy link
Collaborator

jyu00 commented Oct 4, 2023

Describe the bug

Passing datetime to backend.properties() raises NotImplementedError: 'datetime' is not supported by cloud runtime.

Steps to reproduce

from qiskit_ibm_runtime import QiskitRuntimeService
from datetime import datetime

service = QiskitRuntimeService(channel="ibm_quantum")
backend = service.backend("ibm_cleveland")
dt = datetime(2023, 9, 28, 15, 54, 21)
p = backend.properties(datetime=dt)

Expected behavior

It should return backend properties for the given datetime. It's also unclear what "cloud runtime" means.

Suggested solutions

Additional Information

  • qiskit-ibm-runtime version:
  • Python version:
  • Operating system:
@jyu00 jyu00 added the bug Something isn't working label Oct 4, 2023
@kt474
Copy link
Member

kt474 commented Oct 4, 2023

This was fixed in #1070, should work if you update qiskit-ibm-runtime

Screenshot 2023-10-04 at 10 54 45 AM

@kt474 kt474 closed this as completed Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants