Skip to content

Conversation

@kylegulshen
Copy link
Contributor

Documentation, example notebook, and testing should be added before merging. I haven't yet tested for correctness.

@kylegulshen kylegulshen requested a review from a team as a code owner July 8, 2019 19:19
return pauli_kraus_map(probabilities)


def generate_depolarizing_noise_model(qc: QuantumComputer, show_progress_bar: bool = True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it reasonably sufficient (and/or fairly standard) to only consider a depolarizing noise model? What about things like cross-talk?

gates = gates_in_isa(qc.get_isa())
kraus_maps = []
for g in tqdm(gates, disable=not show_progress_bar):
if g.name in ('RZ', 'I'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could these be subject to coherent errors?

combine_kraus_maps(noise_kraus, [matrix]), fidelity))
kraus_maps.append(km)

return NoiseModel(kraus_maps, single_qubit_conf_matrices)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would also be worth adding a helper function that would convert the NoiseModel here to a Program or a set of pragma instructions that a user could append to their program, in order for the latter to feel the effects of the noise model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants