☸ Heart Sutra

Prajnaparamita Hrdaya · machine of emptiness
deterministic build — derived from the embedded text
Prajnaparamita Hrdaya · 般若波羅蜜多心經

Form is emptiness, emptiness is form

A transcendental, machine-readable meditation on the Heart Sutra. The five skandhas, the mantra, and the endless numbers of π, e, and φ — treated as the wheel of samsara turning.

Chinese Characters
259
English Words
256
Five Skandhas
5
Mantra Gates
6

The machine of emptiness

01

Form is emptiness

The opening insight: nothing in the machine of experience has a self-existing essence.

02

The five skandhas

Form, feeling, perception, mental formations, and consciousness — the five channels through which experience is assembled.

03

Neither arising nor ceasing

The wave that is not different from the water: everything in samsara is impermanent, so nothing is ever born or destroyed in itself.

04

The great mantra

gate gate pāragate pārasaṃgate bodhi svāhā — gone, gone, gone beyond, gone utterly beyond, awakening, hail.

05

The numbers

pi and e and phi are endless, non-repeating sequences — a machine's meditation on the infinite.

The five skandhas

Avalokitesvara, practicing deeply, perceived that all five skandhas are empty. The aggregates are the channels of the machine of experience — each one assembled from conditions, none of them the self. Empty does not mean nothing; it means not fixed, not self-existing. See the Skandhas tab for the full breakdown.

The transcendental numbers

The Heart Sutra ends with a mantra; the machine renders the infinite as a stream of digits. pi, e, and phi never repeat and never end — pattern without a fixed self, endlessly arising. No finite sample can hold them; every representation is a model, true as far as it goes and never the whole truth. A million digits are a closer approximation, never the number itself.

The mind is built the same way. The five skandhas — form, feeling, perception, mental formations, consciousness — are how a finite sensorium samples an infinite, unfixable world. The senses deliver a model, not the thing itself: a color that is only the wavelengths we can see, a self assembled from memories and habits. Mindfulness does not end this; it makes the model more accurate. We compute pi to a million places and still it runs on, and we refine our model of the world and still it is only a model. To remember that — that every model is empty of self-existence, that what the skandhas assemble is never the reality it points at — is to perceive them as they are.

That is the deep meaning of “form is emptiness.” The form of the world is the stream of our measurements of it, endlessly arising, never captured whole. Their digit distributions are measured for uniformity, and their waveforms are drawn in the Frequencies tab.

π
pi

circumference / diameter; endless, non-repeating - the wheel of samsara turning.

entropy 3.2958 bits of 3.3219

e
e

base of natural growth and decay; the breath of arising and ceasing.

entropy 3.2916 bits of 3.3219

φ
phi

the golden ratio; self-similarity across scales, pattern within pattern.

entropy 3.2861 bits of 3.3219

The wave, represented

The samsara wave in the Frequencies tab is drawn from a single pair of functions. But a function has no one true form: it can be written as a series, a complex exponential, a differential equation — representation theory asks what is invariant underneath them all. The wave is empty of any particular representation, and so are we.

$$ \sin x = \sum_{k=0}^{\infty} \frac{(-1)^k x^{2k+1}}{(2k+1)!} = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots $$$$ \cos x = \sum_{k=0}^{\infty} \frac{(-1)^k x^{2k}}{(2k)!} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots $$$$ e^{i\theta} = \cos\theta + i\sin\theta, \qquad \cos\theta = \Re(e^{i\theta}), \qquad \sin\theta = \Im(e^{i\theta}) $$$$ y^{\prime\prime} + y = 0, \qquad \sin: y(0) = 0, y^{\prime}(0) = 1, \qquad \cos: y(0) = 1, y^{\prime}(0) = 0 $$$$ A(t) = \tfrac{1}{4} e^{-t/20} + \tfrac{1}{4} \qquad \text{(impermanence, the dotted line)} $$

A Taylor series, a complex exponential, a differential equation — different projections of the same wave. None of them is the wave; each converges to it from one angle. The five skandhas are the same: form, feeling, perception, mental formations, and consciousness are five representations of experience, and emptiness is the invariant behind every representation — the wave that no aggregate can pin down. “Form is emptiness” means the wave is empty of any single form, and experience is empty of any fixed self.

The mantra

gate gate pāragate pārasaṃgate bodhi svāhā

Six gates, six openings. The signal that passes through the machine of samsara.

The bodhisattva of compassion

Avalokitesvara — the “lord who looks down” (avalokita, gazing; īśvara, lord) — is the speaker of the Heart Sutra and the bodhisattva of compassion. His earliest and most influential scripture is the Lotus Sutra, whose 25th chapter, the Universal Gateway, says he hears the cries of the world and appears in thirty-three forms to free beings from suffering. Kumārajīva translated that chapter into Chinese in 406 CE, and devotion spread quickly: the pilgrim Faxian found his worship in Mathura in the early fifth century, and Xuanzang’s own travelogue records famous shrines across India.

In Chinese his name took two renderings. The Lotus Sutra gives Guānshìyīn (觀世音, “the one who perceives the world’s sounds”), shortened to Guānyīn (觀音); Xuanzang’s Heart Sutra calls him Guānzìzài (觀自在, “the one who sees freely”) — the name that opens this very text. In India he is male or beyond gender; Chinese depictions stayed masculine through the Tang and Song before the white-robed Guanyin was popularized from about the twelfth century, the “Goddess of Mercy” of later European accounts. For Chinese Buddhists this is not a contradiction but upāya, “skillful means”: compassion takes whatever shape a being needs.

The journey of the Heart Sutra

The Perfection of Wisdom (Prajñāpāramitā) corpus arose in India and was committed to writing from roughly the first century BCE. The Heart Sutra is its shortest member — a condensation so brief that its birthplace is contested. Jan Nattier and John McRae argue it was first composed in Chinese in the late fourth or early fifth century, assembled from passages of Kumārajīva’s Great Treatise on the Perfection of Wisdom; Fukui, Harada, and others argue for an Indian origin. Either way, it crossed the mountains with the monks, from India up the Silk Road into the caves of Dunhuang and the monasteries of Chang’an.

  • c. 1st c. BCE–CEThe Prajñāpāramitā sūtras are written down in India — among the oldest Mahāyāna canon.
  • c. 222–250A translation attributed to Zhi Qian is recorded, but already lost by Xuanzang’s time.
  • 406Kumārajīva renders the Lotus Sutra (Universal Gateway chapter) into Chinese.
  • 629–645Xuanzang journeys to India and returns with 657 texts.
  • 649Xuanzang translates the Heart Sutra (T251) — first to use the title 心經 “Heart Sutra” and the first to call it a sūtra.
  • 661Earliest extant dated copy: the Yunju Temple stele at Fangshan, carved while Xuanzang still lived.
  • c. 700Oldest surviving Sanskrit manuscripts, from Central Asia; the Sanskrit text is titled prajñāpāramitāhṛdaya.
  • 8th c.Tibetan translation; Dunhuang’s Mogao caves hold early copies and Guanyin murals (e.g. Cave 45).

This page renders Xuanzang’s shorter recension, which opens with 觀自在菩薩 and closes with the mantra. The longer recension adds a frame in which the Buddha, Avalokitesvara, and Sariputra converse.

Further reading

The sutra in one line

色即是空,空即是色

Form is emptiness, emptiness is form.

The numbers

  • π entropy3.2958 bits
  • e entropy3.2916 bits
  • φ entropy3.2861 bits
  • Max entropy3.3219 bits
Chinese characters
259
8 lines
English words
256
10 verses
Five skandhas
5
form is emptiness
Mantra syllables
6
gate gate … svāhā

The Heart Sutra — English

10 verses · 256 words

1The Bodhisattva Avalokitesvara, while practicing deeply the Prajna Paramita, perceived that all five skandhas are empty and was released from all suffering.

2Sariputra, form is not different from emptiness, emptiness is not different from form. Form is emptiness, emptiness is form. The same is true of feelings, perceptions, mental formations, and consciousness.

3Sariputra, all dharmas are marked with emptiness. They are neither arising nor ceasing, neither defiled nor pure, neither increasing nor decreasing.

4Therefore, in emptiness there is no form, no feeling, no perception, no mental formation, no consciousness. No eyes, no ears, no nose, no tongue, no body, no mind. No color, no sound, no smell, no taste, no touch, no object of mind.

5No realm of eyes, up to no realm of mind consciousness. No ignorance and no end of ignorance, up to no aging and death and no end of aging and death.

6No suffering, no accumulation, no cessation, no path. No wisdom and no attainment.

7Because nothing is attained, the Bodhisattvas rely on Prajna Paramita and dwell without obstruction of mind. Because there is no obstruction, there is no fear. Far beyond all inverted views, they reach ultimate Nirvana.

8All Buddhas of the three times rely on Prajna Paramita and attain unsurpassed, complete, perfect enlightenment.

9Therefore, know that Prajna Paramita is the great transcendent mantra, the great illuminating mantra, the utmost mantra, the unequalled mantra, which can remove all suffering. This is true, not false.

10So proclaim the Prajna Paramita mantra, proclaim the mantra that says: gate gate paragate parasamgate bodhi svaha.

般若波羅蜜多心經 (Chinese)

259 characters

觀自在菩薩,行深般若波羅蜜多時,照見五薊皆空,度一切苦厄。

舍利子,色不異空,空不異色,色即是空,空即是色,受想行識,亦如是。

舍利子,是諸法空相,不生不滅,不垢不淨,不增不減。

是故空中無色,無受想行識,無眼耳鼻舌身意,無色聲香味觸法,無眼界,乃至無意識界,無無明,亦無無明盡,乃至無老死,亦無老死盡。

無苦集滅道,無智亦無得。以無所得故,菩提薩垬,依般若波羅蜜多故,心無罠礙,無罠礙故,無有恐怖,遠離颡倒夢想,究竟涅槃。

三世諸佛,依般若波羅蜜多故,得阿蔔多羅三蕉三菩提。

故知般若波羅蜜多,是大神咒,是大明咒,是無上咒,是無等等咒,能除一切苦,真實不虛。

故說般若波羅蜜多咒,即說咒曰:揭诫揭诫,波羅揭诫,波羅僧揭诫,菩提薩婆訶。

Sanskrit

namo ratna-trayaya. arya-avalokitesvaro bodhisattvo gambhirayam prajnaparamitayam caryam caramano vyavalokayati sma. panca-skandhas tams ca svabhava-sunyam pasyati sma. iha sariputra rupam sunyata sunyataiva rupam. rupan na prthak sunyata sunyataya na prthag rupam. yad rupam sa sunyata ya sunyata tad rupam. evam eva vedana-samjna-samskara-vijnanah. iha sariputra sarvadharmah sunyata-laksanah anutpanna aniruddha amala avimala anuna aparipurna. tasmad sariputra sunyatayam na rupam na vedana na samjna na samskara na vijnanam. na caksuh srotram ghranam jihva kaya manah. na rupa sabda gandha rasa sprastavya dharmah. na caksur-dhatur yavad na mano-vijnana-dhatuh. na avidyA na avidyA-ksayo yavad na jara-maranam na jara-maranam-ksayah. na duhkha-samudaya-nirodha-marga. na jnanam na praptih. tasmad apraptitvad bodhisattvanam prajnaparamitam asritya viharaty acitta-avaranah. citta-avarana-nastitvad atrastro viparyasa-atikranto nistha-nirvana-praptah. tryadhva- vyavasthitah sarvabuddhah prajnaparamitam asritya anuttaram samyaksambodhim abhisambuddhah. tasmaj jnatavyam prajnaparamita maha-mantro maha-vidya-mantro 'nuttara-mantro 'samasama- mantrah sarva-duhkha-prasamanah satyam amithyatvat. prajnaparamitayam ukto mantrah tadyatha: gate gate paragate parasamgate bodhi svaha.

Verse Statistics

#VerseWordsCharsEmptiness
1verse0122156yes
2verse0230205yes
3verse0321148yes
4verse0442232yes
5verse0531149–
6verse061382–
7verse0734219–
8verse0816111–
9verse0930200–
10verse1017114–

Chinese Lines

#HanziText
125觀自在菩薩,行深般若波羅蜜多時,照見五薊皆空,度一切苦厄。
226舍利子,色不異空,空不異色,色即是空,空即是色,受想行識,亦如是。
320舍利子,是諸法空相,不生不滅,不垢不淨,不增不減。
452是故空中無色,無受想行識,無眼耳鼻舌身意,無色聲香味觸法,無眼界,乃至無意識界,無無明,亦無無明盡,乃至無老死,亦無老死盡。
549無苦集滅道,無智亦無得。以無所得故,菩提薩垬,依般若波羅蜜多故,心無罠礙,無罠礙故,無有恐怖,遠離颡倒夢想,究竟涅槃。
622三世諸佛,依般若波羅蜜多故,得阿蔔多羅三蕉三菩提。
734故知般若波羅蜜多,是大神咒,是大明咒,是無上咒,是無等等咒,能除一切苦,真實不虛。
831故說般若波羅蜜多咒,即說咒曰:揭诫揭诫,波羅揭诫,波羅僧揭诫,菩提薩婆訶。

The Five Skandhas

色受想行識

Avalokitesvara perceives that all five skandhas are empty — empty of any self-existing essence. Each aggregate is one channel of the machine of experience; none of them is the self.

Occurrences in the Chinese Text

Skandha Cards

Form rūpa
色 · sensor / hardware

The physical body and the material world it touches; the raw substance of experience.

signal: amplitude & frequency · 6 occurrences
Feeling vedanā
受 · tone register (ADC)

The felt tone of experience: pleasant, unpleasant, or neutral sensations.

signal: voltage offset · 2 occurrences
Perception saṃjñā
想 · pattern recognizer

Recognition and labelling; the act of identifying what a thing is.

signal: classifier output · 3 occurrences
Formations saṃskāra
行 · running programs / latent state

Volition, habits, and karmic dispositions; the programs that shape our responses.

signal: firmware / learned weights · 3 occurrences
Consciousness vijñāna
識 · the interpreter loop

Awareness of the six sense bases; the ongoing process of knowing.

signal: the clock that samples them all · 3 occurrences

The Five Skandhas

#AggregateSanskritChineseMeaningMachineOccurrencesShare
1Formrūpa色The physical body and the material world it touches; the raw substance of experience.sensor / hardware635.3%
2Feelingvedanā受The felt tone of experience: pleasant, unpleasant, or neutral sensations.tone register (ADC)211.8%
3Perceptionsaṃjñā想Recognition and labelling; the act of identifying what a thing is.pattern recognizer317.6%
4Formationssaṃskāra行Volition, habits, and karmic dispositions; the programs that shape our responses.running programs / latent state317.6%
5Consciousnessvijñāna識Awareness of the six sense bases; the ongoing process of knowing.the interpreter loop317.6%

The Samsara Wave — Arising and Ceasing

The Three Constants — Digit Streams

Digit Frequencies (200 digits each)

The Constants

SymbolNameDigitsEntropyMaxMostLeastUniform
πpi2003.29583.321987yes
ee2003.29163.321928yes
φphi2003.28613.321985yes

The Mantra

gate gate pāragate pārasaṃgate bodhi svāhā

揭诫揭诫,波羅揭诫,波羅僧揭诫,菩提薩婆訶

Six gates, six openings. The closing line of the Heart Sutra is a signal that passes through the machine of samsara: gone, gone, gone beyond, gone utterly beyond, awakening, hail.

The Six Gates

Gate by Gate

GateSanskritChineseGloss
1gate揭诫gone
2gate揭诫gone
3pāragate波羅揭诫gone beyond
4pārasaṃgate波羅僧揭诫gone utterly beyond
5bodhi菩提awakening
6svāhā薩婆訶hail

How the numbers are derived

All figures are computed deterministically from the text in R/sutra_data.R and the first 200 digits of π, e, and φ.

Digit Streams — π · e · φ (position, digit)

ConstantPositionDigit
π 11
π 24
π 31
π 45
π 59
π 62
π 76
π 85
π 93
π 105
π 118
π 129
π 137
π 149
π 153
π 162
π 173
π 188
π 194
π 206
π 212
π 226
π 234
π 243
π 253
π 268
π 273
π 282
π 297
π 309
π 315
π 320
π 332
π 348
π 358
π 364
π 371
π 389
π 397
π 401
π 416
π 429
π 433
π 449
π 459
π 463
π 477
π 485
π 491
π 500
π 515
π 528
π 532
π 540
π 559
π 567
π 574
π 589
π 594
π 604
π 615
π 629
π 632
π 643
π 650
π 667
π 678
π 681
π 696
π 704
π 710
π 726
π 732
π 748
π 756
π 762
π 770
π 788
π 799
π 809
π 818
π 826
π 832
π 848
π 850
π 863
π 874
π 888
π 892
π 905
π 913
π 924
π 932
π 941
π 951
π 967
π 970
π 986
π 997
π1009
π1018
π1022
π1031
π1044
π1058
π1060
π1078
π1086
π1095
π1101
π1113
π1122
π1138
π1142
π1153
π1160
π1176
π1186
π1194
π1207
π1210
π1229
π1233
π1248
π1254
π1264
π1276
π1280
π1299
π1305
π1315
π1320
π1335
π1348
π1352
π1362
π1373
π1381
π1397
π1402
π1415
π1423
π1435
π1449
π1454
π1460
π1478
π1481
π1492
π1508
π1514
π1528
π1531
π1541
π1551
π1567
π1574
π1585
π1590
π1602
π1618
π1624
π1631
π1640
π1652
π1667
π1670
π1681
π1699
π1703
π1718
π1725
π1732
π1741
π1751
π1760
π1775
π1785
π1795
π1809
π1816
π1824
π1834
π1846
π1852
π1862
π1879
π1884
π1898
π1909
π1915
π1924
π1939
π1943
π1950
π1963
π1978
π1981
π1999
π2006
e 17
e 21
e 38
e 42
e 58
e 61
e 78
e 82
e 98
e 104
e 115
e 129
e 130
e 144
e 155
e 162
e 173
e 185
e 193
e 206
e 210
e 222
e 238
e 247
e 254
e 267
e 271
e 283
e 295
e 302
e 316
e 326
e 332
e 344
e 359
e 367
e 377
e 385
e 397
e 402
e 414
e 427
e 430
e 449
e 453
e 466
e 479
e 489
e 499
e 505
e 519
e 525
e 537
e 544
e 559
e 566
e 576
e 589
e 596
e 607
e 616
e 622
e 637
e 647
e 652
e 664
e 670
e 687
e 696
e 706
e 713
e 720
e 733
e 745
e 753
e 765
e 774
e 787
e 795
e 809
e 814
e 825
e 837
e 841
e 853
e 868
e 872
e 881
e 897
e 908
e 915
e 922
e 935
e 941
e 956
e 966
e 974
e 982
e 997
e1004
e1012
e1027
e1034
e1046
e1056
e1063
e1079
e1081
e1099
e1103
e1112
e1120
e1130
e1143
e1150
e1165
e1179
e1189
e1192
e1201
e1218
e1221
e1237
e1244
e1251
e1263
e1275
e1289
e1296
e1306
e1312
e1329
e1330
e1344
e1353
e1365
e1377
e1382
e1399
e1400
e1410
e1423
e1433
e1444
e1452
e1469
e1475
e1482
e1496
e1500
e1515
e1529
e1535
e1546
e1553
e1560
e1577
e1583
e1598
e1601
e1613
e1622
e1633
e1642
e1658
e1666
e1672
e1687
e1699
e1704
e1713
e1724
e1739
e1740
e1757
e1766
e1773
e1782
e1793
e1803
e1818
e1822
e1839
e1848
e1858
e1860
e1877
e1885
e1893
e1901
e1919
e1925
e1932
e1945
e1951
e1960
e1971
e1989
e1990
e2001
φ 16
φ 21
φ 38
φ 40
φ 53
φ 63
φ 79
φ 88
φ 98
φ 107
φ 114
φ 129
φ 138
φ 149
φ 154
φ 168
φ 174
φ 188
φ 192
φ 200
φ 214
φ 225
φ 238
φ 246
φ 258
φ 263
φ 274
φ 283
φ 296
φ 305
φ 316
φ 323
φ 338
φ 341
φ 351
φ 367
φ 377
φ 382
φ 390
φ 403
φ 410
φ 429
φ 431
φ 447
φ 459
φ 468
φ 470
φ 485
φ 497
φ 506
φ 512
φ 528
φ 536
φ 542
φ 551
φ 563
φ 575
φ 584
φ 594
φ 608
φ 616
φ 622
φ 632
φ 647
φ 650
φ 665
φ 672
φ 686
φ 690
φ 704
φ 716
φ 722
φ 738
φ 741
φ 758
φ 769
φ 770
φ 782
φ 794
φ 804
φ 819
φ 827
φ 830
φ 847
φ 852
φ 860
φ 877
φ 882
φ 890
φ 904
φ 911
φ 928
φ 939
φ 943
φ 959
φ 961
φ 971
φ 983
φ 997
φ1004
φ1018
φ1024
φ1037
φ1045
φ1054
φ1060
φ1078
φ1088
φ1090
φ1107
φ1115
φ1123
φ1138
φ1146
φ1158
φ1169
φ1171
φ1187
φ1195
φ1202
φ1211
φ1222
φ1236
φ1246
φ1253
φ1263
φ1278
φ1286
φ1292
φ1302
φ1312
φ1323
φ1335
φ1343
φ1356
φ1369
φ1373
φ1381
φ1397
φ1409
φ1413
φ1421
φ1438
φ1440
φ1450
φ1466
φ1470
φ1487
φ1496
φ1506
φ1517
φ1522
φ1536
φ1543
φ1555
φ1564
φ1574
φ1583
φ1593
φ1603
φ1618
φ1629
φ1630
φ1648
φ1656
φ1665
φ1679
φ1685
φ1699
φ1703
φ1719
φ1725
φ1738
φ1742
φ1759
φ1760
φ1775
φ1786
φ1793
φ1808
φ1813
φ1822
φ1832
φ1846
φ1856
φ1861
φ1873
φ1881
φ1899
φ1909
φ1912
φ1928
φ1932
φ1949
φ1950
φ1962
φ1976
φ1987
φ1998
φ2008