CQCL / pytket-qiskit

pytket-qiskit, extensions for pytket quantum SDK
Apache License 2.0
17 stars 13 forks source link

Recover backend properties and noise model #409

Open yao-cqc opened 3 weeks ago

yao-cqc commented 3 weeks ago

Description

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