qiskit-documentation/docs/api/qiskit/0.31/qiskit.providers.models.Pul...

274 lines
11 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: PulseBackendConfiguration
description: API reference for qiskit.providers.models.PulseBackendConfiguration
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.providers.models.PulseBackendConfiguration
---
# PulseBackendConfiguration
<Class id="qiskit.providers.models.PulseBackendConfiguration" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/providers/models/backendconfiguration.py" signature="PulseBackendConfiguration(backend_name, backend_version, n_qubits, basis_gates, gates, local, simulator, conditional, open_pulse, memory, max_shots, coupling_map, n_uchannels, u_channel_lo, meas_levels, qubit_lo_range, meas_lo_range, dt, dtm, rep_times, meas_kernels, discriminators, hamiltonian=None, channel_bandwidth=None, acquisition_latency=None, conditional_latency=None, meas_map=None, max_experiments=None, sample_name=None, n_registers=None, register_map=None, configurable=None, credits_required=None, online_date=None, display_name=None, description=None, tags=None, channels=None, **kwargs)" modifiers="class">
Bases: `qiskit.providers.models.backendconfiguration.QasmBackendConfiguration`
Static configuration state for an OpenPulse enabled backend. This contains information about the set up of the device which can be useful for building Pulse programs.
Initialize a backend configuration that contains all the extra configuration that is made available for OpenPulse backends.
**Parameters**
* **backend\_name** (`str`) backend name.
* **backend\_version** (`str`) backend version in the form X.Y.Z.
* **n\_qubits** (`int`) number of qubits.
* **basis\_gates** (`List`\[`str`]) list of basis gates names on the backend.
* **gates** (`GateConfig`) list of basis gates on the backend.
* **local** (`bool`) backend is local or remote.
* **simulator** (`bool`) backend is a simulator.
* **conditional** (`bool`) backend supports conditional operations.
* **open\_pulse** (`bool`) backend supports open pulse.
* **memory** (`bool`) backend supports memory.
* **max\_shots** (`int`) maximum number of shots supported.
* **coupling\_map** (*list*) The coupling map for the device
* **n\_uchannels** (`int`) Number of u-channels.
* **u\_channel\_lo** (`List`\[`List`\[`UchannelLO`]]) U-channel relationship on device los.
* **meas\_levels** (`List`\[`int`]) Supported measurement levels.
* **qubit\_lo\_range** (`List`\[`List`\[`float`]]) Qubit lo ranges for each qubit with form (min, max) in GHz.
* **meas\_lo\_range** (`List`\[`List`\[`float`]]) Measurement lo ranges for each qubit with form (min, max) in GHz.
* **dt** (`float`) Qubit drive channel timestep in nanoseconds.
* **dtm** (`float`) Measurement drive channel timestep in nanoseconds.
* **rep\_times** (`List`\[`float`]) Supported repetition times (program execution time) for backend in μs.
* **meas\_kernels** (`List`\[`str`]) Supported measurement kernels.
* **discriminators** (`List`\[`str`]) Supported discriminators.
* **hamiltonian** (`Optional`\[`Dict`\[`str`, `Any`]]) An optional dictionary with fields characterizing the system hamiltonian.
* **channel\_bandwidth** (*list*) Bandwidth of all channels (qubit, measurement, and U)
* **acquisition\_latency** (*list*) Array of dimension n\_qubits x n\_registers. Latency (in units of dt) to write a measurement result from qubit n into register slot m.
* **conditional\_latency** (*list*) Array of dimension n\_channels \[d->u->m] x n\_registers. Latency (in units of dt) to do a conditional operation on channel n from register slot m
* **meas\_map** (*list*) Grouping of measurement which are multiplexed
* **max\_experiments** (*int*) The maximum number of experiments per job
* **sample\_name** (*str*) Sample name for the backend
* **n\_registers** (*int*) Number of register slots available for feedback (if conditional is True)
* **register\_map** (*list*) An array of dimension n\_qubits X n\_registers that specifies whether a qubit can store a measurement in a certain register slot.
* **configurable** (*bool*) True if the backend is configurable, if the backend is a simulator
* **credits\_required** (*bool*) True if backend requires credits to run a job.
* **online\_date** (*datetime*) The date that the device went online
* **display\_name** (*str*) Alternate name field for the backend
* **description** (*str*) A description for the backend
* **tags** (*list*) A list of string tags to describe the backend
* **channels** (`Optional`\[`Dict`\[`str`, `Any`]]) An optional dictionary containing information of each channel their purpose, type, and qubits operated on.
* **\*\*kwargs** Optional fields.
## Methods
### acquire
<Function id="qiskit.providers.models.PulseBackendConfiguration.acquire" signature="PulseBackendConfiguration.acquire(qubit)">
Return the acquisition channel for the given qubit.
**Raises**
**BackendConfigurationError** If the qubit is not a part of the system.
**Return type**
`AcquireChannel`
**Returns**
Qubit measurement acquisition line.
</Function>
### control
<Function id="qiskit.providers.models.PulseBackendConfiguration.control" signature="PulseBackendConfiguration.control(qubits=None, channel=None)">
Return the secondary drive channel for the given qubit typically utilized for controlling multiqubit interactions. This channel is derived from other channels.
**Parameters**
* **qubits** (`Optional`\[`Iterable`\[`int`]]) Tuple or list of qubits of the form (control\_qubit, target\_qubit).
* **channel** (`Optional`\[`int`]) Deprecated.
**Raises**
**BackendConfigurationError** If the `qubits` is not a part of the system or if the backend does not provide channels information in its configuration.
**Return type**
`List`\[`ControlChannel`]
**Returns**
List of control channels.
</Function>
### describe
<Function id="qiskit.providers.models.PulseBackendConfiguration.describe" signature="PulseBackendConfiguration.describe(channel)">
Return a basic description of the channel dependency. Derived channels are given weights which describe how their frames are linked to other frames. For instance, the backend could be configured with this setting:
```python
u_channel_lo = [
[UchannelLO(q=0, scale=1. + 0.j)],
[UchannelLO(q=0, scale=-1. + 0.j), UchannelLO(q=1, scale=1. + 0.j)]
]
```
Then, this method can be used as follows:
```python
backend.configuration().describe(ControlChannel(1))
>>> {DriveChannel(0): -1, DriveChannel(1): 1}
```
**Parameters**
**channel** (`ControlChannel`) The derived channel to describe.
**Raises**
**BackendConfigurationError** If channel is not a ControlChannel.
**Return type**
`Dict`\[`DriveChannel`, `complex`]
**Returns**
Control channel derivations.
</Function>
### drive
<Function id="qiskit.providers.models.PulseBackendConfiguration.drive" signature="PulseBackendConfiguration.drive(qubit)">
Return the drive channel for the given qubit.
**Raises**
**BackendConfigurationError** If the qubit is not a part of the system.
**Return type**
`DriveChannel`
**Returns**
Qubit drive channel.
</Function>
### from\_dict
<Function id="qiskit.providers.models.PulseBackendConfiguration.from_dict" signature="PulseBackendConfiguration.from_dict(data)" modifiers="classmethod">
Create a new GateConfig object from a dictionary.
**Parameters**
**data** (*dict*) A dictionary representing the GateConfig to create. It will be in the same format as output by [`to_dict()`](qiskit.providers.models.PulseBackendConfiguration#to_dict "qiskit.providers.models.PulseBackendConfiguration.to_dict").
**Returns**
The GateConfig from the input dictionary.
**Return type**
[GateConfig](qiskit.providers.models.GateConfig "qiskit.providers.models.GateConfig")
</Function>
### get\_channel\_qubits
<Function id="qiskit.providers.models.PulseBackendConfiguration.get_channel_qubits" signature="PulseBackendConfiguration.get_channel_qubits(channel)">
Return a list of indices for qubits which are operated on directly by the given `channel`.
**Raises**
**BackendConfigurationError** If `channel` is not a found or if the backend does not provide channels information in its configuration.
**Return type**
`List`\[`int`]
**Returns**
List of qubits operated on my the given `channel`.
</Function>
### get\_qubit\_channels
<Function id="qiskit.providers.models.PulseBackendConfiguration.get_qubit_channels" signature="PulseBackendConfiguration.get_qubit_channels(qubit)">
Return a list of channels which operate on the given `qubit`.
**Raises**
**BackendConfigurationError** If `qubit` is not a found or if the backend does not provide channels information in its configuration.
**Return type**
`List`\[`Channel`]
**Returns**
List of `Channel`s operated on my the given `qubit`.
</Function>
### measure
<Function id="qiskit.providers.models.PulseBackendConfiguration.measure" signature="PulseBackendConfiguration.measure(qubit)">
Return the measure stimulus channel for the given qubit.
**Raises**
**BackendConfigurationError** If the qubit is not a part of the system.
**Return type**
`MeasureChannel`
**Returns**
Qubit measurement stimulus line.
</Function>
### to\_dict
<Function id="qiskit.providers.models.PulseBackendConfiguration.to_dict" signature="PulseBackendConfiguration.to_dict()">
Return a dictionary format representation of the GateConfig.
**Returns**
The dictionary form of the GateConfig.
**Return type**
dict
</Function>
## Attributes
### control\_channels
<Attribute id="qiskit.providers.models.PulseBackendConfiguration.control_channels">
Return the control channels
**Return type**
`Dict`\[`Tuple`\[`int`, …], `List`]
</Attribute>
### num\_qubits
<Attribute id="qiskit.providers.models.PulseBackendConfiguration.num_qubits">
Returns the number of qubits.
In future, n\_qubits should be replaced in favor of num\_qubits for consistent use throughout Qiskit. Until this is properly refactored, this property serves as intermediate solution.
</Attribute>
### sample\_rate
<Attribute id="qiskit.providers.models.PulseBackendConfiguration.sample_rate">
Sample rate of the signal channels in Hz (1/dt).
**Return type**
`float`
</Attribute>
</Class>