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

Add a default optimization level to generate_preset_pass_manager #12150

Merged
merged 14 commits into from
Jul 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update more tests expecting optimization level 1
mtreinish committed May 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 82c776b8768ef193b0f67c4b11ea084cb2d953af
1 change: 1 addition & 0 deletions test/python/compiler/test_transpiler.py
Original file line number Diff line number Diff line change
@@ -1328,6 +1328,7 @@ def test_transpile_calibrated_custom_gate_on_diff_qubit(self):
backend=GenericBackendV2(num_qubits=4),
layout_method="trivial",
seed_transpiler=42,
optimization_level=1,
)

def test_transpile_calibrated_nonbasis_gate_on_diff_qubit(self):
4 changes: 3 additions & 1 deletion test/python/primitives/test_backend_estimator.py
Original file line number Diff line number Diff line change
@@ -406,7 +406,9 @@ def test_layout(self, backend):
qc.cx(0, 2)
op = SparsePauliOp("IZI")
estimator = BackendEstimator(backend)
estimator.set_transpile_options(initial_layout=[0, 1, 2], seed_transpiler=15)
estimator.set_transpile_options(
initial_layout=[0, 1, 2], seed_transpiler=15, optimization_level=1
)
estimator.set_options(seed_simulator=15)
value = estimator.run(qc, op, shots=10000).result().values[0]
if optionals.HAS_AER: