Program.dagger

Program.dagger(inv_dict=None, suffix='-INV')[source]

Creates the conjugate transpose of the Quil program. The program must not contain any irreversible actions (measurement, control flow, qubit allocation).

Returns:The Quil program’s inverse
Return type:Program