141 lines
3.6 KiB
Plaintext
141 lines
3.6 KiB
Plaintext
---
|
||
title: Fake1Q
|
||
description: API reference for qiskit.providers.fake_provider.Fake1Q
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.providers.fake_provider.Fake1Q
|
||
---
|
||
|
||
# Fake1Q
|
||
|
||
<Class id="qiskit.providers.fake_provider.Fake1Q" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/providers/fake_provider/fake_1q.py" signature="Fake1Q" modifiers="class">
|
||
Bases: `FakeBackend`
|
||
|
||
A fake 1Q backend.
|
||
|
||
0
|
||
|
||
## Methods
|
||
|
||
<span id="qiskit-providers-fake-provider-fake1q-configuration" />
|
||
|
||
### configuration
|
||
|
||
<Function id="qiskit.providers.fake_provider.Fake1Q.configuration" signature="Fake1Q.configuration()">
|
||
Return the backend configuration.
|
||
|
||
**Returns**
|
||
|
||
the configuration for the backend.
|
||
|
||
**Return type**
|
||
|
||
[BackendConfiguration](qiskit.providers.models.BackendConfiguration "qiskit.providers.models.BackendConfiguration")
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fake1q-defaults" />
|
||
|
||
### defaults
|
||
|
||
<Function id="qiskit.providers.fake_provider.Fake1Q.defaults" signature="Fake1Q.defaults()">
|
||
defaults == configuration
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fake1q-name" />
|
||
|
||
### name
|
||
|
||
<Function id="qiskit.providers.fake_provider.Fake1Q.name" signature="Fake1Q.name()">
|
||
Return the backend name.
|
||
|
||
**Returns**
|
||
|
||
the name of the backend.
|
||
|
||
**Return type**
|
||
|
||
str
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fake1q-properties" />
|
||
|
||
### properties
|
||
|
||
<Function id="qiskit.providers.fake_provider.Fake1Q.properties" signature="Fake1Q.properties()">
|
||
properties == configuration
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fake1q-provider" />
|
||
|
||
### provider
|
||
|
||
<Function id="qiskit.providers.fake_provider.Fake1Q.provider" signature="Fake1Q.provider()">
|
||
Return the backend Provider.
|
||
|
||
**Returns**
|
||
|
||
the Provider responsible for the backend.
|
||
|
||
**Return type**
|
||
|
||
[Provider](qiskit.providers.Provider "qiskit.providers.Provider")
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fake1q-run" />
|
||
|
||
### run
|
||
|
||
<Function id="qiskit.providers.fake_provider.Fake1Q.run" signature="Fake1Q.run(run_input, **kwargs)">
|
||
Main job in simulator
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fake1q-set-options" />
|
||
|
||
### set\_options
|
||
|
||
<Function id="qiskit.providers.fake_provider.Fake1Q.set_options" signature="Fake1Q.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
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fake1q-status" />
|
||
|
||
### status
|
||
|
||
<Function id="qiskit.providers.fake_provider.Fake1Q.status" signature="Fake1Q.status()">
|
||
Return the backend status.
|
||
|
||
**Returns**
|
||
|
||
the status of the backend.
|
||
|
||
**Return type**
|
||
|
||
[BackendStatus](qiskit.providers.models.BackendStatus "qiskit.providers.models.BackendStatus")
|
||
</Function>
|
||
|
||
## Attributes
|
||
|
||
### options
|
||
|
||
<Attribute id="qiskit.providers.fake_provider.Fake1Q.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()`](qiskit.providers.fake_provider.Fake1Q#run "qiskit.providers.fake_provider.Fake1Q.run") method.
|
||
</Attribute>
|
||
|
||
### version
|
||
|
||
<Attribute id="qiskit.providers.fake_provider.Fake1Q.version" attributeValue="1" />
|
||
</Class>
|
||
|