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.acquire
acquire(duration, qubit_or_channel, register, **metadata)
Acquire for a duration
on a channel
and store the result in a register
.
Examples:
from qiskit import pulse
acq0 = pulse.AcquireChannel(0)
mem0 = pulse.MemorySlot(0)
with pulse.build() as pulse_prog:
pulse.acquire(100, acq0, mem0)
# measurement metadata
kernel = pulse.configuration.Kernel('linear_discriminator')
pulse.acquire(100, acq0, mem0, kernel=kernel)
Note
The type of data acquire will depend on the execution meas_level
.
Parameters
- duration (
int
) – Duration to acquire data for - qubit_or_channel (
Union
[int
,AcquireChannel
]) – Either the qubit to acquire data for or the specificAcquireChannel
to acquire on. - register (
NewType()
(StorageLocation
,Union
[MemorySlot
,RegisterSlot
])) – Location to store measured result. - metadata (
Union
[Kernel
,Discriminator
]) – Additional metadata for measurement. SeeAcquire
for more information.
Raises
exceptions.PulseError – If the register type is not supported.
Was this page helpful?
Report a bug or request content on GitHub.