cuquantum.tensornet.CirqParserOptions¶
- class cuquantum.tensornet.CirqParserOptions(check_diagonal: bool = True)[source]¶
A data class for providing Cirq parser options to the
CircuitToEinsum
class.- check_diagonal¶
If True (default), the parser will check if the gate operand can be represented in a diagonal form.
- Type
Note
Setting
check_diagonal=True
will perform value-based comparison for gate operands incirq.Circuit
object to check if the gate operand can be represented in a diagonal form. This may lead to performance degradation in the parsing stage but can potentiallyreduce the size of the output tensor network and thus improve the contraction performance.