API documentation

Backends for processing pytket circuits with Quantinuum devices

enum pytket.qir.QIRFormat(value)[source]

Return types qir, options are BINARY for a binary output and STRING for a string output

Valid values are as follows:

BINARY = <QIRFormat.BINARY: 0>
STRING = <QIRFormat.STRING: 1>
enum pytket.qir.QIRProfile(value)[source]

Profile for the QIR generation

Valid values are as follows:

BASE = <QIRProfile.BASE: 0>
ADAPTIVE = <QIRProfile.ADAPTIVE: 1>
ADAPTIVE_CREGSIZE = <QIRProfile.ADAPTIVE_CREGSIZE: 2>
PYTKET = <QIRProfile.PYTKET: 3>
pytket.qir.pytket_to_qir(circ, name='Generated from input pytket circuit', qir_format=QIRFormat.BINARY, int_type=64, cut_pytket_register=False, profile=QIRProfile.PYTKET)[source]

converts given pytket circuit to qir

Parameters:
Return type:

Union[str, bytes, None]