English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
Shortcuts

qiskit.pulse.builder.call

call(target)[source]

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.