Protocol
Representation of quantum protocol.
draw_protocol
draw_protocol (protocol, path=None, legend=False, figsize=(6, 6), label_offset=(0.05, 0.05))
Draw protocol using networkx
library
Type | Default | Details | |
---|---|---|---|
protocol | Protocol | The protocol to draw | |
path | NoneType | None | The path to save the resulting image to (optional) |
legend | bool | False | If true, edge labels will be numbers referenced in legend |
figsize | tuple | (6, 6) | The matplotlib figsize argument of the plot |
label_offset | tuple | (0.05, 0.05) | Offset position of all edge labels |
Protocol
Protocol (fault_tolerant=False, check_functions={}, *args, **kwargs)
Representation of a Quantum (Error Correction) Protocol