qiskit-documentation/docs/api/qiskit/0.41/qiskit.pulse.builder.circui...

38 lines
1.0 KiB
Plaintext

---
title: circuit_scheduler_settings
description: API reference for qiskit.pulse.builder.circuit_scheduler_settings
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.builder.circuit_scheduler_settings
---
# qiskit.pulse.builder.circuit\_scheduler\_settings
<Function id="qiskit.pulse.builder.circuit_scheduler_settings" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/pulse/builder.py" signature="circuit_scheduler_settings(**settings)">
Set the currently active circuit scheduler settings for this context.
Examples:
```python
from qiskit import pulse
from qiskit.providers.fake_provider import FakeOpenPulse2Q
backend = FakeOpenPulse2Q()
with pulse.build(backend):
print(pulse.active_circuit_scheduler_settings())
with pulse.circuit_scheduler_settings(method='alap'):
print(pulse.active_circuit_scheduler_settings())
```
```python
{}
{'method': 'alap'}
```
**Return type**
`AbstractContextManager`\[`None`]
</Function>