166 lines
5.0 KiB
Plaintext
166 lines
5.0 KiB
Plaintext
---
|
||
title: FakeManhattan
|
||
description: API reference for qiskit.providers.fake_provider.FakeManhattan
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.providers.fake_provider.FakeManhattan
|
||
---
|
||
|
||
# FakeManhattan
|
||
|
||
<Class id="qiskit.providers.fake_provider.FakeManhattan" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/providers/fake_provider/backends/manhattan/fake_manhattan.py" signature="FakeManhattan" modifiers="class">
|
||
Bases: `FakePulseBackend`
|
||
|
||
A fake Manhattan backend.
|
||
|
||
FakeBackend initializer.
|
||
|
||
**Parameters**
|
||
|
||
* **configuration** ([*BackendConfiguration*](qiskit.providers.models.BackendConfiguration "qiskit.providers.models.BackendConfiguration")) – backend configuration
|
||
* **time\_alive** (*int*) – time to wait before returning result
|
||
|
||
## Methods
|
||
|
||
<span id="qiskit-providers-fake-provider-fakemanhattan-configuration" />
|
||
|
||
### configuration
|
||
|
||
<Function id="qiskit.providers.fake_provider.FakeManhattan.configuration" signature="FakeManhattan.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-fakemanhattan-defaults" />
|
||
|
||
### defaults
|
||
|
||
<Function id="qiskit.providers.fake_provider.FakeManhattan.defaults" signature="FakeManhattan.defaults()">
|
||
Returns a snapshot of device defaults
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fakemanhattan-name" />
|
||
|
||
### name
|
||
|
||
<Function id="qiskit.providers.fake_provider.FakeManhattan.name" signature="FakeManhattan.name()">
|
||
Return the backend name.
|
||
|
||
**Returns**
|
||
|
||
the name of the backend.
|
||
|
||
**Return type**
|
||
|
||
str
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fakemanhattan-properties" />
|
||
|
||
### properties
|
||
|
||
<Function id="qiskit.providers.fake_provider.FakeManhattan.properties" signature="FakeManhattan.properties()">
|
||
Returns a snapshot of device properties
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fakemanhattan-provider" />
|
||
|
||
### provider
|
||
|
||
<Function id="qiskit.providers.fake_provider.FakeManhattan.provider" signature="FakeManhattan.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-fakemanhattan-run" />
|
||
|
||
### run
|
||
|
||
<Function id="qiskit.providers.fake_provider.FakeManhattan.run" signature="FakeManhattan.run(run_input, **kwargs)">
|
||
Main job in simulator
|
||
</Function>
|
||
|
||
<span id="qiskit-providers-fake-provider-fakemanhattan-set-options" />
|
||
|
||
### set\_options
|
||
|
||
<Function id="qiskit.providers.fake_provider.FakeManhattan.set_options" signature="FakeManhattan.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-fakemanhattan-status" />
|
||
|
||
### status
|
||
|
||
<Function id="qiskit.providers.fake_provider.FakeManhattan.status" signature="FakeManhattan.status()">
|
||
Return the backend status.
|
||
|
||
**Returns**
|
||
|
||
the status of the backend.
|
||
|
||
**Return type**
|
||
|
||
[BackendStatus](qiskit.providers.models.BackendStatus "qiskit.providers.models.BackendStatus")
|
||
</Function>
|
||
|
||
## Attributes
|
||
|
||
### backend\_name
|
||
|
||
<Attribute id="qiskit.providers.fake_provider.FakeManhattan.backend_name" attributeValue="'fake_manhattan'" />
|
||
|
||
### conf\_filename
|
||
|
||
<Attribute id="qiskit.providers.fake_provider.FakeManhattan.conf_filename" attributeValue="'conf_manhattan.json'" />
|
||
|
||
### defs\_filename
|
||
|
||
<Attribute id="qiskit.providers.fake_provider.FakeManhattan.defs_filename" attributeValue="'defs_manhattan.json'" />
|
||
|
||
### dirname
|
||
|
||
<Attribute id="qiskit.providers.fake_provider.FakeManhattan.dirname" attributeValue="'/home/computertreker/git/qiskit/qiskit/.tox/docs/lib/python3.8/site-packages/qiskit/providers/fake_provider/backends/manhattan'" />
|
||
|
||
### options
|
||
|
||
<Attribute id="qiskit.providers.fake_provider.FakeManhattan.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.FakeManhattan#run "qiskit.providers.fake_provider.FakeManhattan.run") method.
|
||
</Attribute>
|
||
|
||
### props\_filename
|
||
|
||
<Attribute id="qiskit.providers.fake_provider.FakeManhattan.props_filename" attributeValue="'props_manhattan.json'" />
|
||
|
||
### version
|
||
|
||
<Attribute id="qiskit.providers.fake_provider.FakeManhattan.version" attributeValue="1" />
|
||
</Class>
|
||
|