Program.dagger

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

Creates the conjugate transpose of the Quil program. The program must contain only gate applications.

Note: the keyword arguments inv_dict and suffix are kept only for backwards compatibility and have no effect.

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