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

BasicSimulator uses deprecated BackendConfiguration #12843

Closed
1ucian0 opened this issue Jul 29, 2024 · 3 comments · Fixed by #13367
Closed

BasicSimulator uses deprecated BackendConfiguration #12843

1ucian0 opened this issue Jul 29, 2024 · 3 comments · Fixed by #13367
Milestone

Comments

@1ucian0
Copy link
Member

1ucian0 commented Jul 29, 2024

While deprecating the models in qiskit.providers.models I realized that BasicSimulator uses BackendConfiguration, which is one of those models.

@1ucian0 1ucian0 added this to the 1.3.0 milestone Jul 29, 2024
@ElePT
Copy link
Contributor

ElePT commented Jul 30, 2024

When migrating BasicSimulator to BackendV2 we decided to keep the configuration attribute for backward-ish compatibility with the interface of BasicAer (BackendV1), but it's not a required attribute for BackendV2. I think that now that BackendConfiguration is deprecated we can simply deprecate BasicSimulator.configuration.

@csi21
Copy link

csi21 commented Sep 16, 2024

Hello @ElePT, What would be the equivalent of the deprecated BackendConfiguarion.from_dict() in Qiskit 2.0? Is there a method to initiate a configuration from a dictionary, as in Qiskit 1.2?

@ElePT
Copy link
Contributor

ElePT commented Oct 22, 2024

Hi @csi21, what's deprecated is the BackendConfiguration class as a whole. The alternative to communicate backend constraints is using a Target. As a transition step, you can build a Target from the configuration values using the following method:

Target.from_configuration(
         basis_gates, 
         num_qubits=None, 
         coupling_map=None, 
         inst_map=None, 
         backend_properties=None, 
         instruction_durations=None, 
         concurrent_measurements=None, 
         dt=None, 
         timing_constraints=None, 
         custom_name_mapping=None)

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 a pull request may close this issue.

4 participants