Module process

Source
Expand description

C API for the Process struct.

Functions§

ket_hamiltonian_add
Adds a term to the PauliHamiltonian.
ket_hamiltonian_new
Creates a new PauliHamiltonian instance.
ket_process_adj_begin
Begins an adjoint operation in the Process instance.
ket_process_adj_end
Ends an adjoint operation in the Process instance.
ket_process_allocate_aux
Safety
ket_process_allocate_qubit
Allocates a qubit for the Process instance.
ket_process_apply_gate
Applies a quantum gate to the target Qubit in the Process instance.
ket_process_apply_global_phase
Applies a global phase.
ket_process_approximated_decomposition_begin
Safety
ket_process_approximated_decomposition_end
Safety
ket_process_around_begin
Safety
ket_process_around_end
Safety
ket_process_around_mid
Safety
ket_process_around_undo
Safety
ket_process_ctrl_pop
Pops control qubits from the control stack in the Process instance.
ket_process_ctrl_push
Pushes control qubits onto the control stack in the Process instance.
ket_process_ctrl_stack
Pushes control stack in the Process instance.
ket_process_ctrl_unstack
Pops control stack from the Process instance.
ket_process_delete
Deletes the Process instance.
ket_process_dump
Dumps the state of the specified qubits in the Process instance.
ket_process_execute
Execute the Process.
ket_process_exp_value
Calculates the expected value of the PauliHamiltonian in the Process instance.
ket_process_free_aux
Safety
ket_process_get_gradient
Safety
ket_process_instructions_json
Gets the JSON representation of the logical instructions in the Process instance.
ket_process_is_diagonal_begin
Safety
ket_process_is_diagonal_end
Safety
ket_process_is_permutation_begin
Safety
ket_process_is_permutation_end
Safety
ket_process_isa_instructions_json
Gets the JSON representation of the physical instructions in the Process instance.
ket_process_load_sim_state
Safety
ket_process_measure
Measures the specified qubits in the Process instance.
ket_process_metadata_json
Gets the JSON representation of the metadata in the Process instance.
ket_process_new
Creates a new Process instance with the given process ID.
ket_process_prepare_for_execution
Prepares the Process instance for execution.
ket_process_sample
Samples the specified qubits in the Process instance.
ket_process_save_sim_state
Safety
ket_process_set_parameter
Safety