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

Remove calls to benchmark in examples_test.py #1423

Merged
merged 3 commits into from Mar 6, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions examples/examples_test.py
Expand Up @@ -10,8 +10,8 @@
import examples.basic_arithmetic


def test_example_runs_bernstein_vazirani(benchmark):
benchmark(examples.bernstein_vazirani.main, qubit_count=3)
def test_example_runs_bernstein_vazirani():
examples.bernstein_vazirani.main(qubit_count=3)

# Check empty oracle case. Cover both biases.
a = cirq.NamedQubit('a')
Expand All @@ -25,29 +25,29 @@ def test_example_runs_hello_line():
examples.place_on_bristlecone.main()


def test_example_runs_hello_qubit(benchmark):
def test_example_runs_hello_qubit():
examples.hello_qubit.main()


def test_example_runs_bell_inequality(benchmark):
def test_example_runs_bell_inequality():
examples.bell_inequality.main()


def test_example_runs_quantum_fourier_transform(benchmark):
def test_example_runs_quantum_fourier_transform():
examples.quantum_fourier_transform.main()


def test_example_runs_bcs_mean_field(benchmark):
def test_example_runs_bcs_mean_field():
examples.bcs_mean_field.main()


def test_example_runs_grover(benchmark):
def test_example_runs_grover():
examples.grover.main()


def test_example_runs_basic_arithmetic():
examples.basic_arithmetic.main(n=2)


def test_example_runs_phase_estimator(benchmark):
def test_example_runs_phase_estimator():
examples.phase_estimator.main(qnums=(2,), repetitions=2)