Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.pulse.builder.reference

reference(name, *extra_keys)[source]

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})
প্যারামিটার
  • name (str) -- Name of subroutine.

  • extra_keys (str) -- Helper keys to uniquely specify the subroutine.