qrunch.quantum.samplers.excitation_gate_sampler
Module for excitation gate sampler.
Classes
Sampler class for sampling from an "excitation-gate-circuit". |
- class ExcitationGateSampler
Bases:
SamplerSampler class for sampling from an “excitation-gate-circuit”.
- __init__(options: ExcitationGateSimulatorOptions | None = None) None
Initiate an instance of sampler.
- Parameters:
options (ExcitationGateSimulatorOptions | None) – Options for the simulator.
eps – Minimum probability to use when sampling.
- Return type:
None
- run(circuits: MeasurementCircuit, shots: int | None) QuantumMeasurement
- run(circuits: Sequence[MeasurementCircuit], shots: int | None) list[QuantumMeasurement]
Sample from the given circuits using the given number of shots.
- Parameters:
circuits – Measurement circuit or sequence of circuits to be sampled.
shots – Number of measurements to perform.
- Returns:
The measurements of the quantum circuits, or list of measurements if multiple circuits are given.
- supports_shots_equals_none() bool
Return whether the sampler supports shots = None.
The ExcitationGateSampler supports shots=None.
- Return type:
bool