Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.pulse.builder.call

call(target)

GitHub

Call the target within the currently active builder context.

Examples:

from qiskit import circuit, pulse, schedule, transpile
from qiskit.test.mock import FakeOpenPulse2Q
 
backend = FakeOpenPulse2Q()
 
qc = circuit.QuantumCircuit(2)
qc.cx(0, 1)
qc_transpiled = transpile(qc, optimization_level=3)
sched = schedule(qc_transpiled, backend)
 
with pulse.build(backend) as pulse_prog:
        pulse.call(sched)
        pulse.call(qc)

Parameters

target (Union[QuantumCircuit, Schedule]) – Target circuit or pulse schedule to call.

Raises

exceptions.PulseError – If the input target type is not supported.

Was this page helpful?
Report a bug or request content on GitHub.