1
$\begingroup$

In TensorFlow Quantum 0.5.0, the support for Cirq gates that have arbitrary control via the gate.controlled_by function is added.

I would like to know which kind of decomposition method is used for this operation? The current decomposition seems to be efficient and any information related to that is very welcomed.

$\endgroup$
2
$\begingroup$

There is no decomposition being done for controlled operations by default. The library expects whatever simulator it is using to have support for the controlled_by operation (by either decomposing it or implementing it directly). In the default C++ simulator TFQ uses qsim, controlled gates are implemented via direct application onto the state vector here

-Michael

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.