Dear Kwant developer,
I want to define a spatially varying current operator which depends on the two sites of a bond. Can this be done giving the “onsite” a function in the current operator definition. According to the manual, the function for onsite has the signature of a Hamiltonian on-site function, does it mean the function can only have one site as its input and cannot have two sites of a bond as input? If “onsite” cannot do the job, any suggestion of how to solve the problem?
Disclaimer: This email (including any attachments) is for the use of the intended recipient only and may contain confidential information and/or copyright material. If you are not the intended recipient, please notify the sender immediately and delete this email and all copies from your system. Any unauthorized use, disclosure, reproduction, copying, distribution, or other form of unauthorized dissemination of the contents is expressly prohibited.