Sure, you can do this, but the exact implementation depends on what the API is for QuantumParticle
.
Eg if you expose get_position
and get_momentum
, you can just implement these methods to forward the value from the relevant field for Fermion
. If you want the Base.getproperty
to work (.position
), you need a different approach, but it is doable.
Please provide specific and then you may get a more detailed answer.
(Also, please quote your code.)