Expand description
C API for interacting with BasicBlock operations.
Functionsยง
- ket_
block_ add_ global_ phase - Adds a global phase to the
BasicBlock. - ket_
block_ append_ block - Appends the contents of
otherblock toblockand consumesother. - ket_
block_ append_ gate - Appends a new quantum gate (provided as a JSON payload) to a
BasicBlock. - ket_
block_ control - Creates a new
BasicBlockresulting from adding control qubits to all gates in the block. - ket_
block_ delete - Deallocates the memory associated with a
BasicBlock. - ket_
block_ enable_ approximated_ decomposition - Enables approximate decomposition strategies for all gates in the given
BasicBlock. - ket_
block_ inverse - Creates a new
BasicBlockthat is the adjoint (inverse) of the provided block. - ket_
block_ lock_ control - Locks the control qubits of all gates in the given
BasicBlock, preventing further additions. - ket_
block_ new - Allocates a new, empty
BasicBlockand writes its pointer toblock. - ket_
block_ proprieties_ json - Serializes the properties of the
BasicBlockinto a JSON payload and writes it to the buffer. - ket_
block_ set_ as_ diagonal - Marks the
BasicBlockas implementing a diagonal gate. - ket_
block_ set_ as_ permutation - Marks the
BasicBlockas implementing a permutation gate.