qat.core.gate_set.GateSet

class qat.core.gate_set.GateSet(dictio=None)

Gate sets represent collections of GateSignature.

Parameters

dictio (dict) – a (str, GateSignature) dictionary

add_signature(signa)

Adds a new GateSignature in the GateSet. If the signature redefines a gate, a GateSyntaxRedefinition is raised.

Parameters

signa (GateSignature) – a gate signature

union(new_gate_set)

Compute the union of the gate set with another gate set

Parameters

new_gate_set (GateSet) – another gate set

Returns

the union of both gate sets

Return type

GateSet