Skip to content

Commit

Permalink
Fix docs following review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
itoko committed Oct 7, 2022
1 parent 2054a11 commit 25919f8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
def _transpile_clifford_circuit(
circuit: QuantumCircuit, physical_qubits: Sequence[int]
) -> QuantumCircuit:
# Simplified transpile, which only decomposes Clifford circuits and layout qubits
# Simplified transpile that only decomposes Clifford circuits and creates the layout.
return _apply_qubit_layout(_decompose_clifford_ops(circuit), physical_qubits=physical_qubits)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ def __init__(
Args:
interleaved_element: The element to interleave,
given either as a Clifford element, gate, delay or circuit.
Only when the element contains any non-basis gates,
If the element contains any non-basis gates,
it will be transpiled with ``transpiled_options`` of this experiment.
If it is/contains a delay, its duration and unit must comply with
the timing constraints of the ``backend``.
(:class:``~qiskit_experiments.framework.backend_timing.BackendTiming`
is useful to obtain valid delays.)
Parameterized circuit/instruction is not allowded.
Parameterized circuit/instruction is not allowed.
qubits: list of physical qubits for the experiment.
lengths: A list of RB sequences lengths.
backend: The backend to run the experiment on.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def _default_experiment_options(cls) -> Options:
return options

def _set_backend(self, backend: Backend):
"""Set the backend V2 for RB experiments since RB experiments only support BackendV2.
If BackendV1 is provided, it is converted to V2 and stored.
"""Set the backend V2 for RB experiments since RB experiments only support BackendV2
except for simulators. If BackendV1 is provided, it is converted to V2 and stored.
"""
if isinstance(backend, BackendV1) and "simulator" not in backend.name():
super()._set_backend(BackendV2Converter(backend))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,8 @@ def test_two_qubit_with_cz(self):
self.assertExperimentDone(expdata)

# Given CX error is dominant and 1q error can be negligible.
# Arbitrary SU(4) can be decomposed with (0, 1, 2, 3) CX gates, the expected
# average number of CX gate per Clifford is 1.5.
# Arbitrary SU(4) can be decomposed with (0, 1, 2, 3) CZ gates, the expected
# average number of CZ gate per Clifford is 1.5.
# Since this is two qubit RB, the dep-parameter is factored by 3/4.
epc = expdata.analysis_results("EPC")

Expand Down

0 comments on commit 25919f8

Please sign in to comment.