Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wshanks committed Aug 26, 2024
1 parent 220a5ba commit 02c1bc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
8 changes: 8 additions & 0 deletions qiskit_experiments/framework/transpilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ def minimal_transpile(
if not full_transpile:
full_transpile = check_transpilation_needed(circuits, backend)

import inspect
import unittest
try:
test_frame = next(f[0] for f in inspect.stack() if any(isinstance(l, unittest.TestCase) for n, l in f[0].f_locals.items()))
test = next(v for v in test_frame.f_locals.values())
print(f"full_transpile={full_transpile} for {test.id()}")
except StopIteration:
pass
if full_transpile:
transpiled = transpile(circuits, backend, **options)
else:
Expand Down
14 changes: 0 additions & 14 deletions qiskit_experiments/library/calibration/fine_amplitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,20 +182,6 @@ def __init__(
}
)

@classmethod
def _default_transpile_options(cls):
"""Default transpile options.
Transpile Options:
basis_gates (list(str)): A list of basis gates needed for this experiment.
The schedules for these basis gates will be provided by the instruction
schedule map from the calibrations.
"""
options = super()._default_transpile_options()
options.basis_gates = ["x", "sx"]

return options

def _pre_circuit(self, num_clbits: int) -> QuantumCircuit:
"""The preparation circuit is an sx gate to move to the equator of the Bloch sphere."""
circuit = QuantumCircuit(self.num_qubits, num_clbits)
Expand Down

0 comments on commit 02c1bc9

Please sign in to comment.