Skip to content

Commit 4c494a3

Browse files
Fix filesystem case sensitivity issue with IQP docs (#13414) (#13415)
(cherry picked from commit d81abce) Co-authored-by: Eric Arellano <[email protected]>
1 parent 33f3881 commit 4c494a3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@
120120
napoleon_google_docstring = True
121121
napoleon_numpy_docstring = False
122122

123+
# Autosummary generates stub filenames based on the import name.
124+
# Sometimes, two distinct interfaces only differ in capitalization; this
125+
# creates a problem on case-insensitive OS/filesystems like macOS. So,
126+
# we manually avoid the clash by renaming one of the files.
127+
autosummary_filename_map = {
128+
"qiskit.circuit.library.iqp": "qiskit.circuit.library.iqp_function",
129+
}
130+
123131

124132
# ----------------------------------------------------------------------------------
125133
# Doctest

0 commit comments

Comments
 (0)