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

Upgrades for DynamicsBackend.from_backend #298

Open
rupeshknn opened this issue Dec 18, 2023 · 0 comments
Open

Upgrades for DynamicsBackend.from_backend #298

rupeshknn opened this issue Dec 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rupeshknn
Copy link
Contributor

Information

  • Qiskit Dynamics version: main
  • Python version: 3.10
  • Operating system: linux

What is the current behavior?

  1. Instantiating a DynamicsBackend using DynamicsBackend.from_backend has an incorrect Target object and a redundant subsystem list. Since the only open-access ibmq backends are 127 qubits, backend info is lengthy.
  2. DynamicsBackend.target.qubit_properties is empty when Instantiated using DynamicsBackend.from_backend. Qubit frequencies are needed to run calibration experiments. The information is available in Solver through an internal attribute _channel_carrier_freqs.

Steps to reproduce the problem

from qiskit_ibm_provider import ibm_provider
from qiskit_dynamics import DynamicsBackend

provider = ibm_provider.IBMProvider()
kyoto = provider.get_backend('ibm_kyoto')
sim_backend = DynamicsBackend.from_backend(kyoto,subsystem_list=[0])

# 1.)
print("num of qubits = ", sim_backend.num_qubits) # or sim_backend.target.num_qubits
# num of qubits = 127
print("subsystem dims = ", sim_backend.options.subsystem_dims`)
# subsystem dims = [3,1,1,1.....(127 times)]

2.)
print(kyoto.target.qubit_properties[0].frequency)
# 4908834667.169063
print(sim_backend.target.qubit_properties[0].frequency)
# TypeError: 'NoneType' object is not subscriptable

Suggested solutions

  1. DynamicsBackend.from_backend must assign a Target with the unused qubits instructions removed.`
  2. The qubit frequencies estimate as available in the Hardware should be available in DynamicsBackend.target.qubit_properties or alternatively, it can be demonstrated in the tutorial on how to access and add the qubit frequencies to target.
@rupeshknn rupeshknn added the enhancement New feature or request label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant