Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support filtering of state listings #35

Open
DanielJanzon opened this issue Feb 14, 2019 · 1 comment
Open

Support filtering of state listings #35

DanielJanzon opened this issue Feb 14, 2019 · 1 comment
Labels
enhancement wip Work In Progress

Comments

@DanielJanzon
Copy link
Collaborator

Today, with msg state <label> [left|right N] you can get a very long listing like

P(|000000>) = 0.0000
...
P(|110110>) = 0.0000
P(|110111>) = 0.0000
P(|111000>) = 0.0078
P(|111001>) = 0.0000
...
P(|111100>) = 0.0000
P(|111101>) = 0.0000
P(|111110>) = 0.0000

Perhaps it would be helpful to be able to filter this output. Some examples

msg state iteration1 left 6 filter pattern xxxxx0  ; filter any state with last bit 0 
msg state iteration1 filter filter zero-prob  ; filter any state that has zero coefficient
msg state iteration 1 filter right 7 filter zzzxxx  ; filter any state where any of z bits is non-zero
@DanielJanzon DanielJanzon added enhancement wip Work In Progress labels Feb 14, 2019
@odanielson
Copy link
Owner

I think this make sense, but maybe good to use levels instead of keywords, like filter prob > 0.3
It would also make sense to be able to specify specific qubits, like msg state iteration qubits 3-7,11

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement wip Work In Progress
Projects
None yet
Development

No branches or pull requests

2 participants