PytketPassProto¶ class tket.util.PytketPassProto(*args, **kwargs)[source]¶ Bases: Protocol Protocol for classes that can be serialized as a pytket BasePass. This is used to allow type annotations that refer to pytket Passes without requiring pytket to be installed. __init__(*args, **kwargs)¶ to_dict()[source]¶ Convert this pass to a dictionary representation. Return type: dict Returns:A JSON serializable dictionary representation of the Pass.