qat.synthopline.linear_synthesis.extract_linear_operator

qat.synthopline.linear_synthesis.extract_linear_operator(circuit)

Extract a linear operator from the input circuit.

The input circuit must only contain CNOT gates.

Parameters

circuit (Circuit) – a circuit

Returns

a table representing the linear operator

Return type

np.ndarray

Note

This method is available as an application in Qaptiva Access.