58 lines
2.3 KiB
Plaintext
58 lines
2.3 KiB
Plaintext
---
|
||
title: BasicProvider (dev version)
|
||
description: API reference for qiskit.providers.basic_provider.BasicProvider in the dev version of qiskit
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.providers.basic_provider.BasicProvider
|
||
---
|
||
|
||
# BasicProvider
|
||
|
||
<Class id="qiskit.providers.basic_provider.BasicProvider" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/main/qiskit/providers/basic_provider/basic_provider.py#L37-L121" signature="qiskit.providers.basic_provider.BasicProvider" modifiers="class">
|
||
Bases: [`object`](https://docs.python.org/3/library/functions.html#object "(in Python v3.13)")
|
||
|
||
Provider for test simulators.
|
||
|
||
## Methods
|
||
|
||
### backends
|
||
|
||
<Function id="qiskit.providers.basic_provider.BasicProvider.backends" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/providers/basic_provider/basic_provider.py#L64-L82" signature="backends(name=None, filters=None)">
|
||
Return a list of backends matching the specified filtering. :param name: name of the backend. :param filters: callable for filtering.
|
||
|
||
**Returns**
|
||
|
||
**a list of Backends that match the filtering**
|
||
|
||
criteria.
|
||
|
||
**Return type**
|
||
|
||
[list](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")\[[Backend](qiskit.providers.Backend "qiskit.providers.Backend")]
|
||
|
||
**Parameters**
|
||
|
||
* **name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.13)") *| None*) –
|
||
* **filters** (*Callable | None*) –
|
||
</Function>
|
||
|
||
### get\_backend
|
||
|
||
<Function id="qiskit.providers.basic_provider.BasicProvider.get_backend" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/providers/basic_provider/basic_provider.py#L46-L62" signature="get_backend(name=None, **kwargs)">
|
||
Return a single backend matching the specified filtering. :param name: name of the backend. :type name: str :param \*\*kwargs: dict used for filtering.
|
||
|
||
**Returns**
|
||
|
||
a backend matching the filtering.
|
||
|
||
**Return type**
|
||
|
||
[Backend](qiskit.providers.Backend "qiskit.providers.Backend")
|
||
|
||
**Raises**
|
||
|
||
[**QiskitBackendNotFoundError**](providers#qiskit.providers.QiskitBackendNotFoundError "qiskit.providers.QiskitBackendNotFoundError") – if no backend could be found or more than one backend matches the filtering criteria.
|
||
</Function>
|
||
</Class>
|
||
|