-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update backend.configuration() to use BackendConfiguration (#1323)
* update configuration for statevector simulators * Update configuration() using BackendConfiguration Update `BaseBackend.configuratio()` in order to use the model object `BackendConfiguration`, removing a check from the init (as the object will be schema-conformant) and tweaking docstrings in the process. * Update default configuration for local simulators Update the configuration of the rest of local simulators. Original credit by @ajavadia in #1279. * Updates to simulator configurations, aer Update the simulator configurations in order: * remove the `coupling_map` parameter, as it needs to be a list per the specs and had the value "all-to-all". * add the `gates` parameter, as an empty list (that will likely need to be populated once it is used anywhere) and it is a required parameter per the spec. Revise the discovery during Aer building, and adjust the checks done during instantiation to account for the usage of the object, removing obsolete code (since the object is guaranteed to have some keys such as backend_name). * Adjust transpiler access to configuration(), tests Revise the methods in transpiler that accessed backend configuration, replacing the indexing by key with property accessing, and the treatment of basis_gates (str vs list). Adjust tests. * Update configuration.gates with one gate Update `configuration.gates` for the local simulators, as the specs require them to have at least one element. A temporary gate was added for the purposes of passing validation, which should be replaced with the real gates eventually. * Update IBMQBackend to use BackendConfiguration Modify `IBMQBackend` in order to use `BackendConfiguration` for its `.configuration()` method, by: * moving the processing of the dict returned from the API to the `IBMQconnector` layer (cleanup case, add missing fields, handle specific fields). This changes has been verified against QX and IBMQ current returned values, and hopefully will be temporary until 0.7. * updating `IBMQProvider` instantiation and discovery (in the provider), removing outdated checks. * update `providerutils` to work with objects instead of dicts. Adjust tests accordingly, finally enabling the real functionality for `test_remote_backend_configuration`. * Fix unitary simulator name during rebasing * Update CHANGELOG
- Loading branch information
1 parent
c87dcb4
commit 5a1b38b
Showing
24 changed files
with
263 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.