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.
  • Loading branch information
jakelishman committed Apr 19, 2024
1 parent ff7ba3f commit 5dbc0c0
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 @@ -1101,7 +1101,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 @@ -1134,7 +1133,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 5dbc0c0

Please sign in to comment.