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

Test of execute_w_pt fails intermittently #1858

Closed
Misty-W opened this issue May 29, 2023 · 0 comments · Fixed by #1931
Closed

Test of execute_w_pt fails intermittently #1858

Misty-W opened this issue May 29, 2023 · 0 comments · Fixed by #1931
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Misty-W
Copy link
Contributor

Misty-W commented May 29, 2023

Issue Description

Test of execute_w_pt fails intermittently.

def test_execute_with_pauli_twirling():
       num_qubits = 3
       num_layers = 20
       circuit, _ = generate_mirror_circuit(
           nlayers=num_layers,
           two_qubit_gate_prob=1.0,
           connectivity_graph=nx.complete_graph(num_qubits),
       )
       expval = execute_with_pauli_twirling(
           circuit, amp_damp_executor, num_circuits=10
       )
      assert 0 <= expval < 0.4

E assert 0.4206504255533218 < 0.4

How to Reproduce

Examples observed in CI:
https://github.com/unitaryfund/mitiq/actions/runs/5135406857/jobs/9240786361
https://github.com/unitaryfund/mitiq/actions/runs/5130264396/jobs/9228821628
https://github.com/unitaryfund/mitiq/actions/runs/5125269561/jobs/9218229039?pr=1845
https://github.com/unitaryfund/mitiq/actions/runs/5115832329/jobs/9197434600
https://github.com/unitaryfund/mitiq/actions/runs/5061296432/jobs/9085321787


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants