mirror of https://github.com/Qiskit/qiskit.git
27 lines
962 B
YAML
27 lines
962 B
YAML
---
|
|
upgrade:
|
|
- |
|
|
When running :func:`~qiskit.execute_function.execute` with a
|
|
:class:`~qiskit.providers.BackendV1` backend the default values for the
|
|
kwargs ``shots``, ``max_credits``, ``meas_level``, ``meas_return`` and
|
|
``memory_slot_size`` will now be whatever the set default is on the
|
|
target backend's :attr:`~qiskit.providers.BackendV1.options` attribute.
|
|
Previously these defaults were set to match the default values when
|
|
calling :func:`~qiskit.execute_function.execute` with a legacy
|
|
:class:`~qiskit.providers.BaseBackend` backend. For example::
|
|
|
|
from qiskit.test.mock import FakeMumbai
|
|
from qiskit import QuantumCircuit, execute
|
|
|
|
qc = QuantumCircuit(2)
|
|
qc.h(0)
|
|
qc.cx(0, 1)
|
|
qc.measure_all()
|
|
|
|
backend = FakeMumbai()
|
|
backend.set_options(shots=4096)
|
|
execute(qc, backend)
|
|
|
|
will now run with ``4096`` shots. While in previous releases it would run
|
|
with ``1024``.
|