MCPcopy Create free account

hub / github.com/Renmusxd/RustQIP / functions

Functions293 in github.com/Renmusxd/RustQIP

↓ 1 callersFunctionmeasure_prob_fn
Calculate the probability of a given measurement. `measured` gives the bits (as a usize) which has been measured from the qubits at `indices` in the o
qip/src/state_ops/measurement_ops.rs:65
↓ 1 callersMethodmeasure_stochastic
( &mut self, r: Self::Register, )
qip/src/builder.rs:623
↓ 1 callersMethodn_nonzero
Size of the register in qubits.
qip/src/builder_traits.rs:14
↓ 1 callersMethodnew_similar
(&self)
qip/src/builder.rs:847
↓ 1 callersFunctionnormalize_ratio
(r: Ratio<i64>)
qip/src/qasm.rs:216
↓ 1 callersFunctionparse_function_args
(arg_stream: TokenStream, to: &mut Vec<String>)
qip-macros/src/lib.rs:356
↓ 1 callersFunctionparse_list_of_registers
Consumes a list of registers and punctuation up to the next line.
qip-macros/src/lib.rs:38
↓ 1 callersFunctionparse_register_and_indices
Eats a ident <Group>
qip-macros/src/lib.rs:11
↓ 1 callersFunctionprob_magnitude
Get total magnitude of state.
qip/src/state_ops/measurement_ops.rs:11
↓ 1 callersMethodrx_ratio
Rotate around z.
qip/src/builder_traits.rs:594
↓ 1 callersMethodry_ratio
Rotate around z.
qip/src/builder_traits.rs:600
↓ 1 callersFunctionsoft_measure
Sample a measurement from a state `input`. b Sample from qubits at `indices` and return bits in order given by `indices`. See `measure_prob` for deta
qip/src/state_ops/measurement_ops.rs:153
↓ 1 callersMethodsplit_first_qubit
Split off the first qubit from the register, returns the optional remaining registers and the first qubit.
qip/src/builder_traits.rs:137
↓ 1 callersFunctionsplit_helper
(cb: &mut CB, r: CB::Register, mut acc: Vec<CB::Register>)
qip/src/builder_traits.rs:224
↓ 1 callersMethodsplit_relative_index_groups
Split into multiple qubits, each with relative indices given by the sub-iterators. # Example ``` # use qip::prelude::*; # fn main() { let mut b = Lo
qip/src/builder_traits.rs:177
↓ 1 callersMethodsum_for_control_iterator
( &self, row: usize, n_control_indices: usize, n_op_indices: usize, f:
qip-iterators/src/iterators/ops.rs:118
↓ 1 callersMethodsum_for_op_cols
The function `f` maps a column to a complex value (given the `row`) for the op matrix. Sums for all nonzero entries for a given `op`
qip-iterators/src/iterators/ops.rs:100
↓ 1 callersFunctionsum_for_ops_cols
Like `sum_for_op_cols` but takes multiple ops at once. TODO: Clean up, remove fold_for_op_cols
qip-iterators/src/iterators/iterator_mapper.rs:8
↓ 1 callersFunctiontranspose_op
Invert a unitary op (equivalent to conjugate transpose).
qip/src/state_ops/matrix_ops.rs:182
↓ 1 callersFunctiontranspose_sparse
Transpose a sparse matrix.
qip/src/utils.rs:63
↓ 1 callersMethodtry_apply_with_condition
( &mut self, cr: CB::Register, r: CB::Register, co: CB::CircuitObject, )
qip/src/conditioning.rs:188
↓ 1 callersMethodwrite_openqasm_file
Writes current circuit as OpenQASM 2.0 into `path`.
qip/src/qasm.rs:103
↓ 1 callersMethodx
Create and apply an X (or NOT) gate circuit object.
qip/src/builder_traits.rs:383
↓ 1 callersMethodz
Create and apply a Z gate circuit object.
qip/src/builder_traits.rs:393
Functionadd
( b: &mut CB, rc: CB::Register, ra: CB::Register, rb: CB::Register, )
qip/src/boolean_circuits/arithmetic.rs:30
Functionadd_mod
( b: &mut CB, ra: CB::Register, rb: CB::Register, rm: CB::Register, )
qip/src/boolean_circuits/arithmetic.rs:94
Methodapply_circuit_object
( &mut self, r: Self::Register, c: Self::CircuitObject, )
qip/src/conditioning.rs:76
Methodapply_conditioned_subcircuit
( &mut self, sc: Self::Subcircuit, cr: Self::Register, r: Self::Register,
qip/src/builder.rs:864
Methodapply_global_phase_pi_by
Apply a global phase of pi/m for integer m.
qip/src/builder.rs:54
Methodapply_matrix
Apply an arbitrary matrix to the circuit given by an array.
qip/src/builder_traits.rs:254
Functionapply_op_row
Compute vector element at a given row from op applied to input.
qip-iterators/src/matrix_ops.rs:38
Methodapply_subcircuit
( &mut self, sc: Self::Subcircuit, r: Self::Register, )
qip/src/conditioning.rs:227
Methodapply_vec_matrix
Apply an arbitrary matrix to the circuit given by a vector.
qip/src/builder_traits.rs:244
Functionbench_apply_many_swaps_large
(b: &mut Bencher)
qip/benches/state_bench.rs:314
Functionbench_apply_many_swaps_large_multiops
(b: &mut Bencher)
qip/benches/state_bench.rs:333
Functionbench_apply_many_swaps_small
(b: &mut Bencher)
qip/benches/state_bench.rs:277
Functionbench_apply_many_swaps_small_multiops
(b: &mut Bencher)
qip/benches/state_bench.rs:296
Functionbench_apply_two_swaps_large
(b: &mut Bencher)
qip/benches/state_bench.rs:241
Functionbench_apply_two_swaps_large_multiops
(b: &mut Bencher)
qip/benches/state_bench.rs:259
Functionbench_apply_two_swaps_small
(b: &mut Bencher)
qip/benches/state_bench.rs:205
Functionbench_apply_two_swaps_small_multiops
(b: &mut Bencher)
qip/benches/state_bench.rs:223
Functionbench_cidentity
(b: &mut Bencher)
qip/benches/state_bench.rs:83
Functionbench_cidentity_giant
(b: &mut Bencher)
qip/benches/state_bench.rs:173
Functionbench_cidentity_giant_halfprec
(b: &mut Bencher)
qip/benches/state_bench.rs:189
Functionbench_cidentity_larger
(b: &mut Bencher)
qip/benches/state_bench.rs:158
Functionbench_hadamard
(b: &mut Bencher)
qip/benches/state_bench.rs:60
Functionbench_hadamard_larger
(b: &mut Bencher)
qip/benches/state_bench.rs:119
Functionbench_hadamard_larger_single
(b: &mut Bencher)
qip/benches/state_bench.rs:142
Functionbench_identity
(b: &mut Bencher)
qip/benches/state_bench.rs:38
Functionbench_identity_giant_sparse
(b: &mut Bencher)
qip/benches/state_bench.rs:381
Functionbench_identity_larger
(b: &mut Bencher)
qip/benches/state_bench.rs:97
Functionbench_identity_larger_sparse
(b: &mut Bencher)
qip/benches/state_bench.rs:366
Functionbench_identity_sparse
(b: &mut Bencher)
qip/benches/state_bench.rs:351
Functionbench_large_ones_qip
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:164
Functionbench_large_ones_sprs_build_each
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:200
Functionbench_large_ones_sprs_reuse
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:180
Functionbench_ones_faer_reuse_arena
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:129
Functionbench_ones_faer_reuse_arena_singlethread
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:107
Functionbench_ones_ndarray_build_each
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:87
Functionbench_ones_ndarray_reuse
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:98
Functionbench_ones_ndarray_reuse_arena
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:151
Functionbench_ones_qip
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:20
Functionbench_ones_sprs_build_each
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:56
Functionbench_ones_sprs_reuse
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:36
Functionbench_three_qip_multi
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:284
Functionbench_three_qip_series
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:262
Functionbench_twelve_qip_multi
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:327
Functionbench_twelve_qip_series
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:305
Functionbench_two_qip_multi
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:242
Functionbench_two_qip_series
(b: &mut Bencher)
qip-iterators/benches/matmul_bench.rs:222
Methodbroadcast_single_qubit_matrix
Single qubit matrices can be applied to each qubit in a register unambiguously. Matrix is organized as |0><0|, |0><1|, |1><0|, |1><1|
qip/src/builder_traits.rs:265
Methodcalculate_state_with_init
(&mut self, it: It)
qip/src/conditioning.rs:87
Functioncarry
( b: &mut CB, rc: CB::Register, ra: CB::Register, rb: CB::Register, rcp: CB::Register, )
qip/src/boolean_circuits/arithmetic.rs:74
Functioncnot
A controlled NOT gate op.
qip/src/macros/program_ops.rs:26
Functioncopy
( b: &mut CB, ra: CB::Register, rb: CB::Register, )
qip/src/boolean_circuits/arithmetic.rs:222
Functionentwine_bits
Mixes two bitstreams, `z_bits` and `o_bits`, takes one bit off the lowest position from each to construct the output, `selector` is used to choose whi
qip/src/utils.rs:21
Methodeq
(&self, other: &Self)
qip/src/builder.rs:179
Functionexp_mod
( b: &mut CB, ra: CB::Register, rb: CB::Register, rm: CB::Register, rp: CB::Register,
qip/src/boolean_circuits/arithmetic.rs:288
Methodfmt
(&self, f: &mut fmt::Formatter)
qip-iterators/src/iterators/ops.rs:160
Methodfmt
(&self, f: &mut Formatter<'_>)
qip/src/errors.rs:27
Methodfrom
(it: It)
qip/src/macros/program.rs:37
Functionfrom_tuples
Make a vector of complex numbers whose reals are given by the first tuple entry in `data` and whose imaginaries are from the second.
qip/src/state_ops/matrix_ops.rs:215
Functiongamma
( b: &mut B, ra: B::Register, rb: B::Register, )
qip/examples/inverse_example.rs:9
Functiongamma
( cb: &mut CB, ra: CB::Register, )
qip/examples/simple.rs:7
Functiongamma
( _cb: &mut CB, ra: CB::Register, rb: CB::Register, )
qip/examples/macro_example.rs:7
Methodget_all_selected
Returns select and unselected registers.
qip/src/builder_traits.rs:43
Methodget_measurement
Get a measurement result given a handle.
qip/src/builder.rs:310
Methodget_selected
Returns select registers, throws out remaining.
qip/src/builder_traits.rs:51
Methodget_stochastic_measurement
Get a stochastic measurement result given a handle.
qip/src/builder.rs:317
Functioninvert
(attr: TokenStream, input_stream: TokenStream)
qip-macros/src/lib.rs:371
Functioninvert_op
Invert a unitary op (equivalent to conjugate transpose).
qip/src/state_ops/matrix_ops.rs:152
Methodinvert_subcircuit
(sc: Self::Subcircuit)
qip/src/conditioning.rs:248
Methodinvert_subcircuit
(sc: Self::Subcircuit)
qip/src/builder.rs:851
Functioninverter
Invert the circuit made by `f`. Apply the inverted circuit to registers `rs` using circuitbuilder `cb`.
qip/src/inverter.rs:86
Functionmain
()
qip/examples/inverse_example.rs:23
Functionmain
()
qip/examples/simple.rs:16
Functionmain
()
qip/examples/macro_example.rs:16
Functionmake_circuit_matrix
Create a circuit for the circuit given by `r`.
qip/src/builder_traits.rs:656
Methodmake_cnot
(&self)
qip/src/conditioning.rs:125
Methodmake_h
(&self)
qip/src/conditioning.rs:116
← previousnext →101–200 of 293, ranked by callers