About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
qiskit.pulse.builder.reference
reference(name, *extra_keys)
Refer to undefined subroutine by string keys.
A Reference
instruction is implicitly created and a schedule can be separately registered to the reference at a later stage.
from qiskit import pulse
with pulse.build() as main_prog:
pulse.reference("x_gate", "q0")
with pulse.build() as subroutine:
pulse.play(pulse.Gaussian(160, 0.1, 40), pulse.DriveChannel(0))
main_prog.assign_references(subroutine_dict={("x_gate", "q0"): subroutine})
Parameters
- name (
str
) – Name of subroutine. - extra_keys (
str
) – Helper keys to uniquely specify the subroutine.
Was this page helpful?
Report a bug or request content on GitHub.