New answers tagged


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 -...

Top 50 recent answers are included