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

Repair cdr training circ sampling #23

Merged
merged 3 commits into from
Dec 7, 2021

Conversation

daniel-mills-cqc
Copy link
Collaborator

This PR:

  • Extends Clifford angles to include double rotation.
  • Samples gates to be left non Clifford without replacement
    This corrects a mismatch between the number of non-Clifford circuits requested, and the number actually left in the circuit.

@@ -184,7 +184,7 @@ def gen_state_circuits(
n_pairs = min(n_cliffords, n_non_cliffords, n_pairs)

# non_cliffords are indices for gates to be left non Clifford
non_cliffords = np.random.choice(list(rz_ops), n_non_cliffords)
non_cliffords = np.random.choice(list(rz_ops), n_non_cliffords, replace=False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Disgusting, my bad

@sjdilkes sjdilkes self-requested a review December 7, 2021 19:47
Copy link
Collaborator

@sjdilkes sjdilkes left a comment

Choose a reason for hiding this comment

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

Looks like you need to change the angles in the hardcoded test

@daniel-mills-cqc daniel-mills-cqc merged commit 2c7b3a8 into master Dec 7, 2021
@daniel-mills-cqc daniel-mills-cqc deleted the repair_cdr_training_circ_sampling branch December 7, 2021 20:51
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