Can you just make a tensor operator that acts on the space you want and is identity for the rest of the space?
I can see how that gets tedious to track within larger tensor spaces but the concept should work.
Sent from my phone using voice-recognition software and/or clumsy thumbs, please forgive any typos.
> --
> You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
qutip+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.