qiskit-documentation/docs/api/qiskit/0.31/qiskit.pulse.builder.active...

29 lines
857 B
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: active_backend
description: API reference for qiskit.pulse.builder.active_backend
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.builder.active_backend
---
# qiskit.pulse.builder.active\_backend
<Function id="qiskit.pulse.builder.active_backend" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/pulse/builder.py" signature="active_backend()">
Get the backend of the currently active builder context.
**Returns**
**The active backend in the currently active**
builder context.
**Return type**
Union\[[Backend](qiskit.providers.Backend "qiskit.providers.Backend"), [BaseBackend](qiskit.providers.BaseBackend "qiskit.providers.BaseBackend")]
**Raises**
**exceptions.BackendNotSet** If the builder does not have a backend set.
</Function>