Module circuit_json

Source
Expand description

Contains structs for serializing and deserializing TKET circuits to and from JSON.

Structs§

ClassicalExp
A box for holding classical expressions on Bits.
Command
Operation applied in a circuit, with defined arguments.
Conditional
Decorates another op, adding a QASM-style classical condition.
CustomGate
A gate defined by a circuit.
ImplicitPermutation
An implicit permutation of the elements of a register.
Matrix
A 2D matrix.
Operation
Serializable operation descriptor.
Permutation
A classic basis state permutation. Used when defining Toffoli boxes.
SerialCircuit
Pytket canonical serialized circuit
Wasm
Additional fields for Wasm operations.

Enums§

Classical
Additional fields for classical operations, which only act on Bits classically.
ClassicalExpUnit
The units used in a ClassicalExp.