tensorcircuit.symbolgates¶
Symbolic gate matrix factories using sympy.
These return Gate objects containing numpy object arrays with sympy expressions, compatible with tn.Node and the tc.contractor contraction pipeline.
Convention: for an n-qubit gate, the tensor is shaped [2]*2n with the first n axes being output legs and the last n axes being input legs, matching the Gate convention in tensorcircuit.