45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
---
|
|
title: Qasm (v0.29)
|
|
description: API reference for qiskit.qasm.Qasm in qiskit v0.29
|
|
in_page_toc_min_heading_level: 1
|
|
python_api_type: class
|
|
python_api_name: qiskit.qasm.Qasm
|
|
---
|
|
|
|
# Qasm
|
|
|
|
<Class id="qiskit.qasm.Qasm" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/qasm/qasm.py" signature="Qasm(filename=None, data=None)" modifiers="class">
|
|
Bases: `object`
|
|
|
|
OPENQASM circuit object.
|
|
|
|
Create an OPENQASM circuit object.
|
|
|
|
## Methods
|
|
|
|
<span id="qiskit-qasm-qasm-generate-tokens" />
|
|
|
|
### generate\_tokens
|
|
|
|
<Function id="qiskit.qasm.Qasm.generate_tokens" signature="Qasm.generate_tokens()">
|
|
Returns a generator of the tokens.
|
|
</Function>
|
|
|
|
<span id="qiskit-qasm-qasm-parse" />
|
|
|
|
### parse
|
|
|
|
<Function id="qiskit.qasm.Qasm.parse" signature="Qasm.parse()">
|
|
Parse the data.
|
|
</Function>
|
|
|
|
<span id="qiskit-qasm-qasm-return-filename" />
|
|
|
|
### return\_filename
|
|
|
|
<Function id="qiskit.qasm.Qasm.return_filename" signature="Qasm.return_filename()">
|
|
Return the filename.
|
|
</Function>
|
|
</Class>
|
|
|