Reference
639 Block Reference
Every block available in the visual canvas. Drag any block from the palette, configure it in the Properties panel, and connect with wires.
Full Visual Engine Guide
This compatibility reference stays available for quick lookup. The exhaustive generated cookbook for every block, port, parameter, code generator, canvas action, and UI workflow lives on the Sansqrit Visual Engine page.
0
Total Blocks
0
Categories
0
Quantum Gates
0
Export Formats
Block Anatomy
Every block has:
- Header — Block name + category, coloured by type
- Parameters — Configurable in the Properties panel (right side)
- Input ports — Left side, coloured by data type
- Output ports — Right side, drag to draw wires
| Port Colour | Data Type | Example |
|---|---|---|
| ● Purple | Quantum register | Output of Quantum Register block |
| ● Blue | Number | Measurement result (0 or 1) |
| ● Teal | List | Array of numbers or strings |
| ● Amber | Dictionary | Histogram {"00":503} |
| ● Grey | String | Molecule name, filename |
| ● Green | Any | Accepts any compatible type |
Quantum Blocks
Registers (3 blocks)
| Block ID | Label | Parameters | Description |
|---|---|---|---|
quantum_register | Quantum Register | n_qubits, name | Creates n qubits all in state |0⟩. Starting point for every circuit. |
register_slice | Register Slice | start, end | Extracts a sub-range of qubits. |
multi_register | Multi-Register | names, sizes | Creates multiple named registers at once. |
Single-Qubit Gates (10 blocks)
| Block ID | Gate | Effect |
|---|---|---|
hadamard | H | |0⟩→(|0⟩+|1⟩)/√2. Creates superposition. |
x_gate | X | Bit flip. |0⟩↔|1⟩. Quantum NOT. |
y_gate | Y | Bit + phase flip. |0⟩→i|1⟩, |1⟩→-i|0⟩. |
z_gate | Z | Phase flip on |1⟩. |1⟩→-|1⟩. |
s_gate | S | Phase gate. |1⟩→i|1⟩. S²=Z. |
sdg_gate | S† | Inverse S. |1⟩→-i|1⟩. |
t_gate | T | π/8 gate. |1⟩→e^(iπ/4)|1⟩. T²=S. |
tdg_gate | T† | Inverse T gate. |
sx_gate | √X | Square root of X. SX²=X. |
identity | I | Identity (no-op). Used for timing/barriers. |
Two-Qubit Gates (9 blocks)
| Block ID | Gate | Description |
|---|---|---|
cnot_gate | CNOT / CX | Controlled-NOT. Most important entangling gate. |
cz_gate | CZ | Controlled-Z. Symmetric. Native on Google Sycamore. |
cy_gate | CY | Controlled-Y. |
swap_gate | SWAP | Exchange quantum states. = 3 CNOTs. |
iswap_gate | iSWAP | SWAP with i phase on |01⟩ and |10⟩. |
rzz_gate | RZZ(θ) | Ising ZZ interaction. Used in QAOA cost unitaries. |
rxx_gate | RXX(θ) | Mølmer-Sørensen XX. Native on IonQ hardware. |
ryy_gate | RYY(θ) | Ising YY interaction. |
cp_gate | CP(θ) | Controlled phase e^(iθ) on |11⟩. Used in QFT. |
Algorithm Blocks (8 blocks)
| Block ID | Algorithm | Description |
|---|---|---|
vqe_block | VQE | Variational Quantum Eigensolver. Inputs: molecule. Outputs: {energy, n_iter, converged}. |
qaoa_block | QAOA | Quantum Approximate Optimisation. MaxCut, TSP, portfolio. |
grover_block | Grover | O(√N) search. Inputs: n_qubits, target, shots. |
shor_block | Shor | Integer factoring via quantum period finding. |
qpe_block | QPE | Quantum Phase Estimation. Used in chemistry and HHL. |
qft_block | QFT | Quantum Fourier Transform. Forward or inverse. |
teleport_block | Teleportation | Full quantum teleportation protocol. |
vqs_block | VQS | Variational Quantum Simulation. Real-time dynamics. |
Chemistry & Drug Discovery
Chemistry Blocks (8 blocks)
| Block ID | Label | What It Does |
|---|---|---|
molecule_builder | Molecule Builder | Define molecular geometry, atoms, basis set |
vqe_chemistry | VQE Chemistry | Full VQE pipeline with Hamiltonian generation |
orbital_analysis | Orbital Analysis | HOMO/LUMO energies, orbital diagrams |
conformer_search | Conformer Search | Find low-energy molecular conformations |
retrosynthesis | Retrosynthesis | Predict synthetic routes to target molecules |
nmr_predictor | NMR Predictor | Predict NMR chemical shifts |
excited_states | Excited States | Calculate excited state energies |
dipole_moment | Dipole Moment | Calculate molecular dipole moment |
Drug Discovery (6 blocks)
| Block ID | Label | What It Does |
|---|---|---|
virtual_screening | Virtual Screening | Screen compound library against target protein |
molecular_docking | Molecular Docking | Predict binding pose and affinity |
pharmacophore | Pharmacophore | Extract pharmacophore features |
admet_prediction | ADMET | Predict absorption, distribution, metabolism, excretion, toxicity |
similarity_search | Similarity Search | Find similar compounds by fingerprint |
lead_optimisation | Lead Optimisation | Suggest structural modifications |
Machine Learning (20+ blocks)
QSVMVQCQuantum Kernel
Quantum TransformerQGNNQRL
XGBoostAutoMLNeural Network
Random ForestSVMPCAt-SNE
Prompt TemplateLLM Complete
Vector StoreEmbeddingAgent
Data Sources & Transforms
CSV SourceJSON SourceSQL Source
MongoDBParquet
FilterGroup ByJoin
SortPivotMeltImpute
Output & Charts
PrintLine ChartBar Chart
HeatmapScatter
Circuit DiagramResults Table
Utility Blocks
TimerAssertFor Loop
ConditionalUUIDTimestamp
HTTP RequestShell CommandWebhook
Custom CodeCustom GateImport Library