fermifab.tensor_op

fermifab.tensor_op(op, N)[source]

Calculate the matrix representation of the N-fold tensor product of an operator.

Parameters:
  • op – quantum operator of type FermiOp, with pFrom and pTo equal to 1
  • N – number of tensor factors
Returns:

N-fold tensor product

Return type:

FermiOp