qiskit/releasenotes/notes/0.15/configurable-backend-af0623...

23 lines
992 B
YAML

---
features:
- |
A new class, :class:`~qiskit.test.mock.utils.ConfigurableFakeBackend`, has
been added to the :mod:`qiskit.test.mock.utils` module. This new class
enables the creation of configurable mock backends for use in testing.
For example::
from qiskit.test.mock.utils import ConfigurableFakeBackend
backend = ConfigurableFakeBackend("Tashkent",
n_qubits=100,
version="0.0.1",
basis_gates=['u1'],
qubit_t1=99.,
qubit_t2=146.,
qubit_frequency=5.,
qubit_readout_error=0.01,
single_qubit_gates=['u1'])
will create a backend object with 100 qubits and all the other parameters
specified in the constructor.