qat.synthopline.phase_polynomials.extract_phase_polynomial
- qat.synthopline.phase_polynomials.extract_phase_polynomial(circuit)
 Extracts the phase polynomial implemented by the input circuit.
The input circuit should only contains CNOT, RZ/PH, and C-PH gates.
- Parameters:
 circuit (
Circuit) – a quantum circuit- Returns:
 a pair phase polynomial, final linear operator
- Return type:
 dict, np.ndarray
Note
This method is available as an application in Qaptiva Access.