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

Recover backend properties and noise model #409

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

yao-cqc
Copy link
Contributor

@yao-cqc yao-cqc commented Oct 28, 2024

Description

  • Serialised BackendProperties is now saved in the misc field of a BackendInfo.
  • Method for constructing a BackendProperties from a BackendInfo via the serialised BackendProperties.
  • Method for constructing a BackendProperties from a legacy BackendInfo.
  • Method for constructing NoiseModel from a BackendProperties

Example

from pytket.extensions.qiskit import IBMQBackend
from pytket.extensions.qiskit.qiskit_convert import (
    backend_properties_from_backendinfo, 
    backend_properties_from_legacy_backendinfo, 
    noise_model_from_backend_properties,
)

b = IBMQBackend("ibm_brisbane")
bp1 = backend_properties_from_legacy_backendinfo(b.backend_info)
bp2 = backend_properties_from_backendinfo(b.backend_info)
noise_model1 = noise_model_from_backend_properties(bp1)
noise_model2 = noise_model_from_backend_properties(bp2)

Related issues

Implements #370

Checklist

  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant