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

Use device instead of gateset validation in ZerosSampler #3142

Merged
merged 11 commits into from
Jul 22, 2020
Merged

Use device instead of gateset validation in ZerosSampler #3142

merged 11 commits into from
Jul 22, 2020

Conversation

dabacon
Copy link
Collaborator

@dabacon dabacon commented Jul 16, 2020

This introduces a dependency of cirq on cirq.google, which we want to avoid. If we want a gate set validating version of this we should put it in cirq.google.

@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Jul 16, 2020
all gates in the circuit are from the given gate set.
"""
self.gate_set = gate_set

def run_sweep(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am fine with getting rid of validation altogether, but one alternative I just thought of was to add an optional device parameter. That could also validate the circuit in a more natural way.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK added device validation. Could also just do this by adding it to a circuit.

@dabacon dabacon changed the title Remove gate set validation from ZerosSampler Use device instead of gateset validation in ZerosSampler Jul 17, 2020
@dabacon dabacon requested a review from dstrain115 July 17, 2020 04:07
@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jul 22, 2020
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jul 22, 2020
@CirqBot CirqBot merged commit 7bf16e1 into quantumlib:master Jul 22, 2020
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Jul 22, 2020
tonybruguier pushed a commit to tonybruguier/Cirq that referenced this pull request Aug 23, 2020
…3142)

This introduces a dependency of cirq on cirq.google, which we want to avoid.  If we want a gate set validating version of this we should put it in cirq.google.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants