Skip to main content

Crate tk_pg_ir_kernels

Crate tk_pg_ir_kernels 

Source
Expand description

This crate implements some basic operations for PauliGraph Ops

Traits§

PGRewrite
Trait for basic PauliGraph rewrites.
PGTableau
A tableau implements the necessary functionality to interact with PG Ops and Pauli strings. This includes methods for getting the image of X and Z operators under the tableau, pre- and post-composing operations and other tableaux, getting the dagger (inverse) of the tableau, and conjugating PG Ops and Pauli strings by the tableau.

Functions§

can_be_conjugated
Check if an operation can be conjugated by a tableau i.e. if it is a rotation, measure, reset, conditional box or a rotation/measure/reset gate (with any conditionality).
get_dagger
Get the dagger (inverse) of an operation.
is_clifford
Check if an operation is a Clifford operation i.e. if it is a Clifford unitary.
is_clifford_gate_type
Check if a gate is a Clifford gate type