Skip to content

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