pygsti.tools.internalgates.qasm_u3

Contents

pygsti.tools.internalgates.qasm_u3#

qasm_u3(theta, phi, lamb, output='unitary')#

The u3 1-qubit gate of QASM, returned as a unitary.

if output = ‘unitary’ and as a processmatrix in the Pauli basis if out = ‘superoperator.’

Parameters:
  • theta (float) – The theta parameter of the u3 gate.

  • phi (float) – The phi parameter of the u3 gate.

  • lamb (float) – The lambda parameter of the u3 gate.

  • output ({'unitary', 'superoperator'}) – Whether the returned value is a unitary matrix or the Pauli-transfer-matrix superoperator representing that unitary action.

Return type:

numpy.ndarray