InlinedQubitInformation

Stores debug information about the ancillary and local module variable qubits that can be used to determine the origin of the qubit in the SyReC program or to determine the user declared identifier of the associated variable for a qubit. This information is not available for the parameters of a SyReC module.

class inlined_qubit_information
property inline_stack

Get the inline stack associated with the qubit

property user_declared_qubit_label

Get the label of the qubit as defined by the user in the SyReC program

Utility class to track the origin of a qubit in a hierarchy of Call-/UncallStatements.

class qubit_inlining_stack
__getitem__(self: mqt.syrec.pysyrec.qubit_inlining_stack, idx: SupportsInt) mqt.syrec.pysyrec.qubit_inlining_stack_entry
size(self: mqt.syrec.pysyrec.qubit_inlining_stack) int

Get the number of stack entries

Contains information about the source code line as well as the type of call performed to call/uncall the target module.

class qubit_inlining_stack_entry
property is_target_module_accessed_via_call_stmt

Returns whether the target module was called using a CallStatement

property line_number_of_call_of_target_module

Returns the line number in the source file in which the call statement variant was defined

property stringified_signature_of_called_module

Returns the stringified target module signature