Skip to content
Discussion options

You must be logged in to vote

Hello,

What you observed is expected. When unitary tensor channels exist in the system, each time NetworkState.compute_xxxx (xxxx being a target property, e.g, sampling, expectation, etc) is called, a particular state of all potential state will be sampled, and then the property will be computed on top of that sampled state.

In your case with 2 bitflip channels, the final state may collapse into 4 potential state, each with a probability of 25% and the returned sample will correspond to one of the potential state as you see.

If you want to sample all states, one more external loop is needed, e.g,

n_states_to_sample = 100
n_shots_per_sample = 1000
all_samples = {}
for i in range(n_n_states…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zhiihan
Comment options

@yangcal
Comment options

Answer selected by zhiihan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #172 on February 14, 2025 17:49.