@@ -16,9 +16,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
16
16
17
17
** Functions**
18
18
19
- ### \_ CPPv411qk \ _ obs\_ zero8uint32 \_ t
19
+ ### qk \ _ obs\_ zero
20
20
21
- <Function id = " _CPPv411qk_obs_zero8uint32_t " signature = " QkSparseObservable *qk_obs_zero(uint32_t num_qubits)" >
21
+ <Function id = " qk_obs_zero " signature = " QkSparseObservable *qk_obs_zero(uint32_t num_qubits)" >
22
22
Construct the zero observable (without any terms).
23
23
24
24
<span id = " group__QkSparseObservable_1autotoc_md3" />
@@ -38,9 +38,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
38
38
A pointer to the created observable.
39
39
</Function >
40
40
41
- ### \_ CPPv415qk \ _ obs\_ identity8uint32 \_ t
41
+ ### qk \ _ obs\_ identity
42
42
43
- <Function id = " _CPPv415qk_obs_identity8uint32_t " signature = " QkSparseObservable *qk_obs_identity(uint32_t num_qubits)" >
43
+ <Function id = " qk_obs_identity " signature = " QkSparseObservable *qk_obs_identity(uint32_t num_qubits)" >
44
44
Construct the identity observable.
45
45
46
46
<span id = " group__QkSparseObservable_1autotoc_md4" />
@@ -60,9 +60,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
60
60
A pointer to the created observable.
61
61
</Function >
62
62
63
- ### \_ CPPv410qk \ _ obs\_ new8uint32 \_ t8uint64 \_ t8uint64 \_ tP11QkComplex64P9QkBitTermP8uint32 \_ tP9uintptr \_ t
63
+ ### qk \ _ obs\_ new
64
64
65
- <Function id = " _CPPv410qk_obs_new8uint32_t8uint64_t8uint64_tP11QkComplex64P9QkBitTermP8uint32_tP9uintptr_t " signature = " QkSparseObservable *qk_obs_new(uint32_t num_qubits, uint64_t num_terms, uint64_t num_bits, QkComplex64 *coeffs, QkBitTerm *bit_terms, uint32_t *indices, uintptr_t *boundaries)" >
65
+ <Function id = " qk_obs_new " signature = " QkSparseObservable *qk_obs_new(uint32_t num_qubits, uint64_t num_terms, uint64_t num_bits, QkComplex64 *coeffs, QkBitTerm *bit_terms, uint32_t *indices, uintptr_t *boundaries)" >
66
66
Construct a new observable from raw data.
67
67
68
68
<span id = " group__QkSparseObservable_1autotoc_md5" />
@@ -113,9 +113,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
113
113
If the input data was coherent and the construction successful, the result is a pointer to the observable. Otherwise a null pointer is returned.
114
114
</Function >
115
115
116
- ### \_ CPPv411qk \ _ obs\_ freeP18QkSparseObservable
116
+ ### qk \ _ obs\_ free
117
117
118
- <Function id = " _CPPv411qk_obs_freeP18QkSparseObservable " signature = " void qk_obs_free(QkSparseObservable *obs)" >
118
+ <Function id = " qk_obs_free " signature = " void qk_obs_free(QkSparseObservable *obs)" >
119
119
Free the observable.
120
120
121
121
<span id = " group__QkSparseObservable_1autotoc_md7" />
@@ -140,9 +140,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
140
140
**obs** – A pointer to the observable to free.
141
141
</Function>
142
142
143
- ### \_CPPv415qk\ _obs\_add\_termP18QkSparseObservablePK12QkSparseTerm
143
+ ### qk\ _obs\_add\_term
144
144
145
- <Function id="_CPPv415qk_obs_add_termP18QkSparseObservablePK12QkSparseTerm " signature="QkExitCode qk_obs_add_term(QkSparseObservable *obs, const QkSparseTerm *cterm)">
145
+ <Function id="qk_obs_add_term " signature="QkExitCode qk_obs_add_term(QkSparseObservable *obs, const QkSparseTerm *cterm)">
146
146
Add a term to the observable.
147
147
148
148
<span id="group__QkSparseObservable_1autotoc_md9" />
@@ -182,9 +182,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
182
182
An exit code. This is ` >0 ` if the term is incoherent or adding the term fails.
183
183
</Function >
184
184
185
- ### \_ CPPv411qk \ _ obs\_ termP18QkSparseObservable8uint64 \_ tP12QkSparseTerm
185
+ ### qk \ _ obs\_ term
186
186
187
- <Function id = " _CPPv411qk_obs_termP18QkSparseObservable8uint64_tP12QkSparseTerm " signature = " QkExitCode qk_obs_term(QkSparseObservable *obs, uint64_t index, QkSparseTerm *out)" >
187
+ <Function id = " qk_obs_term " signature = " QkExitCode qk_obs_term(QkSparseObservable *obs, uint64_t index, QkSparseTerm *out)" >
188
188
Get an observable term by reference.
189
189
190
190
A \[ CSparseTerm] contains pointers to the indices and bit terms in the term, which can be used to modify the internal data of the observable. This can leave the observable in an incoherent state and should be avoided, unless great care is taken. It is generally safer to construct a new observable instead of attempting in-place modifications.
@@ -223,9 +223,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
223
223
An exit code.
224
224
</Function >
225
225
226
- ### \_ CPPv416qk \ _ obs\_ num\_ termsPK18QkSparseObservable
226
+ ### qk \ _ obs\_ num\_ terms
227
227
228
- <Function id = " _CPPv416qk_obs_num_termsPK18QkSparseObservable " signature = " uintptr_t qk_obs_num_terms(const QkSparseObservable *obs)" >
228
+ <Function id = " qk_obs_num_terms " signature = " uintptr_t qk_obs_num_terms(const QkSparseObservable *obs)" >
229
229
Get the number of terms in the observable.
230
230
231
231
<span id = " group__QkSparseObservable_1autotoc_md13" />
@@ -254,9 +254,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
254
254
The number of terms in the observable.
255
255
</Function >
256
256
257
- ### \_ CPPv417qk \ _ obs\_ num\_ qubitsPK18QkSparseObservable
257
+ ### qk \ _ obs\_ num\_ qubits
258
258
259
- <Function id = " _CPPv417qk_obs_num_qubitsPK18QkSparseObservable " signature = " uint32_t qk_obs_num_qubits(const QkSparseObservable *obs)" >
259
+ <Function id = " qk_obs_num_qubits " signature = " uint32_t qk_obs_num_qubits(const QkSparseObservable *obs)" >
260
260
Get the number of qubits the observable is defined on.
261
261
262
262
<span id = " group__QkSparseObservable_1autotoc_md15" />
@@ -285,9 +285,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
285
285
The number of qubits the observable is defined on.
286
286
</Function >
287
287
288
- ### \_ CPPv410qk \ _ obs\_ lenPK18QkSparseObservable
288
+ ### qk \ _ obs\_ len
289
289
290
- <Function id = " _CPPv410qk_obs_lenPK18QkSparseObservable " signature = " uintptr_t qk_obs_len(const QkSparseObservable *obs)" >
290
+ <Function id = " qk_obs_len " signature = " uintptr_t qk_obs_len(const QkSparseObservable *obs)" >
291
291
Get the number of bit terms/indices in the observable.
292
292
293
293
<span id = " group__QkSparseObservable_1autotoc_md17" />
@@ -316,9 +316,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
316
316
The number of terms in the observable.
317
317
</Function >
318
318
319
- ### \_ CPPv413qk \ _ obs\_ coeffsP18QkSparseObservable
319
+ ### qk \ _ obs\_ coeffs
320
320
321
- <Function id = " _CPPv413qk_obs_coeffsP18QkSparseObservable " signature = " QkComplex64 *qk_obs_coeffs(QkSparseObservable *obs)" >
321
+ <Function id = " qk_obs_coeffs " signature = " QkComplex64 *qk_obs_coeffs(QkSparseObservable *obs)" >
322
322
Get a pointer to the coefficients.
323
323
324
324
This can be used to read and modify the observable’s coefficients. The resulting pointer is valid to read for ` qk_obs_num_terms(obs) ` elements of ` complex double ` .
@@ -354,9 +354,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
354
354
A pointer to the coefficients.
355
355
</Function>
356
356
357
- ### \_CPPv414qk\ _obs\_indicesP18QkSparseObservable
357
+ ### qk\ _obs\_indices
358
358
359
- <Function id="_CPPv414qk_obs_indicesP18QkSparseObservable " signature="uint32_t *qk_obs_indices(QkSparseObservable *obs)">
359
+ <Function id="qk_obs_indices " signature="uint32_t *qk_obs_indices(QkSparseObservable *obs)">
360
360
Get a pointer to the indices.
361
361
362
362
This can be used to read and modify the observable’s indices. The resulting pointer is valid to read for `qk_obs_len(obs)` elements of size `uint32_t`.
@@ -400,9 +400,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
400
400
A pointer to the indices.
401
401
</Function >
402
402
403
- ### \_ CPPv417qk \ _ obs\_ boundariesP18QkSparseObservable
403
+ ### qk \ _ obs\_ boundaries
404
404
405
- <Function id = " _CPPv417qk_obs_boundariesP18QkSparseObservable " signature = " uintptr_t *qk_obs_boundaries(QkSparseObservable *obs)" >
405
+ <Function id = " qk_obs_boundaries " signature = " uintptr_t *qk_obs_boundaries(QkSparseObservable *obs)" >
406
406
Get a pointer to the term boundaries.
407
407
408
408
This can be used to read and modify the observable’s term boundaries. The resulting pointer is valid to read for ` qk_obs_num_terms(obs) + 1 ` elements of size ` size_t ` .
@@ -446,9 +446,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
446
446
A pointer to the boundaries.
447
447
</Function>
448
448
449
- ### \_CPPv416qk\ _obs\_bit\_termsP18QkSparseObservable
449
+ ### qk\ _obs\_bit\_terms
450
450
451
- <Function id="_CPPv416qk_obs_bit_termsP18QkSparseObservable " signature="QkBitTerm *qk_obs_bit_terms(QkSparseObservable *obs)">
451
+ <Function id="qk_obs_bit_terms " signature="QkBitTerm *qk_obs_bit_terms(QkSparseObservable *obs)">
452
452
Get a pointer to the bit terms.
453
453
454
454
This can be used to read and modify the observable’s bit terms. The resulting pointer is valid to read for `qk_obs_len(obs)` elements of size `uint8_t`.
@@ -492,9 +492,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
492
492
A pointer to the bit terms.
493
493
</Function >
494
494
495
- ### \_ CPPv415qk \ _ obs\_ multiplyPK18QkSparseObservablePK11QkComplex64
495
+ ### qk \ _ obs\_ multiply
496
496
497
- <Function id = " _CPPv415qk_obs_multiplyPK18QkSparseObservablePK11QkComplex64 " signature = " QkSparseObservable *qk_obs_multiply(const QkSparseObservable *obs, const QkComplex64 *coeff)" >
497
+ <Function id = " qk_obs_multiply " signature = " QkSparseObservable *qk_obs_multiply(const QkSparseObservable *obs, const QkComplex64 *coeff)" >
498
498
Multiply the observable by a complex coefficient.
499
499
500
500
<span id = " group__QkSparseObservable_1autotoc_md27" />
@@ -523,9 +523,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
523
523
* ** coeff** – The coefficient to multiply the observable with.
524
524
</Function >
525
525
526
- ### \_ CPPv423qk \ _ obs\_ multiply\_ inplaceP18QkSparseObservablePK11QkComplex64
526
+ ### qk \ _ obs\_ multiply\_ inplace
527
527
528
- <Function id = " _CPPv423qk_obs_multiply_inplaceP18QkSparseObservablePK11QkComplex64 " signature = " void qk_obs_multiply_inplace(QkSparseObservable *obs, const QkComplex64 *coeff)" >
528
+ <Function id = " qk_obs_multiply_inplace " signature = " void qk_obs_multiply_inplace(QkSparseObservable *obs, const QkComplex64 *coeff)" >
529
529
Multiply the observable by a complex coefficient inplace.
530
530
531
531
<span id = " group__QkSparseObservable_1autotoc_md29" />
@@ -554,9 +554,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
554
554
* **coeff** – The coefficient to multiply the observable with.
555
555
</Function>
556
556
557
- ### \_CPPv414qk\ _obs\_composePK18QkSparseObservablePK18QkSparseObservable
557
+ ### qk\ _obs\_compose
558
558
559
- <Function id="_CPPv414qk_obs_composePK18QkSparseObservablePK18QkSparseObservable " signature="QkSparseObservable *qk_obs_compose(const QkSparseObservable *right, const QkSparseObservable *left)">
559
+ <Function id="qk_obs_compose " signature="QkSparseObservable *qk_obs_compose(const QkSparseObservable *right, const QkSparseObservable *left)">
560
560
Compose (multiply) two observables.
561
561
562
562
<span id="group__QkSparseObservable_1autotoc_md31" />
@@ -587,9 +587,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
587
587
` right.compose(left) ` which equals the observable ` result = left @ right ` , in terms of the matrix multiplication ` @ ` .
588
588
</Function >
589
589
590
- ### \_ CPPv410qk \ _ obs\_ addPK18QkSparseObservablePK18QkSparseObservable
590
+ ### qk \ _ obs\_ add
591
591
592
- <Function id = " _CPPv410qk_obs_addPK18QkSparseObservablePK18QkSparseObservable " signature = " QkSparseObservable *qk_obs_add(const QkSparseObservable *left, const QkSparseObservable *right)" >
592
+ <Function id = " qk_obs_add " signature = " QkSparseObservable *qk_obs_add(const QkSparseObservable *left, const QkSparseObservable *right)" >
593
593
Add two observables.
594
594
595
595
<span id = " group__QkSparseObservable_1autotoc_md33" />
@@ -620,9 +620,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
620
620
A pointer to the result ` left + right ` .
621
621
</Function >
622
622
623
- ### \_ CPPv413qk \ _ obs\_ appendP18QkSparseObservablePK18QkSparseObservable
623
+ ### qk \ _ obs\_ append
624
624
625
- <Function id = " _CPPv413qk_obs_appendP18QkSparseObservablePK18QkSparseObservable " signature = " void qk_obs_append(QkSparseObservable *obs, const QkSparseObservable *other)" >
625
+ <Function id = " qk_obs_append " signature = " void qk_obs_append(QkSparseObservable *obs, const QkSparseObservable *other)" >
626
626
Add two observables.
627
627
628
628
<span id = " group__QkSparseObservable_1autotoc_md35" />
@@ -653,9 +653,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
653
653
A pointer to the result ` left + right ` .
654
654
</Function >
655
655
656
- ### \_ CPPv419qk \ _ obs\_ canonicalizePK18QkSparseObservabled
656
+ ### qk \ _ obs\_ canonicalize
657
657
658
- <Function id = " _CPPv419qk_obs_canonicalizePK18QkSparseObservabled " signature = " QkSparseObservable *qk_obs_canonicalize(const QkSparseObservable *obs, double tol)" >
658
+ <Function id = " qk_obs_canonicalize " signature = " QkSparseObservable *qk_obs_canonicalize(const QkSparseObservable *obs, double tol)" >
659
659
Calculate the canonical representation of the observable.
660
660
661
661
<span id = " group__QkSparseObservable_1autotoc_md37" />
@@ -688,9 +688,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
688
688
The canonical representation of the observable.
689
689
</Function >
690
690
691
- ### \_ CPPv411qk \ _ obs\_ copyPK18QkSparseObservable
691
+ ### qk \ _ obs\_ copy
692
692
693
- <Function id = " _CPPv411qk_obs_copyPK18QkSparseObservable " signature = " QkSparseObservable *qk_obs_copy(const QkSparseObservable *obs)" >
693
+ <Function id = " qk_obs_copy " signature = " QkSparseObservable *qk_obs_copy(const QkSparseObservable *obs)" >
694
694
Copy the observable.
695
695
696
696
<span id = " group__QkSparseObservable_1autotoc_md39" />
@@ -719,9 +719,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
719
719
A pointer to a copy of the observable.
720
720
</Function >
721
721
722
- ### \_ CPPv412qk \ _ obs\_ equalPK18QkSparseObservablePK18QkSparseObservable
722
+ ### qk \ _ obs\_ equal
723
723
724
- <Function id = " _CPPv412qk_obs_equalPK18QkSparseObservablePK18QkSparseObservable " signature = " bool qk_obs_equal(const QkSparseObservable *obs, const QkSparseObservable *other)" >
724
+ <Function id = " qk_obs_equal " signature = " bool qk_obs_equal(const QkSparseObservable *obs, const QkSparseObservable *other)" >
725
725
Compare two observables for equality.
726
726
727
727
Note that this does not compare mathematical equality, but data equality. This means that two observables might represent the same observable but not compare as equal.
@@ -754,9 +754,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseO
754
754
` true ` if the observables are equal, ` false ` otherwise.
755
755
</Function >
756
756
757
- ### \_ CPPv412qk \ _ obs\_ printPK18QkSparseObservable
757
+ ### qk \ _ obs\_ print
758
758
759
- <Function id = " _CPPv412qk_obs_printPK18QkSparseObservable " signature = " void qk_obs_print(const QkSparseObservable *obs)" >
759
+ <Function id = " qk_obs_print " signature = " void qk_obs_print(const QkSparseObservable *obs)" >
760
760
Print the observable.
761
761
762
762
<span id = " group__QkSparseObservable_1autotoc_md43" />
@@ -789,9 +789,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseT
789
789
790
790
**Functions**
791
791
792
- ### \_CPPv416qk\ _obsterm\_printPK12QkSparseTerm
792
+ ### qk\ _obsterm\_print
793
793
794
- <Function id="_CPPv416qk_obsterm_printPK12QkSparseTerm " signature="QkExitCode qk_obsterm_print(const QkSparseTerm *term)">
794
+ <Function id="qk_obsterm_print " signature="QkExitCode qk_obsterm_print(const QkSparseTerm *term)">
795
795
Print the sparse term.
796
796
797
797
<span id="group__QkSparseTerm_1autotoc_md45" />
@@ -822,9 +822,9 @@ This is a group of functions for interacting with an opaque (Rust-space) SparseT
822
822
The function exit code. This is ` >0 ` if reading the term failed.
823
823
</Function >
824
824
825
- ### \_ CPPv412QkSparseTerm
825
+ ### QkSparseTerm
826
826
827
- <Class id = " _CPPv412QkSparseTerm " signature = " struct QkSparseTerm" >
827
+ <Class id = " QkSparseTerm " signature = " struct QkSparseTerm" >
828
828
* #include \< qiskit.h>*
829
829
830
830
A term in a \[ SparseObservable] .
@@ -849,9 +849,9 @@ This is a group of functions for interacting with an opaque (Rust-space) BitTerm
849
849
850
850
** Functions**
851
851
852
- ### \_ CPPv416qk \ _ bitterm\_ label9QkBitTerm
852
+ ### qk \ _ bitterm\_ label
853
853
854
- <Function id = " _CPPv416qk_bitterm_label9QkBitTerm " signature = " uint8_t qk_bitterm_label(QkBitTerm bit_term)" >
854
+ <Function id = " qk_bitterm_label " signature = " uint8_t qk_bitterm_label(QkBitTerm bit_term)" >
855
855
Get the label for a bit term.
856
856
857
857
<span id = " group__QkBitTerm_1autotoc_md47" />
0 commit comments