qrunch.quantum.circuits.translators.guppy_program

Output representation of a compiled Guppy program for Quantinuum execution.

Classes

GuppyProgram

Compiled Guppy program for Quantinuum execution.

class GuppyProgram

Bases: object

Compiled Guppy program for Quantinuum execution.

Parameters:
  • function – Guppy function definition used by local emulation.

  • package – HUGR package submitted to Nexus or converted to QIR.

  • recorded_qubits – Final physical indices of logical qubits in recorded-bit (logical-qubit) order.

  • allocated_qubits – Physical indices referenced by the program, in allocation order.

__init__(function: GuppyFunctionDefinition[(), None], package: Package, recorded_qubits: tuple[int, ...], allocated_qubits: tuple[int, ...]) → None
Parameters:
  • function (GuppyFunctionDefinition[(), None])

  • package (Package)

  • recorded_qubits (tuple[int, ...])

  • allocated_qubits (tuple[int, ...])

Return type:

None

allocated_qubits: tuple[int, ...]
function: GuppyFunctionDefinition[(), None]
property measurement_width: int

Number of recorded measurement bits.

property num_allocated_qubits: int

Number of qubits allocated by the compiled program.

package: Package
recorded_qubits: tuple[int, ...]