Skip to content

Commit

Permalink
Fix bugs in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
itoko committed Mar 22, 2024
1 parent bacc3da commit 599afc4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ def __init__(
with this seed value every time :meth:`circuits` is called.
two_qubit_gate: Optional, 2q-gate name (e.g. "cx", "cz", "ecr")
of which the two qubit layers consist.
If not specified (but ``backend is supplied),
If not specified (but ``backend`` is supplied),
one of 2q-gates supported in the backend is automatically set.
one_qubit_basis_gates: Optional, 1q-gates to use for implementing 1q-Clifford operations.
If not specified (but ``backend is supplied),
If not specified (but ``backend`` is supplied),
all 1q-gates supported in the backend are automatically set.
Raises:
Expand Down Expand Up @@ -285,15 +285,15 @@ def circuits(self) -> List[QuantumCircuit]:
"""Return a list of physical circuits to measure layer fidelity.
Returns:
A list of :class:`QuantumCircuit`.
A list of :class:`QuantumCircuit`\s.
"""
return list(self.circuits_generator())

def circuits_generator(self) -> Iterable[QuantumCircuit]:
"""Return a generator of physical circuits to measure layer fidelity.
Returns:
A generator of :class:`QuantumCircuit`s.
A generator of :class:`QuantumCircuit`\s.
"""
opts = self.experiment_options
residal_qubits_by_layer = [self.__residual_qubits(layer) for layer in opts.two_qubit_layers]
Expand Down

0 comments on commit 599afc4

Please sign in to comment.