QSystemRebasePass

class tket.passes.QSystemRebasePass(*, resolve_modifiers=True, lower_drops=True, hide_funcs=True, _scope=GlobalScope.PRESERVE_PUBLIC)[source]

Bases: ComposablePass

Convert quantum operations to QSystem operations.

Parameters: - resolve_modifiers: Whether to resolve Guppy modifiers. - lower_drops: Whether to lower qubit drops to QSystem operations. - hide_funcs: Whether to mark generated helper functions as private.

__call__(hugr, *, inplace=True)

Call the pass to transform a HUGR, returning a Hugr.

Return type:

Hugr

__init__(*, resolve_modifiers=True, lower_drops=True, hide_funcs=True, _scope=GlobalScope.PRESERVE_PUBLIC)
hide_funcs: bool = True
lower_drops: bool = True
property name: str

Returns the name of the pass.

resolve_modifiers: bool = True
run(hugr, *, inplace=True)[source]

Run the pass to transform a HUGR, returning a PassResult.

See implement_pass_run() for a helper function to implement this method.

Return type:

PassResult

then(other)

Perform another composable pass after this pass.

Return type:

ComposablePass

with_scope(scope)[source]

Set the scope of this pass and return self.

Return type:

QSystemRebasePass