Skip to content
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

[WIP] Added a simple generator for gate-dependent depolarizing noise. #180

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

2 participants