qiskit.pulse.builder.acquire¶
- acquire(duration, qubit_or_channel, register, **metadata)[source]¶
Acquire for a
duration
on achannel
and store the result in aregister
.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)
নোট
The type of data acquire will depend on the execution
meas_level
.- প্যারামিটার
duration (int) -- Duration to acquire data for
qubit_or_channel (Union[int, AcquireChannel]) -- Either the qubit to acquire data for or the specific
AcquireChannel
to acquire on.register (StorageLocation) -- Location to store measured result.
metadata (Union[Kernel, Discriminator]) -- Additional metadata for measurement. See
Acquire
for more information.
- রেইজেস
exceptions.PulseError -- If the register type is not supported.