Skip to content

Commit

Permalink
Fix mistaken QPY custom-instructions documentation (#12216)
Browse files Browse the repository at this point in the history
`num_custom_gates` is not actually part of the `CIRCUIT_HEADER` structs
in any version of QPY.  The number of custom-instruction objects is
instead stored as a `uint64_t` inline in the `CUSTOM_DEFINITIONS` part
of the file, so separately to the rest of the header.

(cherry picked from commit 5dbc0c0)
  • Loading branch information
jakelishman authored and mergify[bot] committed Apr 19, 2024
1 parent 7591490 commit 3c8f0f1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions qiskit/qpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,6 @@
uint64_t metadata_size;
uint32_t num_registers;
uint64_t num_instructions;
uint64_t num_custom_gates;
}
This is immediately followed by ``name_size`` bytes of utf8 data for the name
Expand Down Expand Up @@ -1074,7 +1073,6 @@
uint64_t metadata_size;
uint32_t num_registers;
uint64_t num_instructions;
uint64_t num_custom_gates;
}
This is immediately followed by ``name_size`` bytes of utf8 data for the name
Expand Down

0 comments on commit 3c8f0f1

Please sign in to comment.