genQC logo genQC
  • Overview
  • Get Started
  • Tutorials
  • API Reference
  • Research
  • Code Repository
  1. Platform
  2. Tokenizer
  3. Tensor tokenizer

API Reference

  • Modules Overview
  • Release notes

  • Benchmark
    • Compilation benchmark
  • Dataset
    • Dataset balancing
    • Cached dataset
    • Quantum circuit dataset
    • Config dataset
    • Dataset helper functions
    • Mixed cached dataset
  • Inference
    • Evaluation metrics
    • Evaluation helper
    • Sampling functions
  • Models
    • Config model
    • Frozen OpenCLIP
    • Layers
    • Position encodings
    • Conditional qc-UNet
    • Encoder for unitaries
    • Clip
      • Frozen OpenCLIP
      • Unitary CLIP
    • Embedding
      • Base embedder
      • Rotational preset embedder
    • Transformers
      • Transformers and attention
      • CirDiT - Circuit Diffusion Transformer
      • Transformers
  • Pipeline
    • Callbacks
    • Compilation Diffusion Pipeline
    • Diffusion Pipeline
    • Diffusion Pipeline Special
    • Metrics
    • Multimodal Diffusion Pipeline
    • Pipeline
    • Unitary CLIP Pipeline
  • Platform
    • Circuits dataset generation functions
    • Circuits instructions
    • Simulation backend
    • Backends
      • Base backend
      • CUDA-Q circuits backend
      • Pennylane circuits backend
      • Qiskit circuits backend
    • Tokenizer
      • Base tokenizer
      • Circuits tokenizer
      • Tensor tokenizer
  • Scheduler
    • Scheduler
    • DDIM Scheduler
    • DDPM Scheduler
    • DPM Scheduler
  • Utils
    • Async functions
    • Config loader
    • Math and algorithms
    • Miscellaneous util

On this page

  • GatePairTokenizer
    • GatePairTokenizer
    • Plot learned tokens
    • sort_config
    • get_topk_depth_unpacked
  • Report an issue
  • View source
  1. Platform
  2. Tokenizer
  3. Tensor tokenizer

Tensor tokenizer

Class to further tokenize tensor representations.

GatePairTokenizer


source

GatePairTokenizer

 GatePairTokenizer (unique_class_values, zero_token, padding_token,
                    device)

Helper class that provides a standard way to create an ABC using inheritance.

Plot learned tokens


source

sort_config

 sort_config (vocab_config)

Sort a vocab_config for nicer plotting.


source

get_topk_depth_unpacked

 get_topk_depth_unpacked (gate_pair_tokenizer, s, use_raw=False,
                          standardize=True)

Useful for plotting.

Back to top
Circuits tokenizer
Scheduler
 

Copyright 2025, Florian Fürrutter

  • Report an issue
  • View source