qibosoq.components package¶
Helper objects.
Submodules¶
qibosoq.components.base module¶
Various helper objects.
- class qibosoq.components.base.Config(relaxation_time: float = 100, ro_time_of_flight: int = 200, reps: int = 1000, soft_avgs: int = 1, average: bool = True)[source]¶
Bases:
objectGeneral RFSoC Configuration.
- class qibosoq.components.base.OperationCode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
IntEnumAvailable operations.
- EXECUTE_PULSE_SEQUENCE = 1¶
- EXECUTE_PULSE_SEQUENCE_RAW = 2¶
- EXECUTE_SWEEPS = 3¶
- class qibosoq.components.base.Qubit(bias: float | None = None, dac: int | None = None)[source]¶
Bases:
objectQubit object, storing flux information.
- class qibosoq.components.base.Parameter(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Available parameters for sweepers.
- FREQUENCY = 'freq'¶
- AMPLITUDE = 'gain'¶
- RELATIVE_PHASE = 'phase'¶
- DELAY = 't'¶
- BIAS = 'bias'¶
- DURATION = 'duration'¶
qibosoq.components.pulses module¶
Pulses objects.
- class qibosoq.components.pulses.Element(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int)[source]¶
Bases:
objectAbstract common oject for pulses and measurements.
- class qibosoq.components.pulses.Measurement(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int)[source]¶
Bases:
ElementMeasurement without pulse.
- class qibosoq.components.pulses.Pulse(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int, amplitude: float, relative_phase: int, name: str)[source]¶
Bases:
ElementAbstract Pulse object.
- class qibosoq.components.pulses.Rectangular(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int, amplitude: float, relative_phase: int, name: str, shape: str = 'rectangular')[source]¶
Bases:
PulseRectangular pulse.
- class qibosoq.components.pulses.Gaussian(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int, amplitude: float, relative_phase: int, name: str, rel_sigma: float, shape: str = 'gaussian')[source]¶
Bases:
PulseGaussian pulse.
- class qibosoq.components.pulses.Drag(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int, amplitude: float, relative_phase: int, name: str, rel_sigma: float, beta: float, shape: str = 'drag')[source]¶
Bases:
PulseDrag pulse.
- class qibosoq.components.pulses.FlatTop(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int, amplitude: float, relative_phase: int, name: str, rel_sigma: float, shape: str = 'flattop')[source]¶
Bases:
PulseFlatTop pulse.
- class qibosoq.components.pulses.FluxExponential(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int, amplitude: float, relative_phase: int, name: str, tau: float, upsilon: float, weight: float, shape: str = 'fluxexponential')[source]¶
Bases:
PulseFlux pulse with exponential rising edge to correct distortions.
- class qibosoq.components.pulses.Hann(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int, amplitude: float, relative_phase: int, name: str, shape: str = 'hann')[source]¶
Bases:
PulseHann function.
- class qibosoq.components.pulses.Arbitrary(type: str, frequency: float, start_delay: float, duration: float, adc: int, dac: int, amplitude: float, relative_phase: int, name: str, i_values: List[float], q_values: List[float], shape: str = 'arbitrary')[source]¶
Bases:
PulseCustom pulse.
- class qibosoq.components.pulses.Shape(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
EnumMap shape names to the corresponding objects.
- RECTANGULAR = <class 'qibosoq.components.pulses.Rectangular'>¶
- GAUSSIAN = <class 'qibosoq.components.pulses.Gaussian'>¶
- DRAG = <class 'qibosoq.components.pulses.Drag'>¶
- HANN = <class 'qibosoq.components.pulses.Hann'>¶
- FLUXEXPONENTIAL = <class 'qibosoq.components.pulses.FluxExponential'>¶
- FLATTOP = <class 'qibosoq.components.pulses.FlatTop'>¶
- ARBITRARY = <class 'qibosoq.components.pulses.Arbitrary'>¶