You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to give users functions to create singles and doubles transitions instead of asking them to code it themselves like in this tutorial.
Supposing one has the code to calculate the transitions it could work something like this:
import numpy as np
from qiskit_addon_sqd.fermion import create_transitions_doubles_within_same_spin, create_transitions_doubles_across_spin, create_transitions_single
transitions_single = create_transitions_single(norb)
transitions_doubles_same = create_transitions_doubles_within_same_spin(norb)
transitions_doubles_across= ccreate_transitions_doubles_across_spin(norb)
# Create the identity transition
identity_transition = np.array([['I'] * (2 * norb)], dtype='<U1')
# Combine all transitions
transitions_combined = np.vstack([transitions_single, transitions_doubles_same,transitions_doubles_across, identity_transition])
Then a user could easily create whichever transitions it wanted and include then with enlarge_batch_from_transitions.
I could work on this if people think it would be useful.
The text was updated successfully, but these errors were encountered:
What should we add?
It would be useful to give users functions to create singles and doubles transitions instead of asking them to code it themselves like in this tutorial.
Supposing one has the code to calculate the transitions it could work something like this:
Then a user could easily create whichever transitions it wanted and include then with
enlarge_batch_from_transitions
.I could work on this if people think it would be useful.
The text was updated successfully, but these errors were encountered: