-
QuantumProgram — A program representing a Sequence acting on a Register of qubits.
qoolqit.program
module
qoolqit.program
Classes
class
QuantumProgram
(register: Register, drive: Drive)
A program representing a Sequence acting on a Register of qubits.
Parameters
-
register : Register — the Register of qubits.
-
sequence — the Sequence of waveforms.
Attributes
Methods
-
compile_to — Compiles the given program to a device.
-
run — Run the compiled sequence on selected backend.
property
register
: Register
The register of qubits.
property
drive
: Drive
The driving waveforms.
property
is_compiled
: bool
Check if the program has been compiled.
property
compiled_sequence
: PulserSequence
The Pulser sequence compiled to a specific device.
method
compile_to
(device: Device, profile: CompilerProfile = CompilerProfile.DEFAULT) → None
Compiles the given program to a device.
Parameters
-
device : Device — the Device to compile to.
-
profile : CompilerProfile — the compiler profile to use during compilation.
method
draw
(n_points: int = 500, compiled: bool = False, return_fig: bool = False) → plt.Figure | None
Raises
-
ValueError
method
run
(backend_name: BackendName = BackendName.QUTIP, result_type: ResultType = ResultType.STATEVECTOR, runs: int = 100, evaluation_times: list[float] = [1.0], **backend_params: Any) → OutputType
Run the compiled sequence on selected backend.
Raises
-
ValueError
-
NotImplementedError