PennyLane
    • Research
    • Features
    • Performance
    • Hardware & Simulators
    • Learn
    • Teach
    • Install PennyLane
    • Documentation
    • Catalyst Compilation Docs
    • Development Guide
    • How-to Demos
    • API
    • GitHub
    • Demos
    • Quantum Compilation
    • Quantum Datasets
    • Codebook
    • Coding Challenges
    • Videos
    • Hamiltonian Simulation
    • Fault-Tolerant Quantum Computing
    • Quantum Gradients
    • Blog
    • FAQs
    • Discussion Forum
    • Submit a Demo
    • Get Involved
  • Install
    • Research
    • Features
    • Performance
    • Hardware & Simulators
    • Learn
    • Teach
    • Install PennyLane
    • Documentation
    • Catalyst Compilation Docs
    • Development Guide
    • How-to Demos
    • API
    • GitHub
    • Demos
    • Quantum Compilation
    • Quantum Datasets
    • Codebook
    • Coding Challenges
    • Videos
    • Hamiltonian Simulation
    • Fault-Tolerant Quantum Computing
    • Quantum Gradients
    • Blog
    • FAQs
    • Discussion Forum
    • Submit a Demo
    • Get Involved
  • Install

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Catalyst 0.13.0-dev47 documentation »
  • Catalyst MLIR dialects »
  • ‘catalyst’ Dialect

Catalyst

  • Overview
  • Installation
  • Quick Start
  • Supported devices
  • AutoGraph guide
  • Sharp bits and debugging tips
  • JAX integration
  • Callbacks and GPUs
  • Release notes

Development

  • Architecture
  • PennyLane Frontend
  • Compiler Core
  • MLIR Dialects
  • Compiler Passes
  • Compiler Plugins
  • Quantum Runtime
  • Debugging Tips
  • Custom Devices
  • Roadmap

Examples

  • Qubit Rotation

API

  • PennyLane Python Frontend
  • Catalyst Command Line Interface
  • Runtime Device Interface
  • Catalyst MLIR dialects
  1. Docs
  2. Catalyst MLIR dialects
  3. ‘catalyst’ Dialect

‘catalyst’ Dialect¶

A dialect supporting core Catalyst functionality.

The catalyst dialect serves as a standard library for the Catalyst compiler. It contains data structures that support core compiler functionality.

Types¶

ArrayListType¶

A dynamically resizable array

Syntax:

!catalyst.arraylist<
  Type   # elementType
>

Parameters:¶

Parameter

C++ type

Description

elementType

Type

Operations¶

  • catalyst.assert (::catalyst::AssertionOp)
  • catalyst.callback_call (::catalyst::CallbackCallOp)
  • catalyst.callback (::catalyst::CallbackOp)
  • catalyst.custom_call (::catalyst::CustomCallOp)
  • catalyst.launch_kernel (::catalyst::LaunchKernelOp)
  • catalyst.list_dealloc (::catalyst::ListDeallocOp)
  • catalyst.list_init (::catalyst::ListInitOp)
  • catalyst.list_load_data (::catalyst::ListLoadDataOp)
  • catalyst.list_pop (::catalyst::ListPopOp)
  • catalyst.list_push (::catalyst::ListPushOp)
  • catalyst.print (::catalyst::PrintOp)

Passes¶

  • -add-exception-handling
  • -apply-transform-sequence
  • -buffer-deallocation
  • -convert-arraylist-to-memref
  • -convert-catalyst-to-llvm
  • -detensorize-scf
  • -disable-assertion
  • -gep-inbounds
  • -hlo-custom-call-lowering
  • -inline-nested-module
  • -memref-to-llvm-tbaa
  • -memrefcpy-to-linalgcpy
  • -qnode-to-async-lowering
  • -register-inactive-callback
  • -scatter-lowering
code/dialects/catalyst
 
Download Python script
 
Download Notebook
 
View on GitHub
Previous
Next

Contents

  • Installation
  • Quick Start
  • Supported devices
  • AutoGraph guide
  • Sharp bits and debugging tips
  • JAX integration
  • Callbacks and GPUs
  • Release notes

Development

  • Architecture
  • PennyLane Frontend
  • Compiler Core
  • MLIR Dialects
  • Compiler Passes
  • Compiler Plugins
  • Quantum Runtime
  • Debugging Tips
  • Custom Devices
  • Roadmap

Examples

  • Qubit Rotation

API

  • PennyLane Python Frontend
  • Catalyst Command Line Interface
  • Runtime Device Interface
  • Catalyst MLIR dialects
    • ‘quantum’ Dialect
    • ‘gradient’ Dialect
    • ‘mitigation’ Dialect
    • ‘catalyst’ Dialect
      • Types
      • Operations
      • Passes
    • ‘ion’ Dialect
    • ‘qec’ Dialect
    • ‘mbqc’ Dialect

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Catalyst 0.13.0-dev47 documentation »
  • Catalyst MLIR dialects »
  • ‘catalyst’ Dialect

PennyLane

PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Built by researchers, for research. Created with ❤️ by Xanadu.

Research

Research Performance Hardware & Simulators Demos Quantum Compilation Quantum Datasets

Education

Teach Learn Codebook Coding Challenges Videos Glossary

Software

Install PennyLane Features Documentation Catalyst Compilation Docs Development Guide API GitHub
Stay updated with our newsletter

Copyright © 2023, Xanadu Quantum Technologies

TensorFlow, the TensorFlow logo, and any related marks are trademarks of Google Inc.

Privacy Policy
Terms of Service
Cookie Policy
Code of Conduct