ConfigurableFakeBackend
class ConfigurableFakeBackend(name, n_qubits, version=None, coupling_map=None, basis_gates=None, qubit_t1=None, qubit_t2=None, qubit_frequency=None, qubit_readout_error=None, single_qubit_gates=None, dt=None, std=None, seed=None)
Bases: qiskit.providers.fake_provider.fake_backend.FakeBackend
Configurable backend.
Creates backend based on provided configuration.
Parameters
- name (
str
) – Name of the backend. - n_qubits (
int
) – Number of qubits in the backend. - version (
Optional
[str
]) – Version of the fake backend. - coupling_map (
Optional
[List
[List
[int
]]]) – Coupling map. - basis_gates (
Optional
[List
[str
]]) – Basis gates of the backend. - qubit_t1 (
Union
[float
,List
[float
],None
]) – Longitudinal coherence times. - qubit_t2 (
Union
[float
,List
[float
],None
]) – Transverse coherence times. - qubit_frequency (
Union
[float
,List
[float
],None
]) – Frequency of qubits. - qubit_readout_error (
Union
[float
,List
[float
],None
]) – Readout error of qubits. - single_qubit_gates (
Optional
[List
[str
]]) – List of single qubit gates for backend properties. - dt (
Optional
[float
]) – Discretization of the input time sequences. - std (
Optional
[float
]) – Standard deviation of the generated distributions. - seed (
Optional
[int
]) – Random seed.
Methods
configuration
ConfigurableFakeBackend.configuration()
Return the backend configuration.
Returns
the configuration for the backend.
Return type
defaults
ConfigurableFakeBackend.defaults()
Return backend defaults.
name
ConfigurableFakeBackend.name()
Return the backend name.
Returns
the name of the backend.
Return type
str
properties
ConfigurableFakeBackend.properties()
Return backend properties
provider
ConfigurableFakeBackend.provider()
Return the backend Provider.
Returns
the Provider responsible for the backend.
Return type
run
ConfigurableFakeBackend.run(run_input, **kwargs)
Main job in simulator
set_options
ConfigurableFakeBackend.set_options(**fields)
Set the options fields for the backend
This method is used to update the options of a backend. If you need to change any of the options prior to running just pass in the kwarg with the new value for the options.
Parameters
fields – The fields to update the options
Raises
AttributeError – If the field passed in is not part of the options
status
ConfigurableFakeBackend.status()
Return the backend status.
Returns
the status of the backend.
Return type
Attributes
options
Return the options for the backend
The options of a backend are the dynamic parameters defining how the backend is used. These are used to control the run()
method.
version
Default value: 1