-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add Cifford.from_label method #4222
Conversation
i agree with adding this but i think you need to change the reverse from to_dict to to_label |
@jaygambetta there is no reverse to this function, it is a convenience for initializing simple tensor-product Clifford states. There are already |
831f1b7
to
090b144
Compare
* Add Cifford.from_label method * Add release note * Add test Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Summary
Adds
Clifford.from_label
method.This functions like
Operator.from_label
but only for single-qubit clifford gates I,X,Y,Z,H,S.Todo