Skip to content

qoolqit.program

source module qoolqit.program

Classes

  • QuantumProgram A program representing a Sequence acting on a Register of qubits.

source class QuantumProgram(register: Register, drive: Drive)

A program representing a Sequence acting on a Register of qubits.

Parameters

  • register : Register the register of qubits, defining their positions.

  • drive : Drive the drive acting on qubits, defining amplitude, detuning and phase.

Attributes

  • register : Register The register of qubits.

  • drive : Drive The driving waveforms.

  • is_compiled : bool Check if the program has been compiled.

  • compiled_sequence : PulserSequence The Pulser sequence compiled to a specific device.

Methods

source property QuantumProgram.register: Register

The register of qubits.

source property QuantumProgram.drive: Drive

The driving waveforms.

source property QuantumProgram.is_compiled: bool

Check if the program has been compiled.

source property QuantumProgram.compiled_sequence: PulserSequence

The Pulser sequence compiled to a specific device.

source method QuantumProgram.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.

source method QuantumProgram.draw(n_points: int = 500, compiled: bool = False, return_fig: bool = False)Figure | None

Raises

  • ValueError