quantum icon indicating copy to clipboard operation
quantum copied to clipboard

Convert a PQC layer (with trainned weights) to unitary

Open njuwfang opened this issue 4 years ago • 2 comments

With all the symbols' values, can I have a simple way to obtain a unitary from PQC layer?

Although, I can define a new function to replace symbols with corresponding values in circuit definition, I think it is inconvenient.

njuwfang avatar Sep 14 '20 04:09 njuwfang

You could make use of tfq.calculate_uitary or cirq.unitary functions once you are finished training with the PQC layer.

MichaelBroughton avatar Sep 15 '20 05:09 MichaelBroughton

Michael's answer seems to work, any other updates on this issue?

lockwo avatar Aug 24 '22 18:08 lockwo