get_post_selection_dict#
- discopy.quantum.pennylane.get_post_selection_dict(tk_circ)[source]#
Return post-selections based on qubit indices.
- Parameters:
tk_circ (
discopy.quantum.tk.Circuit
) – The pytket circuit to extract the post-selections from.- Returns:
A mapping from qubit indices to pytket classical indices.
- Return type:
dict of int