pyqonvert.decompositions.two_qubit_gate_decomposition

pyqonvert.decompositions.two_qubit_gate_decomposition(circuit, device)

Perform the two-qubit gate decomposition of a given Circuit to the gates that are executable on the given Device.

Parameters:
  • circuit (Circuit) -- The Circuit to be decomposed.

  • device (AllToAllDevice) -- The Device containing the native gate set information.

Returns:

decomposed into the gates that can be executed on the Device.

Return type:

Circuit

Raises:
  • RuntimeError -- Error occured in the decomposition.

  • ValueError -- Could not convert inputs from Python.