-
Notifications
You must be signed in to change notification settings - Fork 3
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
QRegister constructor from list / set / tuple #32
Labels
Comments
This was referenced Jun 13, 2019
ahelsing
added a commit
that referenced
this issue
Jun 25, 2019
- if a single arg and it is int, handle specially - else for each Arg, allow it to be a tuple, list, QRegister, String, or a Qubit - QRegister: Append all qubits in the arg to the local set of qubits, ignoring any duplicates - String: Try parsing as 'q#' and append that to local set if not already present - Fix issue #31: Qubit: Try parsing name as 'q#' and append that to local set if not already present - Fix Issue #32: list/tuple: Recurse
lists and tuples seem to work. sets still have trouble |
Symptom of set problem. Note the 0th element ends up at the end:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow supplying a
list
,set, or
tupleto the
QRegister` constructor. That would ease certain uses.See related issue #31.
The text was updated successfully, but these errors were encountered: