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>
pytket.qir.pytket_to_qir(circ, name='Generated from input pytket circuit', qir_format=QIRFormat.BINARY, wfh=None, int_type=64, cut_pytket_register=False, profile=False)[source]

converts given pytket circuit to qir

Parameters:
Return type:

Union[str, bytes, None]