pygsti.tools.optools.tensorized_with_eye

pygsti.tools.optools.tensorized_with_eye#

tensorized_with_eye(op, op_basis, ten_basis=None, std_basis=None, ten_std_basis=None)#

op is a linear operator on a Hilbert-Schmidt space, S, represented as a matrix in the op_basis basis.

Returns a matrix representing a linear operator * AND * a basis in which to interpret that matrix. The linear operator itself is the tensor product operator `op`⨂I_S, where I_S is the identity on S. The basis is either ten_basis (if provided) or _TensorProdBasis((op_basis, op_basis)).

Notes

We accept std_basis and ten_std_basis for efficiency reasons.
  • If std_basis is provided, it must be equivalent to _BuiltinBasis(‘std’, op_basis.size).

  • If ten_std_basis is provided, it must be equivalent to _TensorProdBasis((std_basis, std_basis)).

Parameters:
  • op (ndarray)

  • op_basis (Basis)

  • ten_basis (Basis | None)

  • std_basis (Basis | None)

  • ten_std_basis (Basis | None)