-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow different spins to have different lengths #9
Comments
This does not seem so trivial. This would most likely require extending the def __init__(
self,
data: Union[
str,
List[Tuple[str, complex]],
Tuple[np.ndarray, np.ndarray],
],
spin: Union[float, Fraction] = Fraction(1, 2),
register_length: Optional[int] = None,
): https://github.com/Qiskit/qiskit-nature/blob/42dfada1562464e2498660a6a67fa8bc0060d4fc/qiskit_nature/operators/second_quantization/spin_op.py#L170-L179 This means that all spins in the |
Agreed. As long as the issue remains in qiskit-nature it is likely a good approach to 'simply' implement this an indivdual provider back-end as it starts to be on the more specialized use-case. |
Yes, Daniel is right that this limitation from the |
Suppose the following circuit:
To implement a number of mixture experiments it would be necessary to set the length of each individual spin, which would modify the last line too:
No idea which part of the code has to be changed for that and if it is even possible right now. An approach that would be actually nicely compatible with the terminology of the fermions and experimental sequences would be the definition of load gates.
The text was updated successfully, but these errors were encountered: