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:

Port ColourData TypeExample
● PurpleQuantum registerOutput of Quantum Register block
● BlueNumberMeasurement result (0 or 1)
● TealListArray of numbers or strings
● AmberDictionaryHistogram {"00":503}
● GreyStringMolecule name, filename
● GreenAnyAccepts any compatible type

Quantum Blocks

Registers (3 blocks)

Block IDLabelParametersDescription
quantum_registerQuantum Registern_qubits, nameCreates n qubits all in state |0⟩. Starting point for every circuit.
register_sliceRegister Slicestart, endExtracts a sub-range of qubits.
multi_registerMulti-Registernames, sizesCreates multiple named registers at once.

Single-Qubit Gates (10 blocks)

Block IDGateEffect
hadamardH|0⟩→(|0⟩+|1⟩)/√2. Creates superposition.
x_gateXBit flip. |0⟩↔|1⟩. Quantum NOT.
y_gateYBit + phase flip. |0⟩→i|1⟩, |1⟩→-i|0⟩.
z_gateZPhase flip on |1⟩. |1⟩→-|1⟩.
s_gateSPhase gate. |1⟩→i|1⟩. S²=Z.
sdg_gateS†Inverse S. |1⟩→-i|1⟩.
t_gateTπ/8 gate. |1⟩→e^(iπ/4)|1⟩. T²=S.
tdg_gateT†Inverse T gate.
sx_gate√XSquare root of X. SX²=X.
identityIIdentity (no-op). Used for timing/barriers.

Two-Qubit Gates (9 blocks)

Block IDGateDescription
cnot_gateCNOT / CXControlled-NOT. Most important entangling gate.
cz_gateCZControlled-Z. Symmetric. Native on Google Sycamore.
cy_gateCYControlled-Y.
swap_gateSWAPExchange quantum states. = 3 CNOTs.
iswap_gateiSWAPSWAP with i phase on |01⟩ and |10⟩.
rzz_gateRZZ(θ)Ising ZZ interaction. Used in QAOA cost unitaries.
rxx_gateRXX(θ)Mølmer-Sørensen XX. Native on IonQ hardware.
ryy_gateRYY(θ)Ising YY interaction.
cp_gateCP(θ)Controlled phase e^(iθ) on |11⟩. Used in QFT.

Algorithm Blocks (8 blocks)

Block IDAlgorithmDescription
vqe_blockVQEVariational Quantum Eigensolver. Inputs: molecule. Outputs: {energy, n_iter, converged}.
qaoa_blockQAOAQuantum Approximate Optimisation. MaxCut, TSP, portfolio.
grover_blockGroverO(√N) search. Inputs: n_qubits, target, shots.
shor_blockShorInteger factoring via quantum period finding.
qpe_blockQPEQuantum Phase Estimation. Used in chemistry and HHL.
qft_blockQFTQuantum Fourier Transform. Forward or inverse.
teleport_blockTeleportationFull quantum teleportation protocol.
vqs_blockVQSVariational Quantum Simulation. Real-time dynamics.

Chemistry & Drug Discovery

Chemistry Blocks (8 blocks)

Block IDLabelWhat It Does
molecule_builderMolecule BuilderDefine molecular geometry, atoms, basis set
vqe_chemistryVQE ChemistryFull VQE pipeline with Hamiltonian generation
orbital_analysisOrbital AnalysisHOMO/LUMO energies, orbital diagrams
conformer_searchConformer SearchFind low-energy molecular conformations
retrosynthesisRetrosynthesisPredict synthetic routes to target molecules
nmr_predictorNMR PredictorPredict NMR chemical shifts
excited_statesExcited StatesCalculate excited state energies
dipole_momentDipole MomentCalculate molecular dipole moment

Drug Discovery (6 blocks)

Block IDLabelWhat It Does
virtual_screeningVirtual ScreeningScreen compound library against target protein
molecular_dockingMolecular DockingPredict binding pose and affinity
pharmacophorePharmacophoreExtract pharmacophore features
admet_predictionADMETPredict absorption, distribution, metabolism, excretion, toxicity
similarity_searchSimilarity SearchFind similar compounds by fingerprint
lead_optimisationLead OptimisationSuggest 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