qubosolver.solving.quantum
qubosolver.solving.quantum
Quantum solvers based on analog sampling on Pasqal devices.
Modules:
-
analog_quantum_samplingβAnalog quantum sampling compilation.
analog_quantum_sampling
Analog quantum sampling compilation.
The primary quantum solving primitive that compiles a pulse program for a target
device. Callers submit the compiled program themselves via backend.run(program)
to sample bitstrings from the quantum state.
Functions:
-
compileβBuild and compile a
qoolqit.QuantumProgramfor the target device.
compile
compile(register: qoolqit.Register, drive: qoolqit.Drive, device: qoolqit.Device, *, compiler_profile: CompilerProfile = CompilerProfile.MAX_ENERGY, default_sequence_duration: int | None = None) -> qoolqit.QuantumProgram
Build and compile a qoolqit.QuantumProgram for the target device.
Parameters:
-
register(qoolqit.Register) βAtom register defining qubit positions.
-
drive(qoolqit.Drive) βPulse drive schedule encoding the quantum operations.
-
device(qoolqit.Device) βTarget quantum device that provides hardware constraints used during compilation.
-
compiler_profile(CompilerProfile, default:CompilerProfile.MAX_ENERGY) βCompilation strategy controlling how the pulse sequence is mapped to device constraints.
-
default_sequence_duration(int | None, default:None) βFallback maximum sequence duration (ns) injected when
devicehas no nativemax_durationcap.Noneleaves the device unpatched.
Returns:
-
qoolqit.QuantumProgramβA compiled quantum program ready to be executed on a quantum backend (local/remote emulator, QPU).
Raises:
-
ValueErrorβIf
register's max/min radial distance ratio exceeds whatdeviceallows, e.g. because it was embedded without device constraints in mind.