pyqonvert.optimization.numeric_single_qubit_multiplication

pyqonvert.optimization.numeric_single_qubit_multiplication(circuit, identity_tolerance)

Optimize circuit by multiplying non-symbolic single-qubit-gates.

Parameters:
  • circuit (Circuit) -- The circuit that is optimized..

  • identity_tolerance (float) -- Tolerance for identifying a single qubit gate with identity. If gate.alpha_r <= identity_tolerance the gate is taken to be the identity.

Returns:

with multiplied non-symbolic single-qubit-gates.

Return type:

Circuit