Skip to content

Commit

Permalink
Updated docstring for generate_mirror_circuits (#2353)
Browse files Browse the repository at this point in the history
* Updated docstring for generate_mirror_circuits to reflect accurate return types

* Clarify meaning of `correct bitstring`
  • Loading branch information
jordandsullivan committed May 8, 2024
1 parent 1aaa054 commit 2ff8134
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mitiq/benchmarks/mirror_circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def generate_mirror_circuit(
``cirq.Circuit``.
Returns:
A randomized mirror circuit.
A randomized mirror circuit and the bitstring corresponding
to a noise free result.
"""
if not 0 <= two_qubit_gate_prob <= 1:
raise ValueError("two_qubit_gate_prob must be between 0 and 1")
Expand Down

0 comments on commit 2ff8134

Please sign in to comment.